fs: jffs2: add initial support for reading jffs2
Import the jffs2 filesystem code from Linux v5.5-rc1 and convert it to work with barebox. Writing is *not* supported. Testing was done with a n25q256a-compatible QuadSPI chip on a SoCFPGA-based Socrates board. Testing was done with a combination of: user@somelinuxhost: mkfs.jffs2 --eraseblock=4 -d fs/jffs2/ -o jffs2.img root@target:~ flash_erase -j /dev/mtd5 0 0 root@target:~ dd if=jffs2.img of=/dev/mtd5 barebox@EBV SOCrates:/ mount /dev/mtd0.data (...) mounted /dev/mtd0.data on /mnt/mtd0.data Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> |
---|
|
fs/Kconfig |
---|
fs/Makefile |
---|
fs/jffs2/Kconfig 0 → 100644 |
---|
fs/jffs2/Makefile 0 → 100644 |
---|
fs/jffs2/acl.h 0 → 100644 |
---|
fs/jffs2/build.c 0 → 100644 |
---|
fs/jffs2/compr.c 0 → 100644 |
---|
fs/jffs2/compr.h 0 → 100644 |
---|
fs/jffs2/compr_lzo.c 0 → 100644 |
---|
fs/jffs2/compr_rtime.c 0 → 100644 |
---|
fs/jffs2/compr_rubin.c 0 → 100644 |
---|
fs/jffs2/compr_zlib.c 0 → 100644 |
---|
fs/jffs2/debug.c 0 → 100644 |
---|
fs/jffs2/debug.h 0 → 100644 |
---|
fs/jffs2/dir.c 0 → 100644 |
---|
fs/jffs2/fs.c 0 → 100644 |
---|
fs/jffs2/jffs2_fs_i.h 0 → 100644 |
---|
fs/jffs2/jffs2_fs_sb.h 0 → 100644 |
---|
fs/jffs2/malloc.c 0 → 100644 |
---|
fs/jffs2/nodelist.c 0 → 100644 |
---|
fs/jffs2/nodelist.h 0 → 100644 |
---|
fs/jffs2/os-linux.h 0 → 100644 |
---|
fs/jffs2/read.c 0 → 100644 |
---|
fs/jffs2/readinode.c 0 → 100644 |
---|
Too large (Show diff)
|
fs/jffs2/scan.c 0 → 100644 |
---|
Too large (Show diff)
|
fs/jffs2/summary.h 0 → 100644 |
---|
fs/jffs2/super.c 0 → 100644 |
---|
fs/jffs2/xattr.h 0 → 100644 |
---|
include/linux/hash.h 0 → 100644 |
---|
include/linux/jffs2.h 0 → 100644 |
---|