From a90f0c2290c20a353f51802b66acf6666ae82e84 Mon Sep 17 00:00:00 2001 From: Christopher Cordahi Date: Tue, 18 Dec 2012 16:11:51 -0500 Subject: [PATCH] --- yaml --- r: 360342 b: refs/heads/master c: ea8b8e27fecd44c4fb7b3c6f8f72ea7b92f87fe8 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/mtd/cmdlinepart.c | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 66f46efbe67d..002bf2e23b71 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ebf4f0707df410a7666ec409ee68dc068db56e97 +refs/heads/master: ea8b8e27fecd44c4fb7b3c6f8f72ea7b92f87fe8 diff --git a/trunk/drivers/mtd/cmdlinepart.c b/trunk/drivers/mtd/cmdlinepart.c index 525c5795d4f5..8d4a16661649 100644 --- a/trunk/drivers/mtd/cmdlinepart.c +++ b/trunk/drivers/mtd/cmdlinepart.c @@ -23,11 +23,22 @@ * mtdparts=[; := :[,] * where is the name from the "cat /proc/mtd" command - * := [@offset][][ro][lk] + * := [@][][ro][lk] * := unique name used in mapping driver/device (mtd->name) * := standard linux memsize OR "-" to denote all remaining space + * size is automatically truncated at end of device + * if specified or trucated size is 0 the part is skipped + * := standard linux memsize + * if omitted the part will immediately follow the previous part + * or 0 if the first part * := '(' NAME ')' * + * and can be specified such that the parts are out of order + * in physical memory and may even overlap. + * + * The parts are assigned MTD numbers in the order they are specified in the + * command line regardless of their order in physical memory. + * * Examples: * * 1 NOR Flash, with 1 single writable partition: