On Thu, Aug 4, 2011 at 1:55 PM, Arno Steffen
<arno.stef...@googlemail.com> wrote:
> While migrating from .33 to .37 kernel I found, that HW-ECC is used by 
> default.
> I found that this is set in omap2.c:
>        pdata->ecc_opt          = OMAP_ECC_HAMMING_CODE_HW;
> Unfortunatly setting it back to
>        pdata->ecc_opt          = OMAP_ECC_HAMMING_CODE_DEFAULT;
> doesn't prevent me from getting messages like:
>
> uncorrectable error :
> uncorrectable error :
> mtd->read(0xd18 bytes from 0x7eae8) returned ECC error
>
> So what else has to be set? I couldn't found it.

swecc on .37 is broken (I'm not even sure hwecc works as I use swecc),
you need at least 2.6.39.1 to use that. It is possible to patch .37
but I don't have list of needed parches, but maybe could get you that
if you really need it (or look what changed under drivers/mtd between
those versions yourself).

> Other way maybe to keep it at HW-ECC. Is this significant faster than SW-ECC?
> But howto get nandwrite (mtd-utils) or fw_setenv (uboot) to handle HW-ECC?
> Do I have to use just the --noecc option?
>
> When using the fw_setenv command I get CRC errors in environment with next 
> boot.

Never tried hwecc so can't help you here.


-- 
Gražvydas
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to