[U-Boot] fw_setenv broken?
Scott Wood
scottwood at freescale.com
Fri Nov 19 01:20:14 CET 2010
On Thu, 18 Nov 2010 16:13:52 -0800
Steve Sakoman <steve at 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
More information about the U-Boot
mailing list