I try to install Arduplane 4.0.9 on Navio2 from sources.
Main goal was to use an openHD/RubyHD img then add the Navio2 APM layer.
So, the compilation seems to be ok, but when I launch the arduplane service, I obtain the following error, and the led on the Navio2 board stay fixed blue (and not the yellow blink as usual).
Output of systemctl status ardupilot :
● ardupilot.service - ArduPilot for Linux
Loaded: loaded (/etc/systemd/system/ardupilot.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-09-22 20:30:16 UTC; 14s ago
Docs: https://docs.emlid.com/navio2/navio-ardupilot/installation-and-running/#autostarting-ardupilot-on-boot
Process: 17908 ExecStart=/bin/sh -c /home/pi/ardupilot/build/navio2/bin/arduplane ${ARDUPILOT_OPTS} (code=exited, status=1/FAILURE)
Main PID: 17908 (code=exited, status=1/FAILURE)
Have you tried following these instructions? I suppose something is wrong with the configuration in the /etc/systemd/system/ardupilot.service file. You can post it here so I can take a look.
Yes, the link that you refers, is exactly what I used. My ardupilot.service file is the following:
[Unit]
Description=ArduPilot for Linux
After=systemd-modules-load.service
Documentation=https://docs.emlid.com/navio2/navio-ardupilot/installation-and-running/#autostarting-ardupilot-on-boot
Conflicts=arduplane.service arducopter.service ardurover.service
[Service]
EnvironmentFile=/etc/default/ardupilot
###############################################################################
####### DO NOT EDIT ABOVE THIS LINE UNLESS YOU KNOW WHAT YOU"RE DOING #########
###############################################################################
Uncomment and modify this line if you want to launch your own binary
There should be only one uncommented ExecStart in this file
###############################################################################
######## DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU"RE DOING ########
###############################################################################
We don’t have such plans for the near future. But you should be able to use the custom binary of ArduPilot firmware. Some Navio2 users work with the newer versions.
Do you mean the official Raspberry Pi OS images? If so, it won’t be possible as those don’t have the configurations needed for Navio2 to work like RCIO code.
I believe it’s better to delete all the files and start over again. Maybe, something was lost during the installation.