Embedded device command line partition parsing
The “blkdevparts” command line option adds support for reading the
block device partition table from the kernel command line.
It is typically used for fixed block (eMMC) embedded devices.
It has no MBR, so saves storage space. Bootloader can be easily accessed
by absolute address of data on the block device.
Users can easily change the partition.
The format for the command line is just like mtdparts:
blkdevparts=
(part-name)
partition name. Kernel sends uevent with “PARTNAME”. Application can
create a link to block device partition with the name “PARTNAME”.
User space application can access partition by partition name.
Example:
eMMC disk names are “mmcblk0” and “mmcblk0boot0”.
bootargs:
‘blkdevparts=mmcblk0:1G(data0),1G(data1),-;mmcblk0boot0:1m(boot),-(kernel)’
dmesg:
mmcblk0: p1(data0) p2(data1) p3()
mmcblk0boot0: p1(boot) p2(kernel)