[BUG] JFFS2 power loss recovery issues on NAND

Iwo Mergler iwo at call-direct.com.au
Tue Jun 17 19:51:05 EDT 2008

Matthieu CASTET wrote:
> 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.
Forgive my ignorance - does that mean that not everything in JFFS2 is 
CRC protected?

If that is the case, forget my suggestion. I don't know JFFS2 that 
intimately. :-)

Kind regards,


More information about the linux-mtd mailing list