summaryrefslogtreecommitdiff
path: root/target/linux/omap
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-02-12 10:48:33 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-02-12 10:48:33 +0000
commitd657ef7a70da0d16df751543d21c2d5ece513c55 (patch)
treeb0a1098563e39af48b33111d28198eabf389ecd0 /target/linux/omap
parent85a6297f5152a7b251ca355b4cbc3d81372b9868 (diff)
[omap]: generate ubifs images
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39576 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/omap')
-rw-r--r--target/linux/omap/Makefile2
-rw-r--r--target/linux/omap/image/Makefile3
-rw-r--r--target/linux/omap/image/ubinize.cfg14
3 files changed, 18 insertions, 1 deletions
diff --git a/target/linux/omap/Makefile b/target/linux/omap/Makefile
index bc811a154f..b27ca2fcca 100644
--- a/target/linux/omap/Makefile
+++ b/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
diff --git a/target/linux/omap/image/Makefile b/target/linux/omap/image/Makefile
index 42ca517c58..91b9df3b57 100644
--- a/target/linux/omap/image/Makefile
+++ b/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
diff --git a/target/linux/omap/image/ubinize.cfg b/target/linux/omap/image/ubinize.cfg
new file mode 100644
index 0000000000..49d55b9840
--- /dev/null
+++ b/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
+