From 5d4f3906f6d6bcccd877ed5910439863e339ef98 Mon Sep 17 00:00:00 2001 From: fewtarius Date: Mon, 6 Nov 2023 11:24:29 +0000 Subject: [PATCH 1/2] Migrate boot.ini to device folder. --- projects/Rockchip/bootloader/install | 36 ++---------------------- projects/Rockchip/bootloader/mkimage | 41 ++++------------------------ 2 files changed, 8 insertions(+), 69 deletions(-) diff --git a/projects/Rockchip/bootloader/install b/projects/Rockchip/bootloader/install index b9e5e0d25..ec04a46ce 100755 --- a/projects/Rockchip/bootloader/install +++ b/projects/Rockchip/bootloader/install @@ -85,43 +85,11 @@ fi ;; esac - if [ "${BOOT_INI}" == true ] then echo "boot: create boot.ini..." - cat >${INSTALL}/usr/share/bootloader/boot.ini <"${LE_TMP}/boot.ini" < Date: Mon, 6 Nov 2023 11:41:01 +0000 Subject: [PATCH 2/2] Add boot.ini. --- .../Rockchip/devices/RK3326/boot/boot.ini | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 projects/Rockchip/devices/RK3326/boot/boot.ini diff --git a/projects/Rockchip/devices/RK3326/boot/boot.ini b/projects/Rockchip/devices/RK3326/boot/boot.ini new file mode 100644 index 000000000..678023110 --- /dev/null +++ b/projects/Rockchip/devices/RK3326/boot/boot.ini @@ -0,0 +1,31 @@ +odroidgoa-uboot-config + +setenv bootargs "boot=UUID=@UUID_SYSTEM@ disk=UUID=@UUID_STORAGE@ @EXTRA_CMDLINE@" + +setenv loadaddr "0x02000000" +setenv dtb_loadaddr "0x01f00000" + +load mmc 1:1 ${loadaddr} KERNEL + +if test ${hwrev} = 'v11'; then + if gpio input c22; then + if gpio input d9; then + load mmc 1:1 ${dtb_loadaddr} rk3326-powkiddy-rgb10.dtb + else + load mmc 1:1 ${dtb_loadaddr} rk3326-odroid-go2-v11.dtb + fi + else + load mmc 1:1 ${dtb_loadaddr} rk3326-anbernic-rg351m.dtb + fi +elif test ${hwrev} = 'v10-go3'; then + load mmc 1:1 ${dtb_loadaddr} rk3326-odroid-go3.dtb +elif test ${hwrev} = 'v10'; then + load mmc 1:1 ${dtb_loadaddr} rk3326-odroid-go2.dtb +elif test ${hwrev} = 'rg351v'; then + load mmc 1:1 ${dtb_loadaddr} rk3326-anbernic-rg351v.dtb +elif test ${hwrev} = 'rg351mp'; then + load mmc 1:1 ${dtb_loadaddr} rk3326-anbernic-rg351mp.dtb +fi + +booti ${loadaddr} - ${dtb_loadaddr} +