JFFS2 errors - are these normal?

Ramesh sramesh23 at gmail.com
Tue Dec 18 10:43:37 EST 2007


Hi,

I am using linux 2.6.19 and ST micro NAND chip (256M) on a PowerPC
platform. After booting the OS, we install firmware on to the flash.
These firmware images are RPM packages. Once some packages are
installed, we start getting some ECC errors. I guess that's fine but
after a few more RPM installs, the errors seem more serious. Here's a
sample:

...
Node CRC 880608a4 != calculated CRC ade8c30b for node at 075ade08
jffs2_flush_wbuf(): Write failed with -5
Recovery of wbuf failed due to a second write error
Write of 162 bytes at 0x07540000 failed. returned -5, retlen 0
Not marking the space at 0x07540000 as dirty because the flash driver
returned retlen zero
jffs2_flush_wbuf(): Write failed with -5
Recovery of wbuf failed due to a second write error
Write of 162 bytes at 0x07540000 failed. returned -5, retlen 0
Not marking the space at 0x07540000 as dirty because the flash driver
returned retlen zero
jffs2_flush_wbuf(): Write failed with -5
Recovery of wbuf failed due to a second write error
Write of 99 bytes at 0x07540000 failed. returned -5, retlen 0
Node CRC 880608a4 != calculated CRC ade8c30b for node at 075ade08
...

The jffs2 image is created with the following flags: -e 0x20000 -s
0x1000 -b -v -p -n
Then I use sumtool with -e 0x20000 -b -p.

At this point, the flash is pretty much unusable unless I reflash and
then the RPM installs start the cycle again. Is there any way I can
avoid this?

Thanks.
--Ramesh



More information about the linux-mtd mailing list