summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/image.mk2
-rw-r--r--target/mips/mikrotik-rb532/ubinize.cfg16
2 files changed, 17 insertions, 1 deletions
diff --git a/mk/image.mk b/mk/image.mk
index 65332bd4b..fcf3af89e 100644
--- a/mk/image.mk
+++ b/mk/image.mk
@@ -196,7 +196,7 @@ ${FW_DIR}/${ROOTFSUBIFS}: ${TARGET_DIR}
( \
PATH='${HOST_PATH}'; \
SP_SIZE='${ADK_TARGET_FLASH_SUBPAGE_SIZE}'; \
- PG_SZIE='${ADK_TARGET_FLASH_PAGE_SIZE}'; \
+ PG_SIZE='${ADK_TARGET_FLASH_PAGE_SIZE}'; \
LEB_SIZE=$$(((($$SP_SIZE + $$PG_SIZE) / $$PG_SIZE) * $$PG_SIZE)); \
mkfs.ubifs -r ${TARGET_DIR} \
-m $$PG_SIZE \
diff --git a/target/mips/mikrotik-rb532/ubinize.cfg b/target/mips/mikrotik-rb532/ubinize.cfg
new file mode 100644
index 000000000..444e5fb93
--- /dev/null
+++ b/target/mips/mikrotik-rb532/ubinize.cfg
@@ -0,0 +1,16 @@
+[cfgfs_volume]
+mode=ubi
+vol_id=2
+vol_type=dynamic
+vol_name=cfgfs
+vol_alignment=1
+vol_size=256KiB
+
+[rootfs_volume]
+mode=ubi
+image=rootfs.ubifs
+vol_id=1
+vol_type=dynamic
+vol_name=rootfs
+vol_alignment=1
+vol_flags=autoresize