cmdline-partition.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Embedded device command line partition parsing
  2. =====================================================================
  3. Support for reading the block device partition table from the command line.
  4. It is typically used for fixed block (eMMC) embedded devices.
  5. It has no MBR, so saves storage space. Bootloader can be easily accessed
  6. by absolute address of data on the block device.
  7. Users can easily change the partition.
  8. The format for the command line is just like mtdparts:
  9. blkdevparts=<blkdev-def>[;<blkdev-def>]
  10. <blkdev-def> := <blkdev-id>:<partdef>[,<partdef>]
  11. <partdef> := <size>[@<offset>](part-name)
  12. <blkdev-id>
  13. block device disk name, embedded device used fixed block device,
  14. it's disk name also fixed. such as: mmcblk0, mmcblk1, mmcblk0boot0.
  15. <size>
  16. partition size, in bytes, such as: 512, 1m, 1G.
  17. <offset>
  18. partition start address, in bytes.
  19. (part-name)
  20. partition name, kernel send uevent with "PARTNAME". application can create
  21. a link to block device partition with the name "PARTNAME".
  22. user space application can access partition by partition name.
  23. Example:
  24. eMMC disk name is "mmcblk0" and "mmcblk0boot0"
  25. bootargs:
  26. 'blkdevparts=mmcblk0:1G(data0),1G(data1),-;mmcblk0boot0:1m(boot),-(kernel)'
  27. dmesg:
  28. mmcblk0: p1(data0) p2(data1) p3()
  29. mmcblk0boot0: p1(boot) p2(kernel)