UBIFS: Implement read-only UBIFS support in U-Boot (Part 8)
PATCH v2 8/8 UBIFS: Implement read-only UBIFS support in U-Boot (Part 8)
This patchset adds UBIFS read-only support to U-Boot. The following commands are implemented:
- ubifsmount
Mount an UBIFS volume
- ubifsls
List a directory of the mounted UBIFS volume
- ubifsload
Load a file from the mounted UBIFS volume to memory
The U-Boot UBIFS implementation is largely a direct copy from the current Linux version (2.6.29-rc6). As already done in the UBI version we have an "abstraction layer" to redefine or remove some OS calls (e.g. mutex_lock() ...). This makes it possible to use the original Linux code with very little changes. And by this we can better update to later Linux versions.
I removed some of the Linux features that are not used in the U-Boot version (e.g. garbage-collection, write support).
---
Changes in v2:
- Now symbolic links are handled correctly
common/Makefile | 1 + common/cmd_ubifs.c | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++ fs/Makefile | 1 + 3 files changed, 134 insertions(+), 0 deletions(-) create mode 100644 common/cmd_ubifs.c
common/Makefile +1 -0
@@ -129,6 +129,7 @@ COBJS-$(CONFIG_CMD_SPI) += cmd_spi.o COBJS-$(CONFIG_CMD_STRINGS) += cmd_strings.o COBJS-$(CONFIG_CMD_TERMINAL) += cmd_terminal.o COBJS-$(CONFIG_CMD_UBI) += cmd_ubi.o +COBJS-$(CONFIG_CMD_UBIFS) += cmd_ubifs.o COBJS-$(CONFIG_CMD_UNIVERSE) += cmd_universe.o ifdef CONFIG_CMD_USB COBJS-y += cmd_usb.o
common/cmd_ubifs.c new file +132 -0
132 lines not on this page · raw message
fs/Makefile +1 -0
@@ -29,6 +29,7 @@ subdirs-$(CONFIG_CMD_FDOS) += fdos subdirs-$(CONFIG_CMD_JFFS2) += jffs2 subdirs-$(CONFIG_CMD_REISER) += reiserfs subdirs-$(CONFIG_YAFFS2) += yaffs2 +subdirs-$(CONFIG_CMD_UBIFS) += ubifs SUBDIRS := $(subdirs-y)
Signature · 1 line
1.6.1.3