mmc-dev-parts.txt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. SD and MMC Device Partitions
  2. ============================
  3. Device partitions are additional logical block devices present on the
  4. SD/MMC device.
  5. As of this writing, MMC boot partitions as supported and exposed as
  6. /dev/mmcblkXboot0 and /dev/mmcblkXboot1, where X is the index of the
  7. parent /dev/mmcblkX.
  8. MMC Boot Partitions
  9. ===================
  10. Read and write access is provided to the two MMC boot partitions. Due to
  11. the sensitive nature of the boot partition contents, which often store
  12. a bootloader or bootloader configuration tables crucial to booting the
  13. platform, write access is disabled by default to reduce the chance of
  14. accidental bricking.
  15. To enable write access to /dev/mmcblkXbootY, disable the forced read-only
  16. access with:
  17. echo 0 > /sys/block/mmcblkXbootY/force_ro
  18. To re-enable read-only access:
  19. echo 1 > /sys/block/mmcblkXbootY/force_ro
  20. The boot partitions can also be locked read only until the next power on,
  21. with:
  22. echo 1 > /sys/block/mmcblkXbootY/ro_lock_until_next_power_on
  23. This is a feature of the card and not of the kernel. If the card does
  24. not support boot partition locking, the file will not exist. If the
  25. feature has been disabled on the card, the file will be read-only.
  26. The boot partitions can also be locked permanently, but this feature is
  27. not accessible through sysfs in order to avoid accidental or malicious
  28. bricking.