
19 Nov
2010
19 Nov
'10
1:20 a.m.
On Thu, 18 Nov 2010 16:13:52 -0800 Steve Sakoman steve@sakoman.com wrote:
The code generating both errors is in the nand_do_read_ops function in nand_base.c:
if (mtd->ecc_stats.failed - stats.failed) return -EBADMSG; return mtd->ecc_stats.corrected - stats.corrected ? -EUCLEAN : 0;
}
I understand that the -EUCLEAN error indicates a correctable ECC error. What does the -EBADMSG error indicate?
An uncorrectable ECC error (or other failure).
This condition doesn't seem to bother the linux driver, but u-boot doesn't like it at all!
Check whether the ECC layout and code is the same for this driver in both U-Boot and Linux.
-Scott