Linux: Add initialising script and required overlays and firmware

This commit is contained in:
bugobliterator 2014-06-19 18:12:13 +05:30 committed by Andrew Tridgell
parent f11f0d9f2a
commit 73d42f3e33
7 changed files with 16 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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.