Nand flash: hang after erase

Thomas Gleixner gleixner at
Thu Jan 24 14:13:20 EST 2002

On Thursday, 24. January 2002 14:23, David Woodhouse wrote:
> eclarke at said:
> > I'm playing with nandtest on an mtd partition, and found it hangs
> > after it has erased the first block. Putting in some debug I find that
> > it gets as far as the schedule call in mtdchar.c mtd_ioctl line 324
> What is erase->state? If the erase attempt has completed, either
> successfully or otherwise, it should be one of the two values which
> prevents the call to schedule().

Hi !
I had the same problem some time ago. I sent my patches along with some 
rewrite for better support of different hardware to Steven Hill, who 
obviously maintains this nand stuff. I never got an answer.

The included diff is against kernel 2.4.17. 

The change in nand.c made NAND running. I have implemented JFFS and it works 
good (only mount time is a little bit ugly). I will try JFFS2 in the next 

Thomas Gleixner, autronix automation GmbH
auf dem berg 3, d-88690 uhldingen-muehlhofen
fon: +49 7556 919891 , fax: +49 7556 919886
mail: gleixner at, http:  

Diff following:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mtd.diff.bz2
Type: application/x-bzip2
Size: 3890 bytes
Desc: not available
Url : 

More information about the linux-mtd mailing list