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

Mike Frysinger vapier.adi at gmail.com
Mon Sep 13 21:59:15 EDT 2010


On Mon, Sep 13, 2010 at 21:53, Jon Povey wrote:
> Mike Frysinger wrote:
>> i dont have any devices that have dedicated software BBTs.  i'm
>> concerned with just the forced erasing of blocks since the rest works
>> for me already (forced reading and writing).  the ability to change
>> the definition of the OOB is apparently "deprecated" now, so i cant
>> fix things on the fly there.
>
> Not quite sure what you mean by the last part. I have used raw writes with OOB, software-generated ECC and altered layout of flash pages, to good effect.
>
> I'm don't know what's deprecated, although the kind of hackery I am doing I wouldn't expect to be encouraged by the API. I do, however, appreciate when such things are possible. Especially on embedded, I don't want a kernel API thinking it knows best about, f.ex., allowing me to erase and rewrite the BBT. Stopping me doing it by accident is fine. Making it impossible is a pain.

please fix your e-mailer to not generate long  unwrapped lines

i'm talking about MEM{G,S}ETOOBSEL
-mike



More information about the linux-mtd mailing list