summaryrefslogtreecommitdiffstats
path: root/platforms/image_ubi.in
diff options
context:
space:
mode:
authorLuotao Fu <l.fu@pengutronix.de>2010-05-31 14:54:18 +0200
committerLuotao Fu <l.fu@pengutronix.de>2010-05-31 15:00:59 +0200
commitd3948becab7372fa5d356618de2cf1e6f3539548 (patch)
treeb07ecdebbe6575e9a49a7ef742b38fc54ad98fd7 /platforms/image_ubi.in
parent0f6d3545be554301717ac51d82fb07cfbfbd63fd (diff)
downloadptxdist-d3948becab7372fa5d356618de2cf1e6f3539548.tar.gz
ptxdist-d3948becab7372fa5d356618de2cf1e6f3539548.tar.xz
[ptxdist] add data partition to UBI Image
This one adds the option to create a data partition. Currently it is created as an empty partition. It's considerable that we can change this so we can generate it with some predefined content. The partition can either be create as a futher volume in the main root.ubi file or as a standalone flashable UBI image. Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Diffstat (limited to 'platforms/image_ubi.in')
-rw-r--r--platforms/image_ubi.in53
1 files changed, 53 insertions, 0 deletions
diff --git a/platforms/image_ubi.in b/platforms/image_ubi.in
index 601051e0a..27ba6ff63 100644
--- a/platforms/image_ubi.in
+++ b/platforms/image_ubi.in
@@ -87,4 +87,57 @@ config IMAGE_UBI_ROOT_VOL_NAME
Give the root volume name here. Default is "root".
endif
+
+menuconfig UBI_CREATE_DATA
+ bool
+ prompt "Create a data partition"
+ select IMAGE_UBIFS_DATA
+ help
+ Generate a data partition. The ubifs image containg the data
+ partition can either integrated into the root ubi Image as
+ a further volume or created as a standalone flashable UBI image.
+
+if UBI_CREATE_DATA
+
+choice
+ prompt "Type of data partition"
+ default IMAGE_UBI_DATA
+ help
+ specify the type of the data partition.
+
+config IMAGE_UBI_DATA_VOL
+ bool
+ prompt "Volume in root.ubi"
+ help
+ Combine the datavolume and the rootfs volume in one single ubi
+ image.
+
+config IMAGE_UBI_DATA
+ bool
+ prompt "Standalone as data.ubi"
+ help
+ Build a single volume standalone ubi image for the data ubifs
+ image. This image can be directly written to e.g. an mtd
+ partition on a raw flash devices.
+endchoice
+
+config IMAGE_UBI_DATA_VOL_SIZE
+ string
+ prompt "Data volume size"
+ default "<invalid>"
+ help
+ Give the data volume size here. You can use size unit like
+ "KiB" or "MiB" here. The volume size must be greater
+ than than the actual ubifs file and smaller than the mtd device
+ less 10% spare place.
+
+config IMAGE_UBI_DATA_VOL_NAME
+ string
+ prompt "Data volume name"
+ default "data"
+ help
+ Give the data volume name here. Default is "data".
+
+endif
+
endif