Documentation/mmc/mmc-dev-parts.txt

本文详细介绍了SD和MMC存储设备的分区概念及其在Linux系统中的实现方式,特别是关于MMC引导分区的读写访问控制机制及如何进行设置。
Chinese translated version of Documentation/mmc/mmc-dev-parts.txt


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: 尹娇萍  1072986620@qq.com
---------------------------------------------------------------------
Documentation/mmc/mmc-dev-parts.txt 的中文翻译


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


中文版维护者: 尹娇萍  1072986620@qq.com
中文版翻译者: 尹娇萍  1072986620@qq.com
中文版校译者: 尹娇萍  1072986620@qq.com


以下为正文


---------------------------------------------------------------------


  SD and MMC Device Partitions
  ============================
  
  SD和MMC存储设备分区
  ============================
  
  Device partitions are additional logical block devices present on the
  SD/MMC device.
  
  设备分区是SD/MMC存储设备额外的逻辑块。
  
  As of this writing, MMC boot partitions as supported and exposed as
  /dev/mmcblkXboot0 and /dev/mmcblkXboot1, where X is the index of the
  parent /dev/mmcblkX.
  
  截至写这篇文章,MMC boot分区支持和暴露/dev/mmcblkXboot0/和dev/mmcblkXboot1,
  其中X是父/dev/mmcblkX的索引。
  
  MMC Boot Partitions
  ===================
  
  MMC引导分区
  ===================
  
  Read and write access is provided to the two MMC boot partitions. Due to
  the sensitive nature of the boot partition contents, which often store
  a bootloader or bootloader configuration tables crucial to booting the
  platform, write access is disabled by default to reduce the chance of
  accidental bricking.
  提供给两个MMC boot分区读取和写入权限。由于引导分区的敏感性质内容,这往往存
  储的一个引导程序或引导程序的配置表启动的关键,在默认情况下写访问平台是禁用
  的减少意外堵塞的机会。
  
  To enable write access to /dev/mmcblkXbootY, disable the forced read-only
  access with:
  
  echo 0 > /sys/block/mmcblkXbootY/force_ro
  
  禁用强制只读访问来获取写入访问/ dev/ mmcblkXbootY的权限:


  echo 0 > /sys/block/mmcblkXbootY/force_ro
  
  To re-enable read-only access:
  
  echo 1 > /sys/block/mmcblkXbootY/force_ro
  
  重新启用只读访问权限:
  
  echo 1 > /sys/block/mmcblkXbootY/force_ro
  
  The boot partitions can also be locked read only until the next power on,
  with:
  
  echo 1 > /sys/block/mmcblkXbootY/ro_lock_until_next_power_on
  
  引导分区也可以被锁定只读直到下一个电源启动,使用:
  
  echo 1 > /sys/block/mmcblkXbootY/ro_lock_until_next_power_on
  
  This is a feature of the card and not of the kernel. If the card does
  not support boot partition locking, the file will not exist. If the
  feature has been disabled on the card, the file will be read-only.
  
  这是一个功能的卡,而不是内核。如果卡不支持引导分区锁定,该文件将不存在。
  如果卡上的功能已被禁用,该文件将是只读。
  
  The boot partitions can also be locked permanently, but this feature is
  not accessible through sysfs in order to avoid accidental or malicious
  bricking.
  
  引导分区也可以被永久锁定,但此功能通过sysfs无法访问,以避免意外或恶意
  阻塞。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值