[U-Boot] [PATCH] m28evk/mx28evk: fix nand_update_full

Eric Bénard eric at eukrea.com
Tue Dec 11 09:50:37 CET 2012


Hi Scott,

Le Mon, 10 Dec 2012 16:59:23 -0600,
Scott Wood <scottwood at freescale.com> a écrit :

> On 12/10/2012 10:41:59 AM, Eric Bénard wrote:
> > - commit 418396e212b59bf907dbccad997ff50f7eb61b16 chenged the  
> > behaviour
> > of nand write.raw which now takes a pagecount as a parameter and no  
> > more
> > the size to be written so update the default environment of these  
> > boards
> > to fix the problem.
> 
> It never really took the size to be written -- the size was implicitly  
> one page before.  It looks like there may have been a bug in the old  
> code, where common code expected a size to be there anyway, even though  
> it was ignored other than for error checking.
> 
true, before the size was forced to one page :
rwsize = nand->writesize + nand->oobsize;
now it's rwsize = pagecount * (nand->writesize + nand->oobsize);
so the size parameter in this script was ignored and now leads to a
wrong rwsize calculation.

Do you want me to rephrase the commit log or will you take it as is ?

Eric


More information about the U-Boot mailing list