[PATCH] mtd: Do not write empty pages, UBI fix

Sascha Hauer s.hauer at pengutronix.de
Wed Feb 20 05:47:48 EST 2013


This is a patch for everybody flashing UBI images to nand devices.
Since some time we no longer skip empty pages during writes which
leads to CRC errors once an UBIFS is mounted r/w on a nand device.

Sascha

----------------------------------------------------------------
Sascha Hauer (2):
      mtd: nand: do not write empty pages
      libubi: Use global mtd_all_ff function

 drivers/mtd/core.c            |   32 ++++++++++++++++++++++++++++++++
 drivers/mtd/nand/nand_write.c |   10 ++++++----
 include/linux/mtd/mtd.h       |    2 ++
 lib/libscan.c                 |   13 +------------
 4 files changed, 41 insertions(+), 16 deletions(-)



More information about the barebox mailing list