linux equivalent of u-boot's "nand scrub" (erasing blocks even when OOB says "bad")

Mike Frysinger vapier.adi at gmail.com
Sun Sep 12 00:03:38 EDT 2010


On Sat, Sep 11, 2010 at 02:32, Artem Bityutskiy wrote:
> On Fri, 2010-09-10 at 19:53 -0400, Mike Frysinger wrote:
>> the logical thing in my mind would be to extend the userspace mtd abi
>> to allow a "do the erase even if people think it's bad" option.
>> perhaps MEMSCRUB ?
>
> If you do this, please do not use this name. In UBI we already use term
> 'scrubbing' for the process when we move contents of eraseblock because
> we have bit-flips.

that doesnt sound like scrubbing at all, but too late now i guess to fix

> It will be confusing if the same word is used in MTD for "unmarking"
> eraseblocks. How about: 'force erase' or 'bad erase' ?

that makes it sound like an option to the existing MEMERASE operation.
 so i guess what if we just do that -- extend the erase_info_user
structure to contain a flags field and add a MEMERASE2 that works with
the larger structure ?  for now we'd only have one option (FORCE), but
it makes it easy to extend in the future.
-mike



More information about the linux-mtd mailing list