[U-Boot] [PATCH] NAND: cmd_nand.c: fix invalid pointers tostatic relocated chip names
Valeriy Glushkov
gvv at lstec.com
Mon Jan 19 14:36:23 CET 2009
I have not tried it for non-NAND boot, but it should work for any type of
boot devices where gd->reloc_off is set properly.
The previous version still works for nay NOR boot, as the non-relocated
pointers to static strings are always point to the RO data in the NOR.
But for the NAND boot where we start directly from RAM, this happens,
because the initial non-relocated memory can be overwritten any time...
Best regards,
Valeriy Glushkov
P.S. Sorry for the invalid email address. Fixed.
----- Original Message -----
From: "Jean-Christophe PLAGNIOL-VILLARD" <plagnioj at jcrosoft.com>
To: "Valeriy Glushkov" <gvv at lstec.com>
Cc: <u-boot at lists.denx.de>
Sent: 19 ?????? 2009 ?. 15:05
Subject: Re: [U-Boot] [PATCH] NAND: cmd_nand.c: fix invalid pointers
tostatic relocated chip names
> On 15:13 Mon 19 Jan , gvv at horse.lst.loc wrote:
>> When U-boot starting from NAND the pointers to chip names are set before
>> relocation.
>> If the original memory block is overwritten after relocation that led to
>> invalid
>> string data in the nand utility.
>
> what will happen when it does not start from nand but an other device??
>
> btw please fix you mailer to show your real address in the From
>
> Best Regards,
> J.
More information about the U-Boot
mailing list