Hi Jonas,

On 10/4/26 9:58 PM, Jonas Karlman wrote:
The RK3328 has 36 KiB SRAM at [0xff090000, 0xff099000). With 4 KiB of
the initial SRAM typically reserved for BootROM during early boot.

BootROM will load init code of up to 32 KiB (0x8000 bytes) to address
0xff091000 in SRAM, before jumping to it.

BootROM typically jumps to init code with following registers:

   x0: 00000000 ff091004
   x1: 00000000 32334b52
   x2: 00000000 ff520000
   x3: 00000000 ff500000

   sp: 00000000 ff090f50

mkimage is enforcing a 30 KiB init code size limit for RK3328.
However, the BootRAM can load up to 32 KiB of init code.

Change the init code size limit to 32 KiB using the <size> - <reserved>
pattern to closer match the actual limit of BootROM on RK3328.


Downstream still uses 0x8000 - 0x800 so unless someone from Rockchip confirms this is safe, I would rather not modify what we have today.

Cheers,
Quentin

Reply via email to