Use the new 64 bit root filesystem for the pi's
This also pulls in our RT kernel, and the script to build it.
We still need to package up and build the kernel module for the
adis16505, and enable the overlay. Not a huge deal.
Change-Id: I1a100d8ec3ce4406af27af6b555fd08840fb71fd
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/starter/starter.sh b/aos/starter/starter.sh
index 7a25fc7..f18dfda 100755
--- a/aos/starter/starter.sh
+++ b/aos/starter/starter.sh
@@ -8,6 +8,43 @@
ln -s /var/local/natinst/log/FRC_UserProgram.log /tmp/FRC_UserProgram.log
ln -s /var/local/natinst/log/FRC_UserProgram.log "${ROBOT_CODE}/FRC_UserProgram.log"
elif [[ "$(hostname)" == "pi-"* ]]; then
+ function chrtirq() {
+ ps -ef | grep "\\[$1\\]" | awk '{print $2}' | xargs chrt $2 -p $3
+ }
+
+ chrtirq "irq/20-fe00b880" -f 50
+ chrtirq "irq/66-xhci_hcd" -f 1
+ chrtirq "irq/50-VCHIQ do" -o 0
+ chrtirq "irq/27-DMA IRQ" -f 50
+ chrtirq "irq/51-mmc1" -o 0
+ chrtirq "irq/51-mmc0" -o 0
+ chrtirq "irq/51-s-mmc0" -o 0
+ chrtirq "irq/64-v3d" -o 0
+ chrtirq "irq/24-vc4 hvs" -o 0
+ chrtirq "irq/42-vc4 hdmi" -o 0
+ chrtirq "irq/43-vc4 hdmi" -o 0
+ chrtirq "irq/39-vc4 hdmi" -o 0
+ chrtirq "irq/39-s-vc4 hd" -o 0
+ chrtirq "irq/38-vc4 hdmi" -o 0
+ chrtirq "irq/38-s-vc4 hd" -o 0
+ chrtirq "irq/29-DMA IRQ" -f 50
+ chrtirq "irq/48-vc4 hdmi" -o 0
+ chrtirq "irq/49-vc4 hdmi" -o 0
+ chrtirq "irq/45-vc4 hdmi" -o 0
+ chrtirq "irq/45-s-vc4 hd" -o 0
+ chrtirq "irq/44-vc4 hdmi" -o 0
+ chrtirq "irq/44-s-vc4 hd" -o 0
+ chrtirq "irq/30-DMA IRQ" -f 50
+ chrtirq "irq/19-fe004000" -f 50
+ chrtirq "irq/34-vc4 crtc" -o 0
+ chrtirq "irq/35-vc4 crtc" -o 0
+ chrtirq "irq/36-vc4 crtc" -o 0
+ chrtirq "irq/35-vc4 crtc" -o 0
+ chrtirq "irq/37-vc4 crtc" -o 0
+ chrtirq "irq/23-uart-pl0" -o 0
+ chrtirq "irq/57-eth0" -f 10
+ chrtirq "irq/58-eth0" -f 10
+
# We have systemd configured to handle restarting, so just exec.
export PATH="${PATH}:/home/pi/robot_code"
rm -rf /dev/shm/aos