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

Scott Wood scottwood at freescale.com
Tue Dec 11 18:10:05 CET 2012


On 12/11/2012 02:50:37 AM, Eric Bénard wrote:
> 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 ?

Please reword it.

-Scott


More information about the U-Boot mailing list