Академический Документы
Профессиональный Документы
Культура Документы
Introduction
Technical Note
eMMC Partitioning
Introduction
Partitioning enables the host system to configure some regions of an embedded memory device (eMMC) as optimized for endurance, reliability, and performance. Special
attention is required by the host to configure different partitions to better fulfill these
different usage models. For example, mass-storage applications typically do not have
strict constraints in terms of endurance; however, they do have requirements for data
retention and higher write bandwidth in order to store code and software applications.
This technical note is a guide for partitioning an eMMC device according to the 4.41
version of the JEDEC specification. The following sections discuss how to set a physical
partition configuration, how to set a general or enhanced partition, and how to access a
partition. Finally, the registers used in partitioning are explained in detail.
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
Products and specifications discussed herein are subject to change by Micron without notice.
Boot area
partition 1
RPMB
partition 1
Boot partitions
RPMB
partition 1
RPMB partitions
The host can customize memory organization by splitting the user data area into different partitions, each with independent addressable space starting from logical address
0x00000000. It is possible to create up to four general-purpose area partitions to store
sensitive data or for other host usage models.
Part of the user data area and each general-purpose area partition can be configured as
enhanced with technological features that distinguish them from the default storage
media. If the device supports the enhanced features, boot and RPMB area partitions are
enhanced by default. The following figure shows an example of partition configuration.
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
Boot area 1
Boot area 1
Boot area 2
RPMB area
Boot area 2
RPMB area
General
partition 1
General
partition 2
General
partition 3
General
partition 4
After system
integration
configuration
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
Transfer state
No
Check
partitioning
EN=1
Yes
No
Yes
Check
ENH
attribute =1
No
Yes
CMD6 to set:
Number and size of general purpose partitions
ENH attribute on general purpose
Enhanced user area data
CMD6 to set:
Number and size of
general purpose partitions
CMD6 to set:
PARTITIONING_SETTING_COMPLETED
(to notify the device that the host has
completed partitioning configuration)
Power-cycle
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
Accessing a Partition
The following steps must be executed each time the host wants to access a partition:
1. Because the ERASE_GROUP_DEF bit is reset after power-up, the host must set it to
HIGH before issuing READ, WRITE, ERASE, and WRITE PROTECT commands.
2. To address one of the partitions, issue CMD6 to set the PARTITION_ACCESS bits in
the PARTITION_CONFIG field (see the Partitions Configuration section) of the
EXT_CSD register; all commands issued by the host are then referred to the selected partition.
3. Restore the PARTITION_ACCESS bits to redirect the commands to another partition or to the user data area.
Note:
If an unexpected power loss occurs, or after all reset events, access will be restored to
the user data area by default.
Note:
If the host tries to access a partition that has not yet been created, the device sets the
SWITCH_ERROR bit in the status register, and the PARTITION_ACCESS bits do not
change.
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
Register Details
Erase Group Size Definition Register [175]
This register allows the master to select high-capacity erase unit size and write-protect
group size.
Table 1: ERASE_GROUP_DEF
Bit
7
Reserved
0
Enable
1. Bit[7:1]: Reserved
2. Bit0: Enable
0x0: Use the default erase group size and WPG size definition.
0x1: Use the high-capacity erase group size (see High Capacity Erase Group Size
Register [224] section) and high-capacity WPG size (see High Capacity Write Protect
Group Size Register [221] section) definitions.
3. Bit is set to 0 on power-on by default.
Notes:
Parameter
0x00
0x01
0x02
:
0xFF
If the master set bit 0 to enable in ERASE_GROUP_DEF [175], the slave uses this value
for the ERASE operation. But if the enable is cleared to LOW, or HC_WP_GRP_SIZE is set
to 0x00, the WPG sizes to the default.
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
Parameter
0x00
0x01
0x02
0xFF
Reserved
Notes:
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
ENH_ATTRIBUTE_EN
PARTITIONING_EN
1. Bit[0]: PARTITIONING_EN
0x0: Device does not support partitioning features.
0x1: Device supports partitioning features.
2. Bit[1]: ENH_ATTRIBUTE_EN
0x0: Device cannot have enhanced technological features in general-purpose partitions and in the user data area.
0x1: Device can have enhanced technological features in general-purpose partitions and in the user data area.
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
GP_SIZE_MULT_X_2
GP_SIZE_MULT_X_1
GP_SIZE_MULT_X_0
Notes:
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
10
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
Reserved
ENH_4
ENH_3
ENH_2
ENH_1
ENH_USR
1. Bit[7:5]: Reserved
2. Bit[4]: ENH_4
0x0: Default
0x1: Sets enhanced attribute in general-purpose partition 4.
3. Bit[3]: ENH_3
0x0: Default
0x1: Sets enhanced attribute in general-purpose partition 3.
4. Bit[2]: ENH_2
0x0: Default
0x1: Sets enhanced attribute in general-purpose partition 2.
5. Bit[1]: ENH_1
0x0: Default
0x1: Sets enhanced attribute in general-purpose partition 1.
6. Bit[0]: ENH_USR
0x0: Default
0x1: Sets enhanced attribute in user data areas.
Notes:
ENH_SIZE_MULT_2
ENH_SIZE_MULT_1
ENH_SIZE_MULT_0
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
11
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
MAX_ENH_SIZE_MULT_2
MAX_ENH_SIZE_MULT_1
MAX_ENH_SIZE_MULT_0
The maximum enhanced area must be estimated according to Max Enhanced Area =
MAX_ENH_SIZE_MULT x HC_WP_GRP_SIZE x HC_ERASE_GRP_SIZE x 512Kb.
In the case of low-capacity cards (2GB and below), the EXT_CSD register is set as
HC_WP_GRP_SIZE = 0, HC_ERASE_GRP_SIZE = 0. In this case, an alternative formula
has to be used:
Max Enhanced Area = (MAX_ENH_SIZE_MULT_2 x 2^16 + MAX_ENH_SIZE_MULT_1 x
2^8 + MAX_ENH_SIZE_MULT_0 x 2^0) x (WP_GRP_SIZE+1) x (ERASE_GRP_SIZE+1) x
(ERASE_GRP_MULT+1) x 512 bytes.
The MAX_ENH_SIZE_MULT value is available in EXT_CSD (bytes [159:157)),
WP_GRP_SIZE in CSD (bytes [36:32]), ERASE_GRP_SIZE in CSD (bytes [46:42]), and
ERASE_GRP_MULTI in CSD (bytes [41:37]).
This is valid both for enhanced and general-purpose partitions.
ENH_START_ADDR_3
ENH_START_ADDR_2
ENH_START_ADDR_1
ENH_START_ADDR_0
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
12
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
Reserved
BOOT_ACK
BOOT_PARTITION_ENABLE
PARTITION_ACCESS
R/W/E
R/W/E
R/W/E
Notes:
1. Bit[7]: Reserved
2. Bit[6]: BOOT_ACK
0x0: No boot acknowledge is sent (default).
0x1: Boot acknowledge is sent during the boot operation.
3. Bit[5:3]: BOOT_PARTITION_ENABLE
The user selects the boot data that will be sent to the master.
0x0: Device is not boot-enabled (default).
0x1: Boot partition 1 is enabled for boot.
0x2: Boot partition 2 is enabled for boot.
0x3 to 0x6: Reserved
0x7: User area is enabled for boot.
4. Bit[2:0]: PARTITION_ACCESS (before BOOT_PARTITION_ACCESS)
The user selects the partition to access.
0x0: Access to user data area
0x1: R/W boot partition 1
0x2: R/W boot partition 2
0x3: R/W replay-protected memory block (RPMB)
0x4: Access to general-purpose partition 1
0x5: Access to general-purpose partition 2
0x6: Access to general-purpose partition 3
0x7: Access to general-purpose partition 4
PDF: 09005aef84c0eb5e
tn5207_emmc_partitioning.pdf - Rev. A 5/12 EN
13
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.
Revision History
Rev. A 5/12
Initial release.
14
Micron Technology, Inc. reserves the right to change products or specifications without notice.
2012 Micron Technology, Inc. All rights reserved.