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:16:39 EDT 2010


On Mon, Sep 13, 2010 at 02:25, Artem Bityutskiy wrote:
> On Mon, 2010-09-13 at 06:54 +0100, Jon Povey wrote:
>> Mike Frysinger wrote:
>> > ive come across a situation where it would have been invaluable to
>> > have the ability to "scrub" the nand flash while running linux.
>>
>> I would find this useful too, or more specifically I recently wanted to rewrite the BBT in software from linux (to change OOB layout), but those blocks are marked off-limits. Some way to force it would be nice.
>>
>> I am just rambling though, no real useful suggestion :) Sorry..
>>
>> As for clearing blocks marked bad, how about MEMSETGOODBLOCK as the inverse of the existing MEMSETBADBLOCK?
>
> So may be we need a separate ioctl for dealing with bad eraseblocks
> which will also include abilities to re-write BBT?

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.
-mike



More information about the linux-mtd mailing list