u-boot reports ecc error on blocks written by nandwrite

Mark Roths mroths at softairmicro.com
Tue Jun 3 00:28:39 EDT 2008


I haven't had a plethora of problems, just this one.  It is also extremely
reproducible leading me to not suspect any kind of timing problem. 

Everything else works find, JFFS2, boot partition etc.

But when I write a block with nandwrite, u-boot chokes on it.

	-Mark

> -----Original Message-----
> From: James [mailto:jamessteward at optusnet.com.au]
> Sent: Monday, June 02, 2008 3:19 PM
> To: Mark Roths
> Cc: linux-mtd at lists.infradead.org
> Subject: RE: u-boot reports ecc error on blocks written by nandwrite
> 
> 
> On Mon, 2008-06-02 at 14:56 -0700, Mark Roths wrote:
> > Yes, u-boot can erase, write, and read with no problems on its own.
> > I use the u-boot nand utilities to build my flash with bootloader, u-
> boot,
> > linux and initrd.  All that works fantastically.
> >
> > The only time I have problems is when I write a block in my boot
> partition
> > using nandwrite, and then subsequently read it with u-boot on the next
> boot.
> > And the completely strange behavior is that if I request 1 byte using
> 'nand
> > read', it fails the 1st time and then succeeds - all reads succeed after
> > that with no ecc errors.
> 
> Sounds almost like a cache problem.
> 
> > Both the mtdchar driver and u-boot are configured for soft ecc, or so I
> > believe from my reading of the code.
> 
> Likely.
> 
> I've had a plethora of problems using the NAND MT29F2G08AACWP on some
> AT91SAM9263-EK boards.  I now feel it might be a timing issue.  Maybe
> yours is too!
> 
> Regards,
> James.





More information about the linux-mtd mailing list