mtd-utils/nandwrite: what if write fails?

Ricard Wanderlof ricard.wanderlof at axis.com
Fri Oct 27 09:09:46 EDT 2006


On Tue, 17 Oct 2006, Josh Boyer wrote:

> pwrite can fail because of a transient error.  NAND can get soft bit
> flips that can be cleared by erasing the block.  So to mark a block bad
> without at least trying to write to it a couple of times seems a bit
> drastic.

What if erase were integrated into nandwrite (controlled by an option, not 
by default), so that blocks were erased immediately prior to writing? In 
that case a failed erase or write would really indicate a bad block.

Or have there been cases where a block fails to erase or write, but 
recovers after a couple of erase operations? Surely such a block would be 
deemed to uncertain to contain data, and should be discarded (= marked 
bad) ?

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30




More information about the linux-mtd mailing list