[PATCH] update UBI support

Sascha Hauer s.hauer at pengutronix.de
Tue Jul 23 06:27:58 EDT 2013


This adds the UBI layer from Linux-3.10. Since the changes in the
UBI layer are huge I chose to remove the old UBI support first and
do a fresh start. This brings us fastmap support which for the
first time makes UBI a performant alternative to using the NAND
flash naked.

Sascha

----------------------------------------------------------------
Sascha Hauer (4):
      UBI: Add ubidetach command
      ubiattach command: Properly check return values
      UBI: remove old ubi support
      UBI: reimport UBI from Linux v3.10

 commands/Kconfig                |    6 +-
 commands/ubi.c                  |   39 +-
 drivers/mtd/Makefile            |    2 +-
 drivers/mtd/ubi/Kconfig         |   82 +-
 drivers/mtd/ubi/Makefile        |    6 +-
 drivers/mtd/ubi/attach.c        | 1728 +++++++++++++++++++++++++++++++++++++++
 drivers/mtd/ubi/build.c         |  828 +++++--------------
 drivers/mtd/ubi/cdev.c          |   26 +-
 drivers/mtd/ubi/crc32defs.h     |   32 -
 drivers/mtd/ubi/debug.c         |  223 ++---
 drivers/mtd/ubi/debug.h         |  178 ++--
 drivers/mtd/ubi/eba.c           |  485 ++++++-----
 drivers/mtd/ubi/fastmap.c       | 1514 ++++++++++++++++++++++++++++++++++
 drivers/mtd/ubi/io.c            |  815 ++++++++++--------
 drivers/mtd/ubi/kapi.c          |  177 ++--
 drivers/mtd/ubi/misc.c          |   64 +-
 drivers/mtd/ubi/scan.c          | 1359 ------------------------------
 drivers/mtd/ubi/scan.h          |  162 ----
 drivers/mtd/ubi/ubi-barebox.h   |  135 +--
 drivers/mtd/ubi/ubi.h           |  632 ++++++++++----
 drivers/mtd/ubi/upd.c           |  101 +--
 drivers/mtd/ubi/vmt.c           |  509 +++---------
 drivers/mtd/ubi/vtbl.c          |  365 +++++----
 drivers/mtd/ubi/wl.c            | 1677 +++++++++++++++++++++----------------
 include/linux/barebox-wrapper.h |    6 +
 include/linux/kernel.h          |   12 +
 include/linux/mtd/mtd.h         |    5 +
 include/linux/mtd/ubi.h         |  105 ++-
 include/mtd/ubi-media.h         |  157 +++-
 include/mtd/ubi-user.h          |  312 ++++---
 include/stdlib.h                |   10 +-
 lib/random.c                    |    4 +-
 32 files changed, 7010 insertions(+), 4746 deletions(-)
 create mode 100644 drivers/mtd/ubi/attach.c
 delete mode 100644 drivers/mtd/ubi/crc32defs.h
 create mode 100644 drivers/mtd/ubi/fastmap.c
 delete mode 100644 drivers/mtd/ubi/scan.c
 delete mode 100644 drivers/mtd/ubi/scan.h



More information about the barebox mailing list