mmc4 以上的partion0 partion1

mmc4以上的partion0 partion1

这两个是固定的分区,无法格式化,mmc芯片可以设定是从这两个分区启动或user分区启动。需要读写可以参考文件Documentation/mmc/mmc-dev-parts.txt


SD and MMC Device Partitions
============================


Device partitions are additional logical block devices present on the
SD/MMC device.


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 Partitions
===================


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.


To enable write access to /dev/mmcblkXbootY, disable the forced read-only
access with:


echo 0 > /sys/block/mmcblkXbootY/force_ro


To re-enable read-only access:


echo 1 > /sys/block/mmcblkXbootY/force_ro


设置启动位置,即设置ext_sd寄存器,这个寄存器设置后断电不消失。

<CMD state="Updater" type="push" body="$ echo 8 > /sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_config">enable boot partion 1 to boot</CMD>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值