[U-Boot] Fwd: u-boot.img size limit for spl fat load ?

Ayoub Zaki ayoub.zaki at googlemail.com
Mon Jan 19 13:25:09 CET 2015


CONFIG_SYS_TEXT_BASE=0x80800000
and
CONFIG_SPL_BSS_START_ADDR=0x80a00000
So the maximal size of u-boot to avoid a memory address colision is
0x200000 = 2MB !

2015-01-19 13:20 GMT+01:00 Ayoub Zaki <ayoub.zaki at googlemail.com>:

> I checked the SPL Memory allocations :
>
> CONFIG_SYS_SPL_MALLOC_START="(CONFIG_SPL_BSS_START_ADDR +
> CONFIG_SPL_BSS_MAX_SIZE)"
> CONFIG_SPL_TEXT_BASE=0x402F0400
> CONFIG_SPL_BSS_MAX_SIZE=0x80000
> CONFIG_SPL_BSS_START_ADDR=0x80a00000
>
> My U-boot.img is arround 2.8MB
>
> I increased the CONFIG_SPL_BSS_MAX_SIZE to 0x400000 but it did not improve
> the result, for me is not clear how to play/adjust those values ?
>
>
>
> 2015-01-19 10:54 GMT+01:00 Albert ARIBAUD <albert.u.boot at aribaud.net>:
>
>> Addition:
>>
>> > Can you check CONFIG_SPL_BSS_* and CONFIG_SYS_SPL_MALLOC_* definitions
>> > against CONFIG_SYS_TEXT_BASE and file size?
>>
>> Same goes for SPL stack if it is placed in DDR.
>>
>> Amicalement,
>> --
>> Albert.
>>
>
>


More information about the U-Boot mailing list