@@ -32,11 +32,28 @@ The device index "**0**" for eMMC will be used when flashing to the eMMC device
3232In u-boot environment, usually **mmcdev=n ** is used to selct which MMC device to boot
3333Linux from, where **n ** is the device index.
3434
35+ MMC HW partitions
36+ =================
37+
38+ This sections includes a summary of MMC hardware partitions.
39+
40+ **eMMC **
41+
42+ Normally eMMC is divided into 4 areas (aka HW partitions):
43+
44+ - UDA (User Data Area): Used to store user data such as a file system. This partition can divided into several partitions
45+ - Boot0/1: Used to store firmware and data needed during boot
46+ - RPMB (Replay-protected memory-block area): Used to store secure data
47+
48+ **SD **
49+
50+ SD card memory is not divided into sections like eMMC, but acts like UDA in eMMC where user can
51+ create partitions in software allowing to logically divide the storage space into multiple sections.
3552
3653.. _uboot-selecting-mmc-device-and-partitions :
3754
38- Selecting MMC device and paritions
39- ==================================
55+ Selecting MMC device and partitions
56+ ===================================
4057
4158To selct an MMC device in u-boot, the command: :command: `mmc dev ` could be used.
4259The general syntax is:
@@ -52,11 +69,11 @@ and partitions according to the example in: :ref:`uboot-listing-mmc-devices`.
5269
5370.. code-block :: console
5471
55- => mmc dev 0 0 # select eMMC user HW partition ( UDA)
56- => mmc dev 0 1 # select eMMC boot0 HW partition
57- => mmc dev 0 2 # select eMMC boot1 HW partition
58- => mmc dev 1 1 # select SD "boot" partition
59- => mmc dev 1 2 # select SD "root" partition
72+ => mmc dev 0 0 # select eMMC UDA
73+ => mmc dev 0 1 # select eMMC Boot0
74+ => mmc dev 0 2 # select eMMC Boot1
75+ => mmc dev 1 1 # select SD first partition (typically named 'boot')
76+ => mmc dev 1 2 # select SD second partition (typically named 'root')
6077
6178 View MMC partition contents
6279===========================
@@ -72,7 +89,7 @@ boot the device.
7289 :ref: `formatting-mmc-partition-from-linux ` before proceeding to look at the
7390 eMMC partition contents.
7491
75- To verify partitions in any MMC device from u-boot prompt, use the
92+ To list software created partitions for any MMC device from u-boot prompt, use the
7693command: :command: `mmc part `.
7794
7895.. code-block :: console
@@ -202,7 +219,7 @@ eMMC layout
202219 +----------------------------------+0x3900 | |
203220 | backup environment (128 KB) | | |
204221 +----------------------------------+0x3A00 +-------------------------+
205- boot0 HW partition (8 MB) user partition
222+ Boot0 (8 MB) UDA
206223
207224 .. ifconfig :: CONFIG_part_variant in ('J721S2', 'AM62X', 'AM62PX', 'AM62AX', 'AM62LX')
208225
@@ -219,7 +236,7 @@ eMMC layout
219236 +----------------------------------+0x3500 | |
220237 | backup environment (128 KB) | | |
221238 +----------------------------------+0x3600 +-------------------------+
222- boot0 HW partition (8 MB) user partition
239+ Boot0 (8 MB) UDA
223240
224241 .. ifconfig :: CONFIG_part_variant not in ('AM64X', 'J7200', 'J721S2', 'AM62X', 'AM62PX', 'AM62AX', 'AM62LX')
225242
@@ -239,7 +256,7 @@ eMMC layout
239256 +----------------------------------+0x3600 | |
240257 | sysfw (1 MB) | | |
241258 +----------------------------------+0x3E00 +-------------------------+
242- boot0 HW partition (8 MB) user partition
259+ Boot0 (8 MB) UDA
243260
244261 eMMC boot configuration
245262-----------------------
@@ -258,26 +275,30 @@ set using the :command:`mmc bootbus` and :command:`mmc partconf` commands.
258275
259276 Where <dev> is MMC device index.
260277
261- **Boot from boot0 HW partition of eMMC: **
278+ .. _uboot-emmc-boot0-config :
279+
280+ Boot from Boot0
281+ ```````````````
262282
263283.. code-block :: console
264284
265285 => mmc partconf 0 1 1 1
266286 => mmc bootbus 0 2 0 0
267287
268- **Boot from boot1 HW hardware partition of eMMC: **
288+ .. _uboot-emmc-boot1-config :
289+
290+ Boot from Boot1
291+ ```````````````
269292
270293.. code-block :: console
271294
272295 => mmc partconf 0 1 2 1
273296 => mmc bootbus 0 2 0 0
274297
275- .. note ::
276-
277- When booting from boot1 HW partition, make sure to flash the partition using:
278- :samp: `mmc dev 0 2 `.
298+ .. _uboot-emmc-uda-config :
279299
280- **Boot from UDA HW partition of eMMC: **
300+ Boot from UDA
301+ `````````````
281302
282303.. code-block :: console
283304
@@ -322,7 +343,7 @@ To boot Linux from eMMC, use the following commands after flashing rootfs to UDA
322343 Flashing an MMC device using USB-DFU
323344====================================
324345
325- To flash the eMMC device (boot0 HW partition ) using USB-DFU, the device should
346+ To flash the eMMC device (Boot0 ) using USB-DFU, the device should
326347be booted to u-boot prompt and a USB cable connected from the host machine
327348to the device USB port configured to USB peripheral mode.
328349
@@ -333,8 +354,10 @@ From u-boot prompt execute the following:
333354 => setenv dfu_alt_info ${dfu_alt_info_emmc}
334355 => dfu 0 mmc 0
335356
336- and on the host machine have the bootloader binaries ready to flash
337- to eMMC boot0 HW partition. Execute the :command: `dfu-util ` to transfer
357+ This comands assumes eMMC device exists and is mmc device 0.
358+
359+ On the host machine have the bootloader binaries ready to flash
360+ to eMMC Boot0. Execute the :command: `dfu-util ` to transfer
338361files to the device. The general syntax for dfu-util command is:
339362
340363.. code-block :: console
0 commit comments