瀏覽代碼

generate ubifs images

Signed-off-by: Imre Kaloz <[email protected]>

SVN-Revision: 39576
Imre Kaloz 12 年之前
父節點
當前提交
936166c042
共有 3 個文件被更改,包括 18 次插入1 次删除
  1. 1 1
      target/linux/omap/Makefile
  2. 3 0
      target/linux/omap/image/Makefile
  3. 14 0
      target/linux/omap/image/ubinize.cfg

+ 1 - 1
target/linux/omap/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=arm
 BOARD:=omap
 BOARDNAME:=TI OMAP3/4/AM33xx
-FEATURES:=usb usbgadget ext4 targz fpu audio display
+FEATURES:=usb usbgadget ext4 targz fpu audio display ubifs
 CPU_TYPE:=cortex-a9
 CPU_SUBTYPE:=vfpv3
 

+ 3 - 0
target/linux/omap/image/Makefile

@@ -7,6 +7,9 @@
 include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 
+UBIFS_OPTS = -F -m 2048 -e 124KiB -c 4096 -U
+UBI_OPTS = -m 2048 -p 128KiB -s 512 -O 2048
+
 define Image/BuildKernel
 	cp $(KDIR)/zImage $(BIN_DIR)/openwrt-$(BOARD)-zImage
 	-mkdir $(BIN_DIR)/dtbs

+ 14 - 0
target/linux/omap/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
+