[PATCH] UBIFS support

Sascha Hauer s.hauer at pengutronix.de
Tue Aug 6 09:07:00 EDT 2013


The following adds UBIFS support to barebox. The code has been taken from
U-Boot rather than the Kernel since it was easier to adopt.

Sascha

----------------------------------------------------------------
Sascha Hauer (7):
      mtd: ubi: add ubi info functions
      filetype: Add ubifs detection
      mtd: ubi: Add support for opening a volume by cdev
      move print_hex_dump function to include/common.h
      extend barebox wrapper header
      Add deflate_decompress function
      fs: Add ubifs support

 common/filetype.c               |    2 +
 drivers/mtd/ubi/cdev.c          |    6 +
 drivers/mtd/ubi/kapi.c          |   93 ++
 drivers/mtd/ubi/ubi-barebox.h   |    8 -
 drivers/mtd/ubi/ubi.h           |    2 +
 fs/Kconfig                      |    1 +
 fs/Makefile                     |    1 +
 fs/ubifs/Kconfig                |   17 +
 fs/ubifs/Makefile               |    4 +
 fs/ubifs/budget.c               |  113 ++
 fs/ubifs/crc16.c                |   60 +
 fs/ubifs/crc16.h                |   29 +
 fs/ubifs/debug.c                |  156 +++
 fs/ubifs/debug.h                |  392 ++++++
 fs/ubifs/io.c                   |  316 +++++
 fs/ubifs/key.h                  |  557 ++++++++
 fs/ubifs/log.c                  |  104 ++
 fs/ubifs/lprops.c               |  842 ++++++++++++
 fs/ubifs/lpt.c                  | 1105 ++++++++++++++++
 fs/ubifs/lpt_commit.c           |  171 +++
 fs/ubifs/master.c               |  341 +++++
 fs/ubifs/misc.h                 |  311 +++++
 fs/ubifs/orphan.c               |  318 +++++
 fs/ubifs/recovery.c             | 1225 +++++++++++++++++
 fs/ubifs/replay.c               | 1070 +++++++++++++++
 fs/ubifs/sb.c                   |  346 +++++
 fs/ubifs/scan.c                 |  362 +++++
 fs/ubifs/super.c                |  907 +++++++++++++
 fs/ubifs/tnc.c                  | 2767 +++++++++++++++++++++++++++++++++++++++
 fs/ubifs/tnc_misc.c             |  435 ++++++
 fs/ubifs/ubifs-media.h          |  775 +++++++++++
 fs/ubifs/ubifs.c                |  654 +++++++++
 fs/ubifs/ubifs.h                | 2151 ++++++++++++++++++++++++++++++
 include/common.h                |    8 +
 include/filetype.h              |    1 +
 include/linux/barebox-wrapper.h |   32 +
 include/linux/mtd/ubi.h         |    1 +
 include/linux/zlib.h            |    4 +
 lib/decompress_inflate.c        |   39 +
 39 files changed, 15718 insertions(+), 8 deletions(-)
 create mode 100644 fs/ubifs/Kconfig
 create mode 100644 fs/ubifs/Makefile
 create mode 100644 fs/ubifs/budget.c
 create mode 100644 fs/ubifs/crc16.c
 create mode 100644 fs/ubifs/crc16.h
 create mode 100644 fs/ubifs/debug.c
 create mode 100644 fs/ubifs/debug.h
 create mode 100644 fs/ubifs/io.c
 create mode 100644 fs/ubifs/key.h
 create mode 100644 fs/ubifs/log.c
 create mode 100644 fs/ubifs/lprops.c
 create mode 100644 fs/ubifs/lpt.c
 create mode 100644 fs/ubifs/lpt_commit.c
 create mode 100644 fs/ubifs/master.c
 create mode 100644 fs/ubifs/misc.h
 create mode 100644 fs/ubifs/orphan.c
 create mode 100644 fs/ubifs/recovery.c
 create mode 100644 fs/ubifs/replay.c
 create mode 100644 fs/ubifs/sb.c
 create mode 100644 fs/ubifs/scan.c
 create mode 100644 fs/ubifs/super.c
 create mode 100644 fs/ubifs/tnc.c
 create mode 100644 fs/ubifs/tnc_misc.c
 create mode 100644 fs/ubifs/ubifs-media.h
 create mode 100644 fs/ubifs/ubifs.c
 create mode 100644 fs/ubifs/ubifs.h



More information about the barebox mailing list