public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Mark bad eraseblock back to good
@ 2008-10-17 15:41 Spinelli, Claudio (Claudio)
  2008-10-20  8:17 ` Ricard Wanderlof
  0 siblings, 1 reply; 4+ messages in thread
From: Spinelli, Claudio (Claudio) @ 2008-10-17 15:41 UTC (permalink / raw)
  To: linux-mtd

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?

Thanks
Claudio

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Mark bad eraseblock back to good
       [not found] <mailman.15.1224259204.15271.linux-mtd@lists.infradead.org>
@ 2008-10-20  6:18 ` postmaster
  2008-10-21  9:28   ` Singh, Vimal
  0 siblings, 1 reply; 4+ messages in thread
From: postmaster @ 2008-10-20  6:18 UTC (permalink / raw)
  To: linux-mtd


 >Does anybody have a modified flash_eraseall that marks bad eraseblock
 >back to good. Or any scripts that does that?


Hi

If you are using u-boot, there is a u-boot command (I can not remember 
its name) to mark bad eraseblocks as good.

Ensar

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Mark bad eraseblock back to good
  2008-10-17 15:41 Spinelli, Claudio (Claudio)
@ 2008-10-20  8:17 ` Ricard Wanderlof
  0 siblings, 0 replies; 4+ messages in thread
From: Ricard Wanderlof @ 2008-10-20  8:17 UTC (permalink / raw)
  To: Spinelli, Claudio (Claudio); +Cc: linux-mtd@lists.infradead.org


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Mark bad eraseblock back to good
  2008-10-20  6:18 ` Mark bad eraseblock back to good postmaster
@ 2008-10-21  9:28   ` Singh, Vimal
  0 siblings, 0 replies; 4+ messages in thread
From: Singh, Vimal @ 2008-10-21  9:28 UTC (permalink / raw)
  To: linux-mtd@lists.infradead.org

> >Does anybody have a modified flash_eraseall that marks bad eraseblock
>  >back to good. Or any scripts that does that?
> 
> 
> Hi
> 
> If you are using u-boot, there is a u-boot command (I can not remember
> its name) to mark bad eraseblocks as good.
> 
Use 'nand scrub' (from u-boot), it really cleans NAND erasing bad blocks.

NOTE: scrub option will erase all factory set bad blocks! There is no reliable way to recover them. 

vimal

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-21  9:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.15.1224259204.15271.linux-mtd@lists.infradead.org>
2008-10-20  6:18 ` Mark bad eraseblock back to good postmaster
2008-10-21  9:28   ` Singh, Vimal
2008-10-17 15:41 Spinelli, Claudio (Claudio)
2008-10-20  8:17 ` Ricard Wanderlof

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox