From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric =?ISO-8859-1?B?QuluYXJk?= Date: Tue, 11 Dec 2012 09:50:37 +0100 Subject: [U-Boot] [PATCH] m28evk/mx28evk: fix nand_update_full In-Reply-To: <1355180363.5334.16@snotra> References: <1355157719-10409-1-git-send-email-eric@eukrea.com> <1355180363.5334.16@snotra> Message-ID: <20121211095037.718448a3@eb-e6520> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Scott, Le Mon, 10 Dec 2012 16:59:23 -0600, Scott Wood 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