I discovered a currently not used option of jffs2. It allows the setting
of a compression mode. Because size matters on embedded devices I wonder
why this is not enabled. Attached a patch that does that. I tried it and
it works.

More info on the available switches also here
http://mhonarc.axis.se/jffs-dev/msg01683.html
and the mkfs.jffs2 man page

regards ede
Index: include/image.mk
===================================================================
--- include/image.mk    (Revision 19505)
+++ include/image.mk    (Arbeitskopie)
@@ -16,10 +16,10 @@
 KDIR=$(KERNEL_BUILD_DIR)
 
 ifneq ($(CONFIG_BIG_ENDIAN),y)
-JFFS2OPTS     :=  --pad --little-endian --squash
+JFFS2OPTS     :=  --pad --little-endian --squash --compression-mode=size
 SQUASHFS_OPTS :=  -le
 else
-JFFS2OPTS     :=  --pad --big-endian --squash
+JFFS2OPTS     :=  --pad --big-endian --squash --compression-mode=size
 SQUASHFS_OPTS :=  -be
 endif
 
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to