Skip to contentSkip to conversation

axfs: add new filesystem type

Buildroot Thomas Petazzoni 2 participants 3 messages Oct 14, 2015 – Oct 15, 2015 VFS

lore
Share & tools
lore
#0 lore raw

commit: http://git.buildroot.net/buildroot/commit/?id=a6f916430f553efa71dd7092073f5dec32861ba3
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The Advanced XIP File System is a Linux kernel filesystem driver that enables files to be executed directly from flash or ROM memory rather than being copied into RAM. It has the ability to store individual *pages* in a file uncompressed/XIP or compressed/Demand Paged.

This commit only adds support for 'XIP all' mode, so all the files that have the execute attribute set will be XIP'ed.

At the moment, the FS is not supported in Linux mainline (v4.3-rc5), so the kernel has to be built with the axfs patches to be able to read it. Patches can be found here: https://github.com/jaredeh/axfs

[Thomas: rewrap Config.in help text.]

---
 fs/Config.in      |    1 +
 fs/axfs/Config.in |   17 +++++++++++++++++
 fs/axfs/axfs.mk   |   13 +++++++++++++
 3 files changed, 31 insertions(+), 0 deletions(-)
fs/Config.in +1 -0
index 5853113..51ccf28 100644
@@ -1,5 +1,6 @@
 menu "Filesystem images"
 
+source "fs/axfs/Config.in"
 source "fs/cloop/Config.in"
 source "fs/cpio/Config.in"
 source "fs/cramfs/Config.in"
fs/axfs/Config.in new file +17 -0
new file mode 100644
index 0000000..eaaf7db
@@ -0,0 +1,17 @@
+config BR2_TARGET_ROOTFS_AXFS
+	bool "axfs root filesystem"
+	help
+	  The Advanced XIP File System is a Linux kernel filesystem
+	  driver that enables files to be executed directly from flash
+	  or ROM memory rather than being copied into RAM. It has the
+	  ability to store individual *pages* in a file
+	  uncompressed/XIP or compressed/Demand Paged.
+
+	  So far, the only supported mode is 'XIP all', so all the
+	  files that have the execute attribute set will be XIP'ed.
+
+	  At the moment, the FS is not supported in Linux mainline
+	  (v4.3-rc5), so the kernel has to be built with the axfs
+	  patches to be able to read it. Patches can be found at:
+
+	    https://github.com/jaredeh/axfs
fs/axfs/axfs.mk new file +13 -0
new file mode 100644
index 0000000..05d6e5d
@@ -0,0 +1,13 @@
+################################################################################
+#
+# Build the axfs root filesystem image
+#
+################################################################################
+
+ROOTFS_AXFS_DEPENDENCIES = host-axfsutils
+
+define ROOTFS_AXFS_CMD
+	$(HOST_DIR)/usr/bin/mkfs.axfs -s -a $(TARGET_DIR) $@
+endef
+
+$(eval $(call ROOTFS_TARGET,axfs))
#1 lore raw
Quoted 31 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

commit: http://git.buildroot.net/buildroot/commit/?id=a6f916430f553efa71dd7092073f5dec32861ba3
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The Advanced XIP File System is a Linux kernel filesystem driver that enables files to be executed directly from flash or ROM memory rather than being copied into RAM. It has the ability to store individual *pages* in a file uncompressed/XIP or compressed/Demand Paged.

This commit only adds support for 'XIP all' mode, so all the files that have the execute attribute set will be XIP'ed.

At the moment, the FS is not supported in Linux mainline (v4.3-rc5), so the kernel has to be built with the axfs patches to be able to read it. Patches can be found here: https://github.com/jaredeh/axfs

[Thomas: rewrap Config.in help text.]

+++ b/fs/axfs/Config.in

fs/axfs/Config.in new file +7 -0
@@ -0,0 +1,17 @@
+config BR2_TARGET_ROOTFS_AXFS
+	bool "axfs root filesystem"
+	help
+	  The Advanced XIP File System is a Linux kernel filesystem
+	  driver that enables files to be executed directly from flash
+	  or ROM memory rather than being copied into RAM. It has the
+	  ability to store individual *pages* in a file

fs/axfs/Config.in line 17

Quoted 10 lines
fs/axfs/Config.in new file +10 -0
+	  uncompressed/XIP or compressed/Demand Paged.
+
+	  So far, the only supported mode is 'XIP all', so all the
+	  files that have the execute attribute set will be XIP'ed.
+
+	  At the moment, the FS is not supported in Linux mainline
+	  (v4.3-rc5), so the kernel has to be built with the axfs
+	  patches to be able to read it. Patches can be found at:
+
+	    https://github.com/jaredeh/axfs

The indentation of that URL looks wrong. I'll fix it now.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

Dear Peter Korsgaard,

Quoted 13 lines · Peter Korsgaard
Quoted 13 lines

+++ b/fs/axfs/Config.in

fs/axfs/Config.in new file +11 -0
@@ -0,0 +1,17 @@
+config BR2_TARGET_ROOTFS_AXFS
+	bool "axfs root filesystem"
+	help
+	  The Advanced XIP File System is a Linux kernel filesystem
+	  driver that enables files to be executed directly from flash
+	  or ROM memory rather than being copied into RAM. It has the
+	  ability to store individual *pages* in a file
+	  uncompressed/XIP or compressed/Demand Paged.
+
+	  So far, the only supported mode is 'XIP all', so all the
+	  files that have the execute attribute set will be XIP'ed.
Quoted 8 lines

fs/axfs/Config.in line 17

Quoted 6 lines
fs/axfs/Config.in new file +6 -0
+
+	  At the moment, the FS is not supported in Linux mainline
+	  (v4.3-rc5), so the kernel has to be built with the axfs
+	  patches to be able to read it. Patches can be found at:
+
+	    https://github.com/jaredeh/axfs

The indentation of that URL looks wrong. I'll fix it now.

Well, yes and no. It isn't the usual "upstream web site" thing. It is really the continuation of "Patches can be found at:".

But I don't really care what the indentation is in this case.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com