Mark bad eraseblock back to good

Ricard Wanderlof ricard.wanderlof at axis.com
Mon Oct 20 04:17:31 EDT 2008


On Fri, 17 Oct 2008, Spinelli, Claudio (Claudio) wrote:

> Hi,
>
> I am using a nand flash that has a lot of marked bad eraseblock. I think
> that are marked bad from previous mistake in my nand flash driver.
> Does anybody have a modified flash_eraseall that marks bad eraseblock
> back to good. Or any scripts that does that?

The inability to remove bad block markers is built into the mtd code so 
there is no way around it using a userspace program.

It is easy however to remove or comment out the relevant lines in the mtd 
code, rebuild the kernel, and then use flash_erase to erase the blocks.

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list