I'm having some troubles with the cross compilation of the ArduCopter source code.
My steps were the following:
sudo pip install future
sudo apt-get install -y pkg-config-arm-linux-gnueabihf
git clone https://github.com/ardupilot/ardupilot
git submodule update --init
./waf configure --board=pxfmini
./waf --targets bin/arducopter
First question comes here: why under
~/ardupilot/build/pxfmini/bin I find a binary code called simply
arducopter instead of
Moving forward, I stop the apm service which is running
sudo systemctl stop apm.service
sudo mv ArduCopter.elf ArduCopter.elf.old
I copy the binary to the RPI0 (renaming it from
scp build/pxfmini/bin/arducopter firstname.lastname@example.org:/home/erle/ArduCopter.elf
And I run it again
sudo mv ArduCopter.elf PXFmini/ArduCopter.elf
sudo systemctl start apm.service
The result is that
apm.sh runs but it can't run ArduCopter.elf (note: if I use the .elf obtained using the apt-get procedure it works smooth).
If I manually run the binary with
./PXFmini/Arducopter.elf I obtain a "Segmentation fault".
Can anybody help me to fix this?
Bye! Thank you
PS: I'm using Frambuesa as OS.
PPS: why is not working anymore
./waf --targets bin/arducopter-quad?