public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Gardiner <bengardiner@nanometrics.ca>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/5] introduce nand write.ubi, and drop ffs for jffs2 too
Date: Thu, 28 Apr 2011 17:47:50 -0400	[thread overview]
Message-ID: <cover.1304026883.git.bengardiner@nanometrics.ca> (raw)

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(-)

             reply	other threads:[~2011-04-28 21:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-28 21:47 Ben Gardiner [this message]
2011-04-28 21:47 ` [U-Boot] [PATCH 1/5] nand_base: trivial: fix comment read/write comment Ben Gardiner
2011-04-28 21:47 ` [U-Boot] [PATCH 2/5] nand_util: convert nand_write_skip_bad() to flags Ben Gardiner
2011-04-29 11:44   ` Detlev Zundel
2011-04-28 21:47 ` [U-Boot] [PATCH 3/5] nand_util: drop trailing all-0xff pages if requested Ben Gardiner
2011-04-28 21:47 ` [U-Boot] [PATCH 4/5] cmd_nand: add nand write.ubi command Ben Gardiner
2011-04-29 11:52   ` Detlev Zundel
2011-04-28 21:47 ` [U-Boot] [PATCH 5/5] cmd_nand: also drop 0xff pages for jffs2 Ben Gardiner
2011-04-29 11:58 ` [U-Boot] [PATCH 0/5] introduce nand write.ubi, and drop ffs for jffs2 too Detlev Zundel
2011-04-29 13:59   ` Artem Bityutskiy
2011-05-02 13:14     ` Detlev Zundel
2011-05-11 21:04       ` Ben Gardiner

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=cover.1304026883.git.bengardiner@nanometrics.ca \
    --to=bengardiner@nanometrics.ca \
    --cc=u-boot@lists.denx.de \
    /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