From: Norbert van Bolhuis <nvbolhuis@aimvalley.nl>
To: Bosi Daniele <Daniele.Bosi@mta.it>
Cc: "'linux-mtd@lists.infradead.org'" <linux-mtd@lists.infradead.org>
Subject: Re: UBI corruption on a NOR flash
Date: Thu, 10 Jan 2013 11:28:37 +0100 [thread overview]
Message-ID: <50EE97D5.5060906@aimvalley.nl> (raw)
In-Reply-To: <BE7AFD5DB9EB17418CAAAEEA76697290190E878AA7@mta-mail.MTA.INT>
On 01/09/13 14:43, Bosi Daniele wrote:
> Hello List,
> we are working on an embedded device running on Linux 2.6.24.6.
> We had some devices returned from the field with corrupted UBI partitions on a NOR flash.
> The corruption was probably caused by a power cut, but we aren't sure about the root cause of the failure.
>
> We found a similar issue in an old thread from the mailing list where Artem said that UBI on NOR could have some bugs that can lead to such a failure (http://lists.infradead.org/pipermail/linux-mtd/2009-May/025737.html), but no final statements was given on that thread.
>
> Any help would be appreciated, thank you.
>
I believe the final statement of the referred thread was that one
of the problems was UBI/UBIFS assumes a (CFI) write buffer size of
8 bytes. This is often not the case with NOR flash. It did not lead
to kernel patches though.
Lateron this problem was found (again) by Anatolij Gustschin
(see the thread "UBIFS partition on NOR flash not mountable after power cut test"
from december 2010) and he fixed it properly. His patches ended up in the mainline.
Btw. it could be your problem is another or a related ubi/ubifs NOR flash power
cut problem. Some other problem have been found and solved as well (mostly by Artem
and Anatolij).
If you update to the ubi/ubifs backported linux-2.6.32 (this is the oldest one
still available) which can be found here:
http://git.infradead.org/users/dedekind/ubifs-v2.6.32.git
you'll probably be fine.
hth,
Norbert van Bolhuis
next prev parent reply other threads:[~2013-01-10 10:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-09 13:43 UBI corruption on a NOR flash Bosi Daniele
2013-01-10 10:28 ` Norbert van Bolhuis [this message]
2013-01-11 9:00 ` R: " Bosi Daniele
2013-01-11 11:23 ` Norbert van Bolhuis
2013-01-17 13:09 ` Artem Bityutskiy
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=50EE97D5.5060906@aimvalley.nl \
--to=nvbolhuis@aimvalley.nl \
--cc=Daniele.Bosi@mta.it \
--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