Browse Source

PX4: start mtd driver on FMUv2

master
Andrew Tridgell 11 years ago
parent
commit
db19c8b410
  1. 16
      mk/PX4/ROMFS/init.d/rc.APM

16
mk/PX4/ROMFS/init.d/rc.APM

@ -37,7 +37,10 @@ else @@ -37,7 +37,10 @@ else
fi
set sketch NONE
rm /fs/microsd/APM/boot.log
if rm /fs/microsd/APM/boot.log
then
echo "removed old boot.log"
fi
set logfile /fs/microsd/APM/BOOT.LOG
if [ ! -f /bin/ArduPilot ]
@ -258,6 +261,17 @@ else @@ -258,6 +261,17 @@ else
echo "Failed to start rgbled driver" >> $logfile
fi
if [ $BOARD == FMUv2 ]
then
if mtd start
then
echo "started mtd driver OK"
else
echo "failed to start mtd driver"
sh /etc/init.d/rc.error
fi
fi
echo Starting ArduPilot
echo Starting ArduPilot $deviceA $deviceC $deviceD >> $logfile
if ArduPilot -d $deviceA -d2 $deviceC -d3 $deviceD start

Loading…
Cancel
Save