[PATCH] nandwrite: add --nobad to write bad blocks

Mike Frysinger vapier at gentoo.org
Sun Sep 12 15:05:42 EDT 2010


On Sun, Sep 12, 2010 at 12:27, Artem Bityutskiy wrote:
> On Sat, 2010-09-11 at 23:51 -0400, Mike Frysinger wrote:
>> Sometimes dumping bad blocks is useful, like when the block isn't actually
>> bad but the OOB layout isn't what the kernel is expecting or is otherwise
>> screwed up.  The --nobad option allows just that.
>
> How useful is this? I think instead you should implement the force flag
> we discussed and deal with 'otherwise screwed up' eraseblocks with
> flash_erase. I am afraid it is too dangerous to introduce this option.

i dont see how this is any more dangerous than adding an option to
force erasing of bad blocks ?  why should we be over protective of the
system ?  this is what got is into the existing rut of unrecoverable
blocks.

i find it useful during development to write out the content of pages
irregardless of the bad blocks and then read them back.  and for
recovering systems manually without having to resort to local access
to the bootloader.
-mike



More information about the linux-mtd mailing list