[U-Boot] [RFC/PATCH] jffs2/mtdparts: Fix problem with usage from JFFS2 and MTDPARTS together

Scott Wood scottwood at freescale.com
Tue May 26 21:48:00 CEST 2009


On Sun, May 24, 2009 at 11:10:24PM +0200, Wolfgang Denk wrote:
> I get this:
> 
> 	=> nand read 200000 0 1000000
> 
> 	NAND read: device 0 offset 0x0, size 0x1000000
> 	NAND read from offset 0 failed -74
> 	 16777216 bytes read: ERROR
> 
> Hm, this is indeed a very helpful message. What does it tell you? I
> can't parse that. May we please have more readable error messages from
> the NAND code? Please?!
> 
> Is this -74 decimal as EBADMSG or -0x74 = NAND_CMD_STATUS_ERROR1 ?

It's the former.  Not sure why that particular error is used rather than
EIO (we inherited that from Linux), but it seems to represent an
uncorrectable ECC error.

Yes, an explicit user message of "Uncorrectable ECC error" would be nice.
:-)

-Scott


More information about the U-Boot mailing list