[BUG] JFFS2 power loss recovery issues on NAND
Matthieu CASTET
matthieu.castet at parrot.com
Tue Jun 17 04:13:06 EDT 2008
Iwo Mergler wrote:
> Alexey Korolev wrote:
>>
> Alexey,
>
> I know of at least one hardware ECC implementation which can flag
> errors within the ECC bytes separately. In other words, not all
> implementations
> will detect/correct bit errors in the case of a ECC write error.
>
> About how to fix it - what about making the reading without ECC the default
> and only re-reading with ECC if JFFS2 finds an invalid checksum?
>
But what happen if a but flip happen ?
If we do this, ecc won't correct it, the error can happen everywhere not
only in checksum, for example wrong nodetype.
If only we could put a marker after the ecc data, we could detect such
case. But linux put ecc at the end of oob.
Matthieu
More information about the linux-mtd
mailing list