[U-Boot] [RFC] [PATCH] arm: arm926ejs: use ELF relocations

J. William Campbell
2010-10-05T05:41:50Z

On 10/4/2010 10:30 PM, Wolfgang Denk wrote:
> Dear Albert ARIBAUD,
>
> In message<4CAA50AA.3000608@free.fr> you wrote:
>> Remember: this patch only applies to boards which boot from NOR FLASH!
>> You can test it on other types of boards (NAND-based, etc) for
>> regression testing, but nothing more.
> Assuming the NAND loder does not load U-Boot to it's final location
> at the upper end of RAM, but - say - somewhere in lower memory, the
> standard relocation preocess will be running, so I think there should
> be no real difference between (such) NAND booting systems and NOR
> booting ones - or am I missing something?
FWIW I think you are right. If u-boot is linked for the address where
the NAND loader put it, everything should work fine. It can
size memory, move a copy of u-boot to the top of memory, and branch to
the entry point that continues initialization.

Bill Campbell
> Best regards,
>
> Wolfgang Denk
>