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

Artem Bityutskiy dedekind1 at gmail.com
Mon Sep 13 02:25:40 EDT 2010


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?

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list