Browse Source

Fix UBIFS rootfs support for rb532

This fixes a typo and adds the missing ubinize.cfg.

Fixes: 2d7388bc334dd ("Implement UBIFS rootfs support")
Phil Sutter 7 years ago
parent
commit
e040dd1520
2 changed files with 17 additions and 1 deletions
  1. 1 1
      mk/image.mk
  2. 16 0
      target/mips/mikrotik-rb532/ubinize.cfg

+ 1 - 1
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 \

+ 16 - 0
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