~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to Documentation/mmc/mmc-dev-parts.txt

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SD and MMC Device Partitions
 
2
============================
 
3
 
 
4
Device partitions are additional logical block devices present on the
 
5
SD/MMC device.
 
6
 
 
7
As of this writing, MMC boot partitions as supported and exposed as
 
8
/dev/mmcblkXboot0 and /dev/mmcblkXboot1, where X is the index of the
 
9
parent /dev/mmcblkX.
 
10
 
 
11
MMC Boot Partitions
 
12
===================
 
13
 
 
14
Read and write access is provided to the two MMC boot partitions. Due to
 
15
the sensitive nature of the boot partition contents, which often store
 
16
a bootloader or bootloader configuration tables crucial to booting the
 
17
platform, write access is disabled by default to reduce the chance of
 
18
accidental bricking.
 
19
 
 
20
To enable write access to /dev/mmcblkXbootY, disable the forced read-only
 
21
access with:
 
22
 
 
23
echo 0 > /sys/block/mmcblkXbootY/force_ro
 
24
 
 
25
To re-enable read-only access:
 
26
 
 
27
echo 1 > /sys/block/mmcblkXbootY/force_ro