This script will install a Debian image at your SD card with the Linux preempt rt kernel
There are a couple of dependencies needed for the script to run successfully. On Debian/Ubuntu, be sure to have build-essential
, quilt
, gcc-arm-linux-gnueabihf
or cross-binutils
installed.
You only have to run sudo ./bbb-patch.sh start /dev/sdb
changing /dev/sdb with the desired device
The bbb-patch script will:
If you already downloaded the Debian Image and have compiled the kernel, probably because you already ran the build-patch-deploy, you just need to run ./transfer.sh /dev/sdb
, changing /dev/sdb with the desired device.
If you want to re-download the OSADL patches you can run ./osadl-downloads.sh
.
If you are sharing the connection with BBB using the USB port, and it is not working, try to run this on BBB:
/sbin/route add default gw 192.168.7.1;
echo "nameserver 8.8.8.8" >> /etc/resolv.conf;
And this on your Ubuntu (or Debian based) host:
sudo iptables -A POSTROUTING -t nat -j MASQUERADE;
sudo echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null;
If you don't want to re-run both scripts after reboot, add it to ~/.bashrc