public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* How to verify the ECC code for NAND Flash do work
@ 2004-03-09  5:47 Shen Aaron-r62966
  2004-03-09  7:41 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Shen Aaron-r62966 @ 2004-03-09  5:47 UTC (permalink / raw)
  To: 'linux-mtd@lists.infradead.org'

Hello all,

  I have modified the ECC part of code in my Linux system, but I don't know how to confirm that it does work.
  One way I'm thinking of is to get a NAND Flash with bad block somewhere inside it. Then there will be three points to be thought about. 
      1. A suitable probram to create a period of bad block inside a normal NAND Flash is needed. 
      2. How to run the program? Just run it on the running Linux platform or should use extern tools like AXD?
      3. What's the result if the ECC part fails?

  Thanks.

//Aaron.

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

* Re: How to verify the ECC code for NAND Flash do work
  2004-03-09  5:47 How to verify the ECC code for NAND Flash do work Shen Aaron-r62966
@ 2004-03-09  7:41 ` Thomas Gleixner
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2004-03-09  7:41 UTC (permalink / raw)
  To: Shen Aaron-r62966, 'linux-mtd@lists.infradead.org'

On Tuesday 09 March 2004 06:47, Shen Aaron-r62966 wrote:
> Hello all,
>
>   I have modified the ECC part of code in my Linux system, but I don't know
> how to confirm that it does work. 

Why did you modify the code ? It is stable and tested.

> One way I'm thinking of is to get a NAND
> Flash with bad block somewhere inside it. 

The bad block is not related to ECC. Bad blocks are skipped. They aren't read, 
writted, erased.

>1. A suitable probram to create a period of bad block
> inside a normal NAND Flash is needed. 

You have to set the bad block marker. This can be done from userspace. Have a 
look at utils/nandwrite.c

> What's the result if the ECC part fails?

The raw data on flash are returned to the caller with an errorcode. If ECC 
fails completely then the data will be lost in the most cases.

-- 
Thomas
________________________________________________________________________
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-03-09  7:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-09  5:47 How to verify the ECC code for NAND Flash do work Shen Aaron-r62966
2004-03-09  7:41 ` Thomas Gleixner

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