block: support embedded device command line partition
authorCai Zhiyong <caizhiyong@huawei.com>
Wed, 11 Sep 2013 21:20:09 +0000 (14:20 -0700)
committerlintao <lintao@rock-chips.com>
Thu, 16 Oct 2014 04:41:23 +0000 (12:41 +0800)
commitd4900b6d2b262b449ecbf70cc340af2c173faa16
tree35d1f26bd4217e45057530c8c99eadcf27dcb50e
parentffb44e63b3972fb02a80818da34d443b14fcbdca
block: support embedded device command line partition

Read block device partition table from command line.  The partition used
for fixed block device (eMMC) embedded device.  It is no MBR, save
storage space.  Bootloader can be easily accessed by absolute address of
data on the block device.  Users can easily change the partition.

This code reference MTD partition, source "drivers/mtd/cmdlinepart.c"
About the partition verbose reference
"Documentation/block/cmdline-partition.txt"

[akpm@linux-foundation.org: fix printk text]
[yongjun_wei@trendmicro.com.cn: fix error return code in parse_parts()]
Signed-off-by: Cai Zhiyong <caizhiyong@huawei.com>
Cc: Karel Zak <kzak@redhat.com>
Cc: "Wanglin (Albert)" <albert.wanglin@huawei.com>
Cc: Marius Groeger <mag@sysgo.de>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Artem Bityutskiy <dedekind@infradead.org>
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Conflicts:
block/partitions/Kconfig
block/partitions/Makefile
block/partitions/check.c
Documentation/block/cmdline-partition.txt [new file with mode: 0644]
block/Kconfig
block/Makefile
block/cmdline-parser.c [new file with mode: 0644]
block/partitions/Kconfig
block/partitions/Makefile
block/partitions/check.c
block/partitions/cmdline.c [new file with mode: 0644]
block/partitions/cmdline.h [new file with mode: 0644]
include/linux/cmdline-parser.h [new file with mode: 0644]