Closed codeceptsDE closed 8 months ago
I'm having trouble building on a Raspberry Pi 3B+, 1Gb RAM is insufficient to build mavlink-routerd.
I had to change deploy/build_mavlinkrouter.sh from
deploy/build_mavlinkrouter.sh
if [ $(free -m | awk '/^Mem:/{print $2}') -le 500]; then ninja -j 2 -C build else ninja -C build fi
to if [ $(free -m | awk '/^Mem:/{print $2}') -le 950 ]; then to make it work. It's a bit slower, but at least it doesn't crash the Pi.
if [ $(free -m | awk '/^Mem:/{print $2}') -le 950 ]; then
Maybe the same should apply to deploy/build_rpanion.sh, but I found it not to be necessary (right now). But it's cutting it close.
deploy/build_rpanion.sh
Thanks for the report. Happy to accept a PR with those changes.
Wouldn't just increasing the swap space work? The default is only 100k.
Now fixed by increasing swap space on low-RAM Pi's. Closing...
I'm having trouble building on a Raspberry Pi 3B+, 1Gb RAM is insufficient to build mavlink-routerd.
I had to change
deploy/build_mavlinkrouter.sh
fromto
if [ $(free -m | awk '/^Mem:/{print $2}') -le 950 ]; then
to make it work. It's a bit slower, but at least it doesn't crash the Pi.Maybe the same should apply to
deploy/build_rpanion.sh
, but I found it not to be necessary (right now). But it's cutting it close.