[U-Boot] [PATCH] devkit8000: Move CONFIG_SYS_TEXT_BASE out of bss

Simon Schwarz
2011-12-01T09:07:32Z

Hi Igor,

this only affects Boards with SPL support - and only devkit8000.

The SPL has its .bss section in SD-RAM while the rest is in SRAM -
CONFIG_SYS_TEXT_BASE was in the same area as .bss. This caused trouble
as the header of the u-boot.img was written before
CONFIG_SYS_TEXT_BASE. In the described case this messed with the
pointer to the mcc datastructure - therefore the u-boot.img file
failed to be read.

Regards
Simon

2011/12/1 Igor Grinberg <grinberg@compulab.co.il>:
> Hi Simon,
>
> On 11/30/11 19:05, Simon Schwarz wrote:
>> This moves CONFIG_SYS_TEXT_BASE one MB after beginning of SD-RAM. Move
>> CONFIG_SYS_SPL_MALLOC_START to have one MB of free space for the u-boot image.
>>
>> CONFIG_SYS_TEXT_BASE was in the middle of the bss-section. This was the reason
>> for the problems with MMC boot described here:
>> http://article.gmane.org/gmane.comp.boot-loaders.u-boot/118711
>
> Does this affect only boards having the SPL support?
> Can you, please, shed some more light on this?
>
>
> --
> Regards,
> Igor.