In order to generate UBI root filesytems the ubinize.cfg needs to be in place. The Makefile provides working default parameters for WNDR4300 used by the UBI utilities.
Signed-off-by: Stefan Agner <[email protected]> --- target/linux/ar71xx/image/Makefile | 3 +++ target/linux/ar71xx/image/ubinize.cfg | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 target/linux/ar71xx/image/ubinize.cfg diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 1b276c5..ea97a29 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -9,6 +9,9 @@ include $(INCLUDE_DIR)/image.mk JFFS2_BLOCKSIZE = 64k 128k 256k +UBIFS_OPTS = -m 2048 -e 124KiB -c 4096 +UBINIZE_OPTS = -m 2048 -p 128KiB + define imgname $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1))) endef diff --git a/target/linux/ar71xx/image/ubinize.cfg b/target/linux/ar71xx/image/ubinize.cfg new file mode 100644 index 0000000..49d55b9 --- /dev/null +++ b/target/linux/ar71xx/image/ubinize.cfg @@ -0,0 +1,14 @@ +[rootfs] +# Volume mode (other option is static) +mode=ubi +# Source image +image=root.ubifs +# Volume ID in UBI image +vol_id=0 +# Allow for dynamic resize +vol_type=dynamic +# Volume name +vol_name=rootfs +# Autoresize volume at first mount +vol_flags=autoresize + -- 1.8.4 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
