[U-Boot] Manual relocation sucks.

Scott Wood scottwood at freescale.com
Fri Jun 26 20:03:33 CEST 2009


On Thu, Jun 18, 2009 at 06:23:27PM +0800, Mingkai Hu wrote:
> The bbt descriptors contains the pointer to the bbt pattern which
> are statically initialized memory struct. When relocated to RAM,
> these pointers will continue point to NOR flash(or L2 SRAM, or
> other boot device). If the contents of NOR flash changed or L2
> SRAM disabled, it'll hang the system.
> 
> Signed-off-by: Mingkai Hu <Mingkai.hu at freescale.com>

Applied to u-boot-nand-flash, with the subject changed to reflect that
this is only for one driver.

> I fixed this issue by redirecting the pointer to the data address in RAM
> at driver level. Fixing up the generic structures in nand_bbt.c may be a
> little more awkward, so I try the -mrelocatble flag and it also works.
> 
> Although the relocation changs were backouted, can we re-investigate this
> method again? After all, this is the ultimate method. :-)

Agreed.  Can anyone shed some light on what the problems were the last
time, and whether they're still around with current toolchains?

-Scott


More information about the U-Boot mailing list