mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
Linux: Add initialising script and required overlays and firmware
This commit is contained in:
committed by
Andrew Tridgell
parent
f11f0d9f2a
commit
73d42f3e33
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
+16
@@ -0,0 +1,16 @@
|
||||
if [ "`echo $1`" = "load" ]; then
|
||||
echo "Loading Test_Capes..."
|
||||
cp BB-SPI0-SWP-01-00A0.dtbo /lib/firmware/
|
||||
cp BB-SPI1-SWP-01-00A0.dtbo /lib/firmware/
|
||||
cp BB-BONE-PRU-05-00A0.dtbo /lib/firmware/
|
||||
cp testpru0 /lib/firmware
|
||||
cp testpru1 /lib/firmware
|
||||
echo BB-BONE-PRU-05 > /sys/devices/bone_capemgr.*/slots
|
||||
echo BB-SPI0-SWP-01 > /sys/devices/bone_capemgr.*/slots
|
||||
echo BB-SPI1-SWP-01 > /sys/devices/bone_capemgr.*/slots
|
||||
dmesg | grep "SPI"
|
||||
dmesg | grep "PRU"
|
||||
else
|
||||
echo "Usage:"
|
||||
echo " ./startup.sh load : to load the capes"
|
||||
fi
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user