summaryrefslogtreecommitdiff
path: root/strata/bsp-rpi2/rpi2-firmware.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/bsp-rpi2/rpi2-firmware.morph')
-rw-r--r--strata/bsp-rpi2/rpi2-firmware.morph19
1 files changed, 19 insertions, 0 deletions
diff --git a/strata/bsp-rpi2/rpi2-firmware.morph b/strata/bsp-rpi2/rpi2-firmware.morph
new file mode 100644
index 00000000..b16fd283
--- /dev/null
+++ b/strata/bsp-rpi2/rpi2-firmware.morph
@@ -0,0 +1,19 @@
+name: rpi2-firmware
+kind: chunk
+build-system: manual
+install-commands:
+- mkdir -p "$DESTDIR"/boot
+- cp boot/*.bin "$DESTDIR"/boot/
+- cp boot/*.elf "$DESTDIR"/boot/
+- cp boot/*.dat "$DESTDIR"/boot/
+- cp boot/COPYING.linux "$DESTDIR"/boot/
+- cp boot/LICENCE.broadcom "$DESTDIR"/boot/
+- |
+ cat << EOF > "$DESTDIR"/boot/cmdline.txt
+ dwc_otg.lpm_enable=0 cma=256M console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=btrfs rootwait rootflags=subvol=systems/default/run
+ EOF
+- |
+ cat << EOF > "$DESTDIR"/boot/config.txt
+ mask_gpu_interrupt0=0x400 # VPU shouldn't handle V3D interrupts
+ avoid_warnings=2 # VPU shouldn't smash our display setup.
+ EOF