UBIFS: Implement read-only UBIFS support in U-Boot (Part 7)
Subsystems (2)
PATCH v2 7/8 UBIFS: Implement read-only UBIFS support in U-Boot (Part 7)
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
Makefile | 3 +- fs/ubifs/Makefile | 52 ++++ fs/ubifs/ubifs-media.h | 751 ++++++++++++++++++++++++++++++++++++++++++++++++ fs/ubifs/ubifs.c | 684 +++++++++++++++++++++++++++++++++++++++++++ include/linux/math64.h | 85 ++++++ 5 files changed, 1574 insertions(+), 1 deletions(-) create mode 100644 fs/ubifs/Makefile create mode 100644 fs/ubifs/ubifs-media.h create mode 100644 fs/ubifs/ubifs.c create mode 100644 include/linux/math64.h
Makefile +2 -1
@@ -222,7 +222,8 @@ LIBS += cpu/ixp/npe/libnpe.a endif LIBS += lib_$(ARCH)/lib$(ARCH).a LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \ - fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a + fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.a \ + fs/ubifs/libubifs.a LIBS += net/libnet.a LIBS += disk/libdisk.a LIBS += drivers/bios_emulator/libatibiosemu.a
fs/ubifs/Makefile new file +52 -0
52 lines not on this page · raw message
fs/ubifs/ubifs-media.h new file +751 -0
751 lines not on this page · raw message
fs/ubifs/ubifs.c new file +684 -0
684 lines not on this page · raw message
include/linux/math64.h new file +85 -0
85 lines not on this page · raw message
Signature · 1 line
1.6.1.3