Hi @AldoG
I needed just few more bytes to fit into max size on a i.MX8MP, then I tried to increase the maximum size from 0x26000 to 0x27000, and seems that everything is working well.
My question was about the SPL max size default value: at this point, considering your answer probably the 0x26000 is just a reasonable value (nothing related to a physical memory size like for the i.MX8MM) but i.MX8MP OCRAM can handle bigger SPL binaries.
My primary worry about increasing the max SPL size was about possible OCRAM overlaps with other software reserved sections, but as far as I understood the only other binaries that uses OCRAM during first boot phases are the bootROM and the ATF. If I'm not wrong, considering the boot phase, we have:
- 0x900000-0x917FFF reserved to BootRom (Figure 6-2. Internal ROM and RAM memory map, i.MX8MP reference manual)
- 0x970000-0x98FFFF ATF (see AN14093)
- 0x918000-0x96FFFF usable OCRAM
By u-boot defconfig the SPL is placed at 0x920000 (not at 0x918000), then the usable space by SPL could be 0x920000-0x96FFFF, that is 320KB.
Obviously 320KB as SPL maximum default size is quite big, but is it the theoretically upper limit to SPL max size on i.MX8MP? And, more important, is the OCRAM section 0x918000-0x96FFFF really usable by SPL without overlapping with other binaries memory?
Thanks in advance, regards
Mauro