* Cannot erase nand flash
@ 2006-06-26 17:02 Steve Finney
2006-06-26 17:08 ` Josh Boyer
2006-06-26 17:19 ` Thomas Gleixner
0 siblings, 2 replies; 3+ messages in thread
From: Steve Finney @ 2006-06-26 17:02 UTC (permalink / raw)
To: linux-mtd
>Date: Mon, 26 Jun 2006 10:52:43 +0200
>From: peter.hosten@rwth-aachen.de
> Unfortunately the mtd-util
>(flash_eraseall, mtd_debug) is not able to erase the NAND-Flash. I get the
>error "./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error"
>(see below)
>I also dumped the NAND Flash ( see below); may it be possible that it does
>not work because of the OBB data ( OOB Data: 00 00 00 00 00 00 00 00 00 00
>00 00 00 00 00 00) ?
I have seen that error with some versions of mtd-utils when the partition contains a
bad block, and your dumped OOB would be interpreted as a bad block
(no 0xFF in byte 5). But, in fact, the flash may have been successfully erased, and Linux
works reasonably well with bad blocks, so you may be able to just ignore
the "error".
sf
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cannot erase nand flash
2006-06-26 17:02 Cannot erase nand flash Steve Finney
@ 2006-06-26 17:08 ` Josh Boyer
2006-06-26 17:19 ` Thomas Gleixner
1 sibling, 0 replies; 3+ messages in thread
From: Josh Boyer @ 2006-06-26 17:08 UTC (permalink / raw)
To: Steve Finney; +Cc: linux-mtd
On 6/26/06, Steve Finney <saf76@earthlink.net> wrote:
>
> >Date: Mon, 26 Jun 2006 10:52:43 +0200
> >From: peter.hosten@rwth-aachen.de
>
> > Unfortunately the mtd-util
> >(flash_eraseall, mtd_debug) is not able to erase the NAND-Flash. I get the
> >error "./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error"
> >(see below)
>
> >I also dumped the NAND Flash ( see below); may it be possible that it does
> >not work because of the OBB data ( OOB Data: 00 00 00 00 00 00 00 00 00 00
> >00 00 00 00 00 00) ?
>
> I have seen that error with some versions of mtd-utils when the partition contains a
> bad block, and your dumped OOB would be interpreted as a bad block
> (no 0xFF in byte 5). But, in fact, the flash may have been successfully erased, and Linux
> works reasonably well with bad blocks, so you may be able to just ignore
> the "error".
The tool could be made to check each block to see if it's bad first
before erasing. Then it would print a nice informative:
Block %d is bad, skipping
instead of the misleading error you get now.
josh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cannot erase nand flash
2006-06-26 17:02 Cannot erase nand flash Steve Finney
2006-06-26 17:08 ` Josh Boyer
@ 2006-06-26 17:19 ` Thomas Gleixner
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Gleixner @ 2006-06-26 17:19 UTC (permalink / raw)
To: Steve Finney; +Cc: linux-mtd
On Mon, 2006-06-26 at 10:02 -0700, Steve Finney wrote:
> >Date: Mon, 26 Jun 2006 10:52:43 +0200
> >From: peter.hosten@rwth-aachen.de
>
> > Unfortunately the mtd-util
> >(flash_eraseall, mtd_debug) is not able to erase the NAND-Flash. I get the
> >error "./flash_eraseall: /dev/mtd3: MTD Erase failure: Input/output error"
> >(see below)
>
> >I also dumped the NAND Flash ( see below); may it be possible that it does
> >not work because of the OBB data ( OOB Data: 00 00 00 00 00 00 00 00 00 00
> >00 00 00 00 00 00) ?
>
> I have seen that error with some versions of mtd-utils when the partition contains a
> bad block, and your dumped OOB would be interpreted as a bad block
> (no 0xFF in byte 5). But, in fact, the flash may have been successfully erased, and Linux
> works reasonably well with bad blocks, so you may be able to just ignore
> the "error".
Err, when oob data are all set to 0, there is something wrong.
tglx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-06-26 17:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-26 17:02 Cannot erase nand flash Steve Finney
2006-06-26 17:08 ` Josh Boyer
2006-06-26 17:19 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox