ref: 534be5aeb33760ebf77fd611a493bf959338225c
parent: f35d5ee5b036b7b4fa59b1839f52fca15b7f99f9
author: cinap_lenrek <[email protected]>
date: Sun Aug 18 17:43:04 EDT 2019
add raspberry pi 4 kernel and bootloader to pi3.img target
--- a/sys/lib/dist/mkfile
+++ b/sys/lib/dist/mkfile
@@ -53,15 +53,18 @@
%.pi3.img:
@{
objtype=arm64
- bootcode=/sys/src/boot/bcm/^(bootcode.bin fixup_cd.dat start_cd.elf LICENCE.broadcom)
- kernel=/n/src9/$objtype/9pi3
+ bootcode=/sys/src/boot/bcm/^(bootcode.bin fixup_cd.dat start_cd.elf fixup4cd.dat start4cd.elf LICENCE.broadcom)
+ kernel=/n/src9/$objtype/^(9pi3 9pi4)
> /env/config.txt {
+ echo '[pi4]'
+ echo 'kernel=9pi4'
+ echo 'arm_64bit=1'
echo '[pi3]'
echo 'kernel=9pi3'
echo 'arm_64bit=1'
- echo 'core_freq=250'
echo '[all]'
echo 'gpu_mem=16'
+ echo 'core_freq=250'
echo 'enable_uart=1'
echo 'boot_delay=1'
}
--- a/sys/src/boot/bcm/mkfile
+++ b/sys/src/boot/bcm/mkfile
@@ -1,5 +1,5 @@
URL=https://github.com/raspberrypi/firmware/raw/master/boot
-FILES=bootcode.bin fixup_cd.dat start_cd.elf LICENCE.broadcom
+FILES=bootcode.bin fixup_cd.dat start_cd.elf fixup4cd.dat start4cd.elf LICENCE.broadcom
all:V: $FILES