generate boot.scr in /sys/src/boot/reform
This commit is contained in:
parent
ff7aa0671d
commit
7bae48c452
3 changed files with 10 additions and 7 deletions
8
sys/lib/dist/mkfile
vendored
8
sys/lib/dist/mkfile
vendored
|
@ -77,7 +77,7 @@ cd:V: /tmp/9front.386.iso.gz
|
||||||
mv $target.$pid.disk $target
|
mv $target.$pid.disk $target
|
||||||
}
|
}
|
||||||
|
|
||||||
%.zynq.img:
|
%.zynq.img:D:
|
||||||
@{
|
@{
|
||||||
objtype=arm
|
objtype=arm
|
||||||
kernel=/n/src9/$objtype/9zynq
|
kernel=/n/src9/$objtype/9zynq
|
||||||
|
@ -88,13 +88,11 @@ cd:V: /tmp/9front.386.iso.gz
|
||||||
mv $target.$pid.disk $target
|
mv $target.$pid.disk $target
|
||||||
}
|
}
|
||||||
|
|
||||||
%.reform.img: /n/src9/sys/src/boot/reform/flash.bin
|
%.reform.img:D: /n/src9/sys/src/boot/reform/flash.bin /n/src9/sys/src/boot/reform/boot.scr
|
||||||
@{
|
@{
|
||||||
objtype=arm64
|
objtype=arm64
|
||||||
kernel=/n/src9/$objtype/9reform.u
|
kernel=/n/src9/$objtype/9reform.u
|
||||||
echo 'load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} ${prefix}9reform.u; bootm ${kernel_addr_r}' > /env/boot.txt
|
fatfiles=(/n/src9/sys/src/boot/reform/boot.scr $kernel)
|
||||||
aux/txt2uimage -o /env/boot.scr /env/boot.txt
|
|
||||||
fatfiles=(/env/boot.scr $kernel)
|
|
||||||
mb=1885 # storage vendors idea of 2GB
|
mb=1885 # storage vendors idea of 2GB
|
||||||
mk $target.$pid.disk
|
mk $target.$pid.disk
|
||||||
mv $target.$pid.disk $target && dd -trunc 0 -bs 1024 -oseek 33 -if /n/src9/sys/src/boot/reform/flash.bin -of $target
|
mv $target.$pid.disk $target && dd -trunc 0 -bs 1024 -oseek 33 -if /n/src9/sys/src/boot/reform/flash.bin -of $target
|
||||||
|
|
2
sys/src/boot/reform/boot.txt
Normal file
2
sys/src/boot/reform/boot.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} ${prefix}9reform.u
|
||||||
|
bootm ${kernel_addr_r}
|
|
@ -1,9 +1,12 @@
|
||||||
FILES=flash.bin
|
FILES=flash.bin boot.scr
|
||||||
|
|
||||||
all:V: flash.bin
|
all:V: $FILES
|
||||||
|
|
||||||
clean:V:
|
clean:V:
|
||||||
rm -f $FILES
|
rm -f $FILES
|
||||||
|
|
||||||
flash.bin:
|
flash.bin:
|
||||||
hget -o flash.bin 'https://source.mnt.re/reform/reform-boundary-uboot/-/jobs/artifacts/v3/raw/flash.bin?job=build'
|
hget -o flash.bin 'https://source.mnt.re/reform/reform-boundary-uboot/-/jobs/artifacts/v3/raw/flash.bin?job=build'
|
||||||
|
|
||||||
|
boot.scr: boot.txt
|
||||||
|
aux/txt2uimage -o $target $prereq
|
||||||
|
|
Loading…
Reference in a new issue