33 lines
993 B
INI
33 lines
993 B
INI
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
|
|
elif test ${hwrev} = 'xu10'; then
|
|
load mmc 1:1 ${dtb_loadaddr} rk3326-magicx-xu10.dtb
|
|
fi
|
|
|
|
booti ${loadaddr} - ${dtb_loadaddr}
|
|
|