From: Gil Weber <gilw@cse-semaphore.com>
To: linux-mtd@lists.infradead.org
Subject: Flash corruption
Date: Wed, 05 Oct 2011 11:43:55 +0200 [thread overview]
Message-ID: <4E8C26DB.8040105@cse-semaphore.com> (raw)
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
next reply other threads:[~2011-10-05 9:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-05 9:43 Gil Weber [this message]
2011-10-05 18:13 ` Flash corruption Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E8C26DB.8040105@cse-semaphore.com \
--to=gilw@cse-semaphore.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox