Is it an atomic operation for writing a page in NAND flash
David Parkinson
parky_dw at ntlworld.com
Wed Jan 20 11:17:55 EST 2010
At 14:54 20/01/2010, Ricard Wanderlof wrote:
>...
>The end result is that you can't say "if the ECC says it's ok, the data
>hasn't been corrupted" (which you could with a CRC).
>...
Apologies for nit-picking (and small digression), but a CRC is no
guarantee either. Whilst error correcting codes have additional
information so that small errors can be corrected both CRCs and ECCs
work in the same way in detecting likely errors in the communications
channel. (It's all maths and statistics....).
A side question here is have the check algorithms been matched to the
characteristics of the MTDs? For example a weakish radio signal is
likely to have errors randomly distributed across the message. With
a magnetic disk drive the errors are likely be caused by a blemish on
the surface and therefore will come in bursts. Some algorithms will
be better than others in the respective cases.
Regards
David
More information about the linux-mtd
mailing list