Nand flash: hang after erase
gleixner at autronix.de
Thu Jan 24 14:13:20 EST 2002
On Thursday, 24. January 2002 14:23, David Woodhouse wrote:
> eclarke at aminocom.com 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().
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 autronix.de, http: www.autronix.de
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3890 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20020124/30055aa2/attachment.bz2
More information about the linux-mtd