The PX30/RK3326 has 16 KiB SYSTEM SRAM at [0xff0e0000, 0xff0e4000) and 8 KiB PMU SRAM at [0xff020000, 0xff022000). With 4 KiB of the initial SYSTEM SRAM typically reserved for BootROM during early boot.
BootROM will load init code of up to 12 KiB (0x3000 bytes) to address 0xff0e1000 in SYSTEM SRAM, before jumping to it. BootROM of RK3326 typically jumps to init code with following registers: x0: 00000000 00000000 x1: 00000000 a000414c x2: 00000000 00000000 x3: 00000000 00000000 sp: 00000000 ff0e0f50 mkimage is enforcing a 10 KiB init code size limit for PX30/RK3326. However, the BootRAM can load up to 12 KiB of init code. Change the init code size limit to 12 KiB using the <size> - <reserved> pattern to closer match the actual limit of BootROM on PX30/RK3326. Signed-off-by: Jonas Karlman <[email protected]> --- tools/rkcommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index b39777fc0607..ccd1cb5b1ef6 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -137,7 +137,7 @@ struct spl_info { }; static struct spl_info spl_infos[] = { - { "px30", "RK33", 0x2800, false, RK_HEADER_V1 }, + { "px30", "RK33", 0x4000 - 0x1000, false, RK_HEADER_V1 }, { "rk3036", "RK30", 0x1000, false, RK_HEADER_V1 }, { "rk3066", "RK30", 0x8000 - 0x800, true, RK_HEADER_V1 }, { "rk3128", "RK31", 0x1800, false, RK_HEADER_V1 }, -- 2.55.0
