From: DENX Support System Date: Sat, 30 Sep 2006 09:40:03 +0200 Subject: [U-Boot-Users] [DNX#2006093042000016] [PATCH] NAND Flash verify across block boundaries Message-ID: <1159602003.686520.288419773@castor.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello list, inside the automatic U-Boot patch tracking system a new ticket [DNX#2006093042000016] was created: > Hello, > > This patch addresses a problem when CONFIG_MTD_NAND_VERIFY_WRITE is > defined > and the write crosses a block boundary. The pointer to the verification > buffer (bufstart) is not being updated to reflect the starting of the > new > block so the verification of the second block fails. > > Regards, > Nick > > > CHANGELOG: > > * Fix NAND FLASH page verification across block boundaries > > > > diff --git a/drivers/nand/nand_base.c b/drivers/nand/nand_base.c > index b7a5d32..6b13c4e 100644 > --- a/drivers/nand/nand_base.c > +++ b/drivers/nand/nand_base.c > @@ -1713,6 +1713,7 @@ static int nand_write_ecc (struct mtd_in > goto out; > } > *retlen = written; > + bufstart = (u_char*) &buf[written]; > > ofs = autoplace ? mtd->oobavail : mtd->oobsize; > if (eccbuf) Your U-Boot support team