Nand flash: hang after erase

Elizabeth Clarke eclarke at
Thu Jan 24 12:35:04 EST 2002

Elizabeth Clarke wrote:
> erase->state is zero... nand_erase is not setting it appropriately. I
> bunged in a line  instr->state = MTD_ERASE_DONE; on the way out and now
> getting further.

hmmm, interesting. Further means as far as noticing nandtest seems to
trash the manufacturers info. Doh, I should have realised that.

And this whilst mounting jffs2:

JFFS2: Erase block at 0x00014000 is not formatted. It will be
erased            nand_read_ecc: from = 0x00016000, len =
4096                                    nand_read_ecc: Failed ECC read,
page 0x000000b1                                
nand_sync: called
mount: Mounting /dev/mtdblock0 on /mnt/jffs2 failed: Invalid argument

Which is where I believe I had a genuine bad block. I thought JFFS2 is
supposed to handle bad blocks? Or have I got the wrong impression...


More information about the linux-mtd mailing list