File tree Expand file tree Collapse file tree 3 files changed +10
-23
lines changed
Expand file tree Collapse file tree 3 files changed +10
-23
lines changed Original file line number Diff line number Diff line change 33 uboot ,
44 fetchFromGitHub ,
55} :
6- # script from https://source.mnt.re/reform/reform-rk3588-uboot/-/blob/b530d65f4a878c0329a594fa248ba8da59d2e05f /build.sh
6+ # script from https://source.mnt.re/reform/reform-rk3588-uboot/-/blob/28289e36cd1cb90b302780e83b014250c880c4ec /build.sh
77runCommand "mnt-reform-firmware-rk3855${ uboot . variant } " { } ''
88 mkdir $out
9- cp -r ${ uboot } u-boot
10- cp -r ${ uboot . rkbin } rkbin
11- chmod -R +rw u-boot
12- chmod -R +rw rkbin
13- cd u-boot
14- mkdir spl
15- mv u-boot-spl.bin spl
16- ../rkbin/tools/boot_merger rock5b-rk3588.ini
17- cd ..
18- # rkbin stuff
19- cd rkbin
20- ./tools/boot_merger RKBOOT/RK3588MINIALL.ini
21- # concatenate
22- cd ..
23- cp u-boot/idbloader.img $out/mnt-reform2-rk3588${ uboot . variant } -flash.bin
24- dd if=u-boot/u-boot.itb of=$out/mnt-reform2-rk3588${ uboot . variant } -flash.bin seek=16320
9+ cp ${ uboot } /idbloader.img $out/rk3588-mnt-reform2${ uboot . variant } -flash.bin
10+ dd if=${ uboot } /u-boot.itb of=$out/rk3588-mnt-reform${ uboot . variant } -flash.bin seek=16320
2511''
Original file line number Diff line number Diff line change 215215 eval $(partx $img -o START,SECTORS --nr 1 --pairs)
216216 dd conv=notrunc if=${ content } of=$img seek=$START count=$SECTORS
217217
218- dd conv=notrunc if=${ firmware } /mnt-reform2-rk3588 -dsi-flash.bin of=$img seek=64
218+ dd conv=notrunc if=${ firmware } /rk3588- mnt-reform2-dsi-flash.bin of=$img seek=64
219219
220220 if test -n "$compressImage"; then
221221 zstd -T$NIX_BUILD_CORES --rm $img
Original file line number Diff line number Diff line change 1010 domain = "source.mnt.re" ;
1111 owner = "reform" ;
1212 repo = "reform-rk3588-uboot" ;
13- rev = "55bca0174e7bb449e96028d64ad8348f5af35977 " ;
14- hash = "sha256-A3u1afGK65cGOwENQtu8Hh+fLsSDNxc3rEebkd3QOic =" ;
13+ rev = "28289e36cd1cb90b302780e83b014250c880c4ec " ;
14+ hash = "sha256-fWGyC+rlfL0NYYRFLvdF7EiO3s9GfFkfhAbTEM5ECAM =" ;
1515 } ;
1616 rkbin = fetchFromGitHub {
1717 owner = "rockchip-linux" ;
1818 repo = "rkbin" ;
19- rev = "f43a462e7a1429a9d407ae52b4745033034a6cf9 " ;
20- hash = "sha256-geESfZP8ynpUz/i/thpaimYo3kzqkBX95gQhMBzNbmk =" ;
19+ rev = "272136301989d493000425935bd4ead0ef04d06b " ;
20+ hash = "sha256-qXnuZyFNc6gYTkAtPg1t9WHwj8OiTxOLvsHUuvolK/w =" ;
2121 } ;
2222in
2323buildUBoot rec {
@@ -32,6 +32,7 @@ buildUBoot rec {
3232 patches = [
3333 "${ mntPatches } /0001-ini-ddrbin-bump.patch"
3434 "${ mntPatches } /0002-add-target-init-mnt-reform-series.patch"
35+ "${ mntPatches } /0003-scripts-dtc-pylibfdt-libfdt-i_shipped-Use-SWIG_AppendOutp.patch"
3536 ] ;
3637 prePatch = ''
3738 cp ${ mntPatches } /*.dts arch/arm/dts/
@@ -45,7 +46,7 @@ buildUBoot rec {
4546 "spl/u-boot-spl.bin"
4647 ] ;
4748 variant = "-dsi" ;
48- defconfig = "mnt-reform2-rk3588 ${ variant } _defconfig" ;
49+ defconfig = "rk3588- mnt-reform2${ variant } _defconfig" ;
4950 extraMakeFlags = [
5051 "BL31=${ armTrustedFirmwareRK3588 } /bl31.elf"
5152 "ROCKCHIP_TPL=${ rkbin } /bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.18.bin"
You can’t perform that action at this time.
0 commit comments