Skip to contentSkip to conversation

UBIFS: Implement read-only UBIFS support in U-Boot (Part 8)

PATCH New Stefan Roese 1 participant 1 message Feb 26, 2009 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 9/9 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).

CC Artem Bityutskiy <[email protected]>
CC Adrian Hunter <[email protected]>
---
 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
index f13cd11..be94634 100644
@@ -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
index 8bbd563..22aad12 100644
@@ -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