[U-Boot] [PATCH 0/5] introduce nand write.ubi, and drop ffs for jffs2 too
Ben Gardiner
bengardiner at nanometrics.ca
Thu Apr 28 23:47:50 CEST 2011
It was found that on da850evm, where the NAND ECC used does not map all 0xff
data to 0xff ECC, that flashing UBI and JFFS2 image from U-boot with nand
write[.e] command resulted in alot of ECC errors... for UBI the result was
an unmountable filesystem on second attach from linux. For JFFS2 the result was
a multitude of ECC errors printed on the cosole on the second mount in Linux --
the filesystem remains mountable for awhile but eventually collapses.
By implementing the procedure reccomended in the UBI FAQ of dropping trailing
pages containing entirely 0xff both UBI images and JFFS2 filesystems flashed
with from u-boot were found to survive past the second time around.
Ben Gardiner (5):
nand_base: trivial: fix comment read/write comment
nand_util: convert nand_write_skip_bad() to flags
nand_util: drop trailing all-0xff pages if requested
cmd_nand: add nand write.ubi command
cmd_nand: also drop 0xff pages for jffs2
common/cmd_nand.c | 15 ++++++++++++---
drivers/mtd/nand/nand_base.c | 2 +-
drivers/mtd/nand/nand_util.c | 37 ++++++++++++++++++++++++++++++-------
include/nand.h | 6 +++++-
4 files changed, 48 insertions(+), 12 deletions(-)
More information about the U-Boot
mailing list