* Flash corruption
@ 2011-10-05 9:43 Gil Weber
2011-10-05 18:13 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Gil Weber @ 2011-10-05 9:43 UTC (permalink / raw)
To: linux-mtd
Hi all,
We are using jffs2 in an embedded system with a kernel 2.6.27 and
sometimes,
we see a file system corruption that we can't explain (no power fail, ...).
This corruption follows some basic write operations to update our software.
Once the update failed, if we connect to the device, we are unable to
write anything and we see this kind of error in the logs:
Write of 145 bytes at 0x0096e490 failed. returned -5, retlen 144
Write of 145 bytes at 0x0096e524 failed. returned -5, retlen 144
Node totlen on flash (0x00000000) != totlen from node ref (0x000003e4)
We first suspect an hardware issues, because it only occurs on new devices.
But the strange thing is that we are unable to reproduce it. If we get a
device that already had a corruption and reinitialize its flash, all works
perfect! Even if we do hundreds of update, continuously, during a few week!
I also run different stresstest for jffs2 and the flash, and all seems ok.
This is why I now suspect a timing problem... and it seems that it occurs
only on new devices with a "fresh" flash. Is it possible?
Or maybe it can depends of an external factor, like the temperature?
Our flash is a Spansion GL128N90 16Mb and we are using CFI command set
0002.
I see that it may have a weakness in the cfi_cmdset0002.c as the write and
erase timeouts are hardcoded. Can these timeouts be to small?
What do you think?
Best regards,
Gil Weber
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Flash corruption
2011-10-05 9:43 Flash corruption Gil Weber
@ 2011-10-05 18:13 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2011-10-05 18:13 UTC (permalink / raw)
To: Gil Weber; +Cc: linux-mtd
Dear Gil Weber,
In message <4E8C26DB.8040105@cse-semaphore.com> you wrote:
>
> We are using jffs2 in an embedded system with a kernel 2.6.27 and
> sometimes,
> we see a file system corruption that we can't explain (no power fail, ...).
> This corruption follows some basic write operations to update our software.
...
> Our flash is a Spansion GL128N90 16Mb and we are using CFI command set
That's a MirrorBit device. MirrorBit is known to have pretty obscure
error modes.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Never worry about theory as long as the machinery does what it's
supposed to do. - R. A. Heinlein
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-05 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-05 9:43 Flash corruption Gil Weber
2011-10-05 18:13 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox