* Unmarking bad blocks?
@ 2004-06-07 18:54 Andriy Korud
2004-06-07 22:10 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Andriy Korud @ 2004-06-07 18:54 UTC (permalink / raw)
To: linux-mtd
Hi,
after playing with mkfs.jffs2 and nandwrite a lot of blocks on my flash chip (Samsung 128Mb) become marked as bad (and I'm sure they were not bad at the beginning).
Is it possible to 'unmark' them or should this chip is unusble anymore?
flash_eraseall gives:
nand_erase: attempt to erase a bad block at page 0x00000000
nand_erase: attempt to erase a bad block at page 0x00000040
nand_erase: attempt to erase a bad block at page 0x00000080
nand_erase: attempt to erase a bad block at page 0x000000c0
...
Even I commented out bad block checking in nand_erase(), flash_eraseall comlete successfully however blocks remain marked as bad.
Any ideas?
Thanks in advance,
--
Andriy Korud
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Unmarking bad blocks?
2004-06-07 18:54 Unmarking bad blocks? Andriy Korud
@ 2004-06-07 22:10 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2004-06-07 22:10 UTC (permalink / raw)
To: Andriy Korud, linux-mtd
On Monday 07 June 2004 20:54, Andriy Korud wrote:
> Hi,
> after playing with mkfs.jffs2 and nandwrite a lot of blocks on my flash
> chip (Samsung 128Mb) become marked as bad (and I'm sure they were not bad
> at the beginning). Is it possible to 'unmark' them or should this chip is
> unusble anymore? flash_eraseall gives:
What does playing mean ?
> nand_erase: attempt to erase a bad block at page 0x00000000
> nand_erase: attempt to erase a bad block at page 0x00000040
> nand_erase: attempt to erase a bad block at page 0x00000080
> nand_erase: attempt to erase a bad block at page 0x000000c0
> ...
Thats odd.
> Even I commented out bad block checking in nand_erase(), flash_eraseall
> comlete successfully however blocks remain marked as bad.
Hmm, the erase command runs if you remove the bad block check in nand_erase()
inside the nand driver. So the blocks including the bad block marker should be
erased.
NAND chip type ?
Bus width ?
Kernel version ?
MTD version ?
--
Thomas
________________________________________________________________________
Steve Ballmer quotes the statistic that IT pros spend 70 percent of their
time managing existing systems. That couldn’t have anything to do with
the fact that 99 percent of these systems run Windows, could it?
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-07 22:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-07 18:54 Unmarking bad blocks? Andriy Korud
2004-06-07 22:10 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox