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

Peng Fan peng.fan at oss.nxp.com
Wed Apr 26 03:38:45 CEST 2023



On 4/20/2023 2:57 PM, Frieder Schrempf wrote:
> 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?

With binman to pack images, it is true that the ddr firmware is not that
large. The CONFIG_SPL_MAX_SIZE could be enlarged.

I am not sure what default value could be used.

Regards,
Peng.

> 
> Thanks
> Frieder


More information about the U-Boot mailing list