Documentation\block \cmdline-partition

Chinese translated version of Documentation\block \cmdline-partition

If you have any comment or update to the content, please contact the
original document maintainer directly.  However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help.  Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.

Chinese maintainer: 金丽丽 819153113@qq.com
---------------------------------------------------------------------
Documentation\block \cmdline-partition的中文翻译


如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。

中文版维护者: 金丽丽 819153113@qq.com
中文版翻译者: 金丽丽 819153113@qq.com
中文版校译者: 潘丽卡   774945605@qq.com


以下为正文
---------------------------------------------------------------------

Embedded device command line partition
嵌入式设备的命令行分区
=====================================================================

Read block device partition table from command line.
读块设备的分区表的命令行。

The partition used for fixed block device (eMMC) embedded device.
固定块设备(EMMC)嵌入式设备所用的分区。

It is no MBR, save storage space.
它没有MBR(硬盘的主引导记录),节省了存储空间。
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:
命令行的格式类似于mtdparts:

blkdevparts=<blkdev-def>[;<blkdev-def>]
  <blkdev-def> := <blkdev-id>:<partdef>[,<partdef>]
    <partdef> := <size>[@<offset>](part-name)

<blkdev-id>:block device disk name, embedded device used fixed block device, it's disk name also fixed. such as: mmcblk0, mmcblk1, mmcblk0boot0.
<blkdev-id>:块设备磁盘名称,嵌入式设备用的是固定块设备,它的磁盘名也是固定的。如: mmcblk0,mmcblk1,mmcblk0boot0 。


<size>:partition size, in bytes, such as: 512, 1m, 1G.
<大小>:分区的大小,以字节为单位,如: 512 , 1M ,1G

<offset>:partition start address, in bytes.
<偏移>:分区的起始地址,以字节为单位。

(part-name):partition name, kernel send 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.
(part-name):分区名称,内核发送带有“分区名称”的UEVENT。应用程序可以创建一个到带有该“分区名称”的块设备的分区的链接。用户空间应用程序可以通过分区名称访问分区。

Example:
例子:

eMMC disk name is "mmcblk0" and "mmcblk0boot0"
eMMC的磁盘名称为“ mmcblk0 ”和“ mmcblk0boot0 ”

bootargs:
   'blkdevparts=mmcblk0:1G(data0),1G(data1),-;mmcblk0boot0:1m(boot),-(kernel)'
dmesg:
    mmcblk0: p1(data0) p2(data1) p3()
    mmcblk0boot0: p1(boot) p2(kernel)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值