Skip to content

introduce nand write.trimffs

Ben Gardiner u-boot 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v34 patches 0 repliesSuperseded
  3. v24 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches0 repliesSuperseded

Changes in v4 from the cover letter

* rebased to nand-flash/next where patches 1/4 and 2/4 [v3] were already applied
* added patch 1/3 [v4] to treat WITH_YAFFS_OOB as a mode
* renumbered 3/4 and 4/4 [v3] to 1/3 and 3/3 [v4], respectively
* remove uneccessary cast
* wrapped README at 80 columns
* prevent access past input buffer end

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3nand_util: treat WITH_YAFFS_OOB as a modedrivers/mtd/nand/nand_util.c include/nand.h+6 -10 replies
2/3nand_util: drop trailing all-0xff pages if requesteddrivers/mtd/nand/nand_util.c include/nand.h+38 -30 replies
3/3cmd_nand: add nand write.trimffs commandcommon/cmd_nand.c doc/README.nand+26 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchDetlev ZundelScott Wood
1/3
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 0/3] introduce nand write.trimffs

This series adds a nand write variant which implements the procedure reccomended in the UBI FAQ [1] of dropping trailing pages of eraseblocks containing entirely 0xff's.

[1] http://www.linux-mtd.infradead.org/doc/ubi.html#L_flasher_algo

Changes since v3:
* rebased to nand-flash/next where patches 1/4 and 2/4 [v3] were already applied
* added patch 1/3 [v4] to treat WITH_YAFFS_OOB as a mode
* renumbered 3/4 and 4/4 [v3] to 1/3 and 3/3 [v4], respectively
* remove uneccessary cast
* wrapped README at 80 columns
* prevent access past input buffer end

Changes since v2:
* dropped WITH_DEFAULTS in favour of '0'
* moved copyright header to nand_util patch
* added write.trimffs variant to README.nand

Changes since v1:
* renamed to 'trimffs' from 'ubi'
* wrapped the new feature in #ifdefs
* don't make it default for jffs -- patch dropped
* attribution of the drop_ffs() function from mtd-utils to Artem

Ben Gardiner (3):
[v4] nand_util: treat WITH_YAFFS_OOB as a mode [v4] nand_util: drop trailing all-0xff pages if requested [v4] cmd_nand: add nand write.trimffs command

 common/cmd_nand.c            |   16 +++++++++++++++
 doc/README.nand              |   10 +++++++++
 drivers/mtd/nand/nand_util.c |   43 +++++++++++++++++++++++++++++++++++++++--
 include/nand.h               |    5 +++-
 4 files changed, 70 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.4.1