linux/drivers/mtd/ubi
Artem Bityutskiy ebf53f4213 UBI: fix NOR flash recovery
This commit fixes NOR flash recovery issues observed with Spansion
S29GL512N NOR.

When NOR erases, it first fills PEBs with zeroes, then sets all bytes
to 0xFF. Filling with zeroes starts from the end of the PEB. And when
power is cut, this results in PEBs containing correct EC and VID headers
but corrupted with zeros at the end. This confuses UBI and it mistakinly
accepts these PEBs and associate them with LEBs.

Fis this issue by zeroing EC and VID magics before erasing PEBs, to
make UBI later refuse zem.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2009-07-07 11:37:45 +03:00
..
build.c UBI: fix NOR flash recovery 2009-07-07 11:37:45 +03:00
cdev.c UBI: remove built-in gluebi 2009-06-02 13:53:35 +03:00
debug.c UBI: add image sequence number to EC header 2009-07-05 18:47:07 +03:00
debug.h UBI: remove bogus debugging checks 2009-07-05 18:47:05 +03:00
eba.c UBI: handle more error codes 2009-06-10 16:13:28 +03:00
gluebi.c UBI: make gluebi a separate module 2009-06-03 17:45:23 +03:00
io.c UBI: fix NOR flash recovery 2009-07-07 11:37:45 +03:00
kapi.c UBI: add notification API 2009-06-02 13:53:35 +03:00
Kconfig UBI: make gluebi a separate module 2009-06-03 17:45:23 +03:00
Kconfig.debug UBI: allow direct user-space I/O 2009-01-27 16:54:41 +02:00
Makefile UBI: make gluebi a separate module 2009-06-03 17:45:23 +03:00
misc.c UBI: avoid unnecessary division operations 2008-07-24 13:32:54 +03:00
scan.c UBI: nicify image sequence number handling 2009-07-05 18:47:08 +03:00
scan.h UBI: nicify image sequence number handling 2009-07-05 18:47:08 +03:00
ubi-media.h UBI: add image sequence number to EC header 2009-07-05 18:47:07 +03:00
ubi.h UBI: fix NOR flash recovery 2009-07-07 11:37:45 +03:00
upd.c UBI: minor serialization fix 2009-05-18 12:28:26 +03:00
vmt.c UBI: remove built-in gluebi 2009-06-02 13:53:35 +03:00
vtbl.c trivial: fix then -> than typos in comments and documentation 2009-01-06 11:28:06 +01:00
wl.c UBI: remove bogus debugging checks 2009-07-05 18:47:05 +03:00