summaryrefslogtreecommitdiffstats
path: root/platforms
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
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')
-rw-r--r--platforms/image_ubi.in53
-rw-r--r--platforms/image_ubifs.in21
2 files changed, 74 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
diff --git a/platforms/image_ubifs.in b/platforms/image_ubifs.in
index f28e906d0..f0334fc5f 100644
--- a/platforms/image_ubifs.in
+++ b/platforms/image_ubifs.in
@@ -44,6 +44,7 @@ menuconfig IMAGE_UBIFS_ROOT
Build an ubifs image of the root filesystem.
if IMAGE_UBIFS_ROOT
+
config IMAGE_UBIFS_ROOT_MAX_LEB_COUNT
string
default "<invalid>"
@@ -52,5 +53,25 @@ config IMAGE_UBIFS_ROOT_MAX_LEB_COUNT
This option is passed to the -c option of mkfs.ubifs. This specifies
the maximum size of your ubi filesystem in units of logical erase
blocks
+
+endif
+
+menuconfig IMAGE_UBIFS_DATA
+ bool
+ prompt "Generate images/data.ubifs "
+ help
+ Build an empty data image of the root filesystem.
+
+if IMAGE_UBIFS_DATA
+
+config IMAGE_UBIFS_DATA_MAX_LEB_COUNT
+ string
+ default "<invalid>"
+ prompt "maximum logical erase block count"
+ help
+ This option is passed to the -c option of mkfs.ubifs. This specifies
+ the maximum size of your ubi filesystem in units of logical erase
+ blocks
+
endif
endif