[PATCH V2 01/53] spl: imx8mm: enlarge SPL_MAX_SIZE

Frieder Schrempf frieder.schrempf at kontron.de
Thu Apr 20 08:57:35 CEST 2023


Hi,

On 26.07.22 10:40, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
> 
> The CONFIG_SPL_MAX_SIZE could be 0x27000 for i.MX8MM when SPL_TEXT_BASE
> set to 0x7E1000.
> 
> The DDR firmware max uses 96KB, there is a 4KB padding header before
> SPL_TEXT_BASE, so the SPL MAX SIZE is `256KB - 96KB - 4KB`.

Am I right to assume that setting CONFIG_SPL_MAX_SIZE to 0x27000 is more
restricting nowadays than it would need to be?

If I understand correctly nowadays the DDR firmware doesn't need a fixed
96 KiB area with padding anymore, but rather takes up only the space it
needs (~ 57 KiB) due to "binman magic".

If this is correct, is it safe to increase CONFIG_SPL_MAX_SIZE?
Is there a sane default that we could use instead of 0x27000?

Thanks
Frieder


More information about the U-Boot mailing list