11.. http://processors.wiki.ti.com/index.php/Linux_Core_MMC/SD_User%27s_Guide
22
3- MMC/SD
4- ######
3+ MMCSD
4+ #####
55
66.. ifconfig :: CONFIG_part_family in ('AM62X_family', 'AM62PX_family')
77
@@ -13,17 +13,17 @@ MMC/SD
1313Introduction
1414************
1515
16- The multimedia card high-speed/SDIO (MMC/SDIO ) host controller provides
17- an interface between a local host (LH) such as a microprocessor unit
18- (MPU) or digital signal processor (DSP) and either MMC, SD® memory
19- cards , or SDIO cards and handles MMC/SDIO transactions with minimal LH
20- intervention.
16+ The MMCSD (Multi-Media Card Secure Digital ) host controller provides
17+ an interface between a local host (LH) such as a MicroProcessor Unit (MPU)
18+ or Digital Signal Processor (DSP) and either embedded MultiMedia Card (eMMC),
19+ SD (Secure Digital) , or SDIO (Secure Digital IO) devices. The MMCSD host
20+ controller handles MMCSD/SDIO protocol with minimal LH intervention.
2121
2222.. ifconfig :: CONFIG_part_family in ('General_family', 'AM335X_family', 'AM437X_family')
2323
24- Main features of the MMC/SDIO host controllers:
24+ Main features of the MMCSD host controllers:
2525
26- - Full compliance with MMC/SD command/response sets as defined in the
26+ - Full compliance with MMCSD command/response sets as defined in the
2727 Specification.
2828
2929 - Support:
@@ -36,9 +36,9 @@ intervention.
3636 - Two slave DMA channels (1 for TX, 1 for RX)
3737 - Designed for low power and programmable clock generation
3838 - Maximum operating frequency of 48MHz
39- - MMC/SD card hot insertion and removal
39+ - MMCSD card hot insertion and removal
4040
41- The following image shows the MMC/SD Driver Architecture:
41+ The following image shows the MMCSD Driver Architecture:
4242
4343.. Image :: /images/Mmcsd_Driver.png
4444
@@ -248,9 +248,9 @@ Driver Configuration
248248
249249.. ifconfig :: CONFIG_part_family in ('General_family', 'AM335X_family', 'AM437X_family')
250250
251- The default kernel configuration enables support for MMC/SD (built-in to kernel).
251+ The default kernel configuration enables support for MMCSD (built-in to kernel).
252252
253- The selection of MMC/SD /SDIO driver can be modified using the linux kernel
253+ The selection of MMCSD /SDIO driver can be modified using the linux kernel
254254 configuration tool. Launch it by the following command:
255255
256256 .. code-block :: console
@@ -277,7 +277,7 @@ Driver Configuration
277277
278278 $ sudo -E make modules_install ARCH=arm INSTALL_MOD_PATH=path/to/filesystem
279279
280- Boot the kernel upto kernel prompt and use modprobe to insert the driver
280+ Boot the kernel up-to kernel prompt and use modprobe to insert the driver
281281 module and all its dependencies.
282282
283283 .. code-block :: console
@@ -291,7 +291,7 @@ Driver Configuration
291291
292292.. ifconfig :: CONFIG_part_family in ('J7_family', 'AM62X_family', 'AM64X_family', 'AM62AX_family', 'AM62PX_family', 'AM62LX_family')
293293
294- The default kernel configuration enables support for MMC/SD driver as
294+ The default kernel configuration enables support for MMCSD driver as
295295 built-in to kernel. TI SDHCI driver is used. Following options need to be
296296 configured in Linux Kernel for successfully selecting SDHCI driver for
297297 |__PART_FAMILY_DEVICE_NAMES__ |.
@@ -423,13 +423,11 @@ MMC support in Linux
423423
424424 There is no missing MMC support for |__PART_FAMILY_DEVICE_NAMES__ | device.
425425
426- |
426+ Steps for working around SD card issues in Linux
427+ ************************************************
427428
428429.. ifconfig :: CONFIG_part_family not in ('General_family', 'AM57X_family', 'AM335X_family', 'AM437X_family')
429430
430- Steps for working around SD card issues in Linux
431- ********************************************** **
432-
433431 In some cases, failures can be seen while using some SD cards:
434432
435433 - Kernel fails to enumerate SD, thus failing to mount the root file system. This is
@@ -541,13 +539,18 @@ MMC support in Linux
541539
542540 sdhci2: mmc@fa20000 {
543541
542+ .. ifconfig :: CONFIG_part_family in ('General_family', 'AM57X_family', 'AM335X_family', 'AM437X_family')
543+
544+ Steps for working around SD card issues in Linux documentation is pending for |__PART_FAMILY_DEVICE_NAMES__ |
545+ please reach out to: `Help e2e <https://e2e.ti.com// >`__ for additional information.
546+
544547|
545548
546549.. _mmc-listing-mmc-devices-linux :
547550
548551Listing MMC devices from Linux
549552******************************
550- eMMC and SD cards are registered to the MMC subsystem and availiable as a block device
553+ eMMC and SD cards are registered to the MMC subsystem and available as a block device
551554as :file: `/dev/mmcblk{ n } `. To find which device index **n ** corresponds to eMMC device,
552555check which device includes :file: `mmcblk{ n } boot0 ` and :file: `mmcblk{ n } boot1 `. Here,
553556mmcblk0* is in eMMC.
@@ -566,7 +569,7 @@ mmcblk0* is in eMMC.
566569
567570 The disk partitions for each MMC device are displayed as :file: `/dev/mmcblk{ n } p{ x } `,
568571to see what disk partitions exist for an eMMC device and if they are mounted, use the
569- command :command: `lsblk `, like so :
572+ command :command: `lsblk `, such as :
570573
571574.. code-block :: console
572575
@@ -580,7 +583,7 @@ command :command:`lsblk`, like so:
580583 `-mmcblk1p2 179:98 0 1.9G 0 part /
581584
582585 Use the :command: `mount ` and :command: `umount ` commands to mount and unmount disk partitions
583- if they are formated, usally to vfat or ext4 types.
586+ if they are formatted, usually to vfat or ext4 types.
584587
585588.. _mmc-create-partitions-in-emmc-linux :
586589
@@ -592,27 +595,27 @@ to flash the rootfs. To create disk partitions in UDA, use the :command:`fdisk`
592595For ex: :samp: `fdisk /dev/mmcblk{ n } ` in which **n ** is typically 0 or 1. In the example above,
593596eMMC is :samp: `fdisk /dev/mmcblk0 `.
594597
595- For documentation on using fdisk, please go to: `fdisk how-to <https://tldp.org/HOWTO/Partition/fdisk_partitioning.html >`__.
598+ For documentation on using fdisk, go to: `fdisk how-to <https://tldp.org/HOWTO/Partition/fdisk_partitioning.html >`__.
596599
597600**Erase eMMC UDA **
598601
599- In Linux, before creating disk partitions, we can optionally erase eMMC UDA using :command: `dd `
602+ In Linux, before creating disk partitions, we can optionally erase eMMC UDA by using :command: `dd `
600603command:
601604
602605.. code-block :: console
603606
604607 root@<machine>:~# umount /dev/mmcblk0*
605608 root@<machine>:~# dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=n
606609
607- where ``n `` should be determined according the the following formula: ``count = total size UDA (bytes) / bs ``.
610+ where ``n `` should be determined according to the following formula: ``count = total size UDA (bytes) / bs ``.
608611
609612.. _mmc-create-boot-partition-emmc-linux :
610613
611614Create "boot" partition
612615=======================
613616
614617In this example create a "boot" partition of size 400 MiB which can be formatted to vfat type
615- and will store the bootloader binaries.
618+ and will store the boot loader binaries.
616619
617620.. code-block :: console
618621
@@ -655,7 +658,7 @@ and will store the bootloader binaries.
655658 Calling ioctl() to re-read partition table.
656659 Syncing disks.
657660
658- Make sure bootable flag is set for "boot" partition, ROM may not boot from this patitition
661+ Make sure bootable flag is set for "boot" partition, ROM might not boot from this partition
659662if bootable flag is not set.
660663
661664.. _mmc-create-root-partition-emmc-linux :
@@ -707,7 +710,7 @@ Linux kernel Image, DTB, and the rootfs.
707710Formatting eMMC partitions from Linux
708711*************************************
709712
710- After creating a partition/s, the partition can be formated with the :command: `mkfs ` command.
713+ After creating a partition/s, the partition can be formatted with the :command: `mkfs ` command.
711714For ex: :samp: `mkfs -t ext4 /dev/mmcblk{ n } ` where **mmcblk{n} ** is the MMC device with the new
712715disk partitions to format. The general syntax for formatting disk partitions in Linux is:
713716
@@ -761,10 +764,10 @@ Flash eMMC for MMCSD boot
761764*************************
762765
763766In this example, we show one simple method for flashing to eMMC for MMCSD boot from
764- eMMC UDA in FS mode. Please know this is not the only method for flashing the eMMC
765- for this bootmode .
767+ eMMC UDA in FS mode. Know this is not the only method for flashing the eMMC for this
768+ boot mode .
766769
767- This example assumes the current bootmode is MMCSD boot from SD (FS mode)
770+ This example assumes the current boot mode is MMCSD boot from SD (FS mode)
768771
769772.. _mmc-flash-emmc-uda-boot :
770773
@@ -778,7 +781,7 @@ Flash to eMMC "boot" partition
778781 root@<machine>:~# mount /dev/mmcblk0p1 /mnt/eboot
779782 root@<machine>:~# mount /dev/mmcblk1p1 /mnt/sdboot
780783
781- Verify the partitions are mounted to the correct folders using :command: `lsblk ` command in the
784+ Verify the partitions are mounted to the correct folders by using :command: `lsblk ` command in the
782785column labeled :file: `MOUNTPOINTS `.
783786
784787.. code-block :: console
@@ -794,7 +797,7 @@ column labeled :file:`MOUNTPOINTS`.
794797 |-mmcblk1p1 179:97 0 128M 0 part /mnt/sdboot
795798 `-mmcblk1p2 179:98 0 8.7G 0 part /
796799
797- Now we can copy bootloader binaries to eMMC and umount the partitions when writes finish.
800+ Now we can copy boot loader binaries to eMMC and umount the partitions when writes finish.
798801
799802.. code-block :: console
800803
@@ -816,7 +819,7 @@ Flash to eMMC "root" partition
816819 [69229.982452] EXT4-fs (mmcblk0p2): mounted filesystem 74d40075-07e4-4bce-9401-6fccef68e934 r/w with ordered data mode. Quota mode: none.
817820 root@<machine>:~# mount /dev/mmcblk1p2 /mnt/sdroot
818821
819- Verify the partitions are mounted to the correct folders using :command: `lsblk ` command in the
822+ Verify the partitions are mounted to the correct folders by using :command: `lsblk ` command in the
820823column labeled :file: `MOUNTPOINTS `.
821824
822825.. code-block :: console
@@ -833,7 +836,7 @@ column labeled :file:`MOUNTPOINTS`.
833836 `-mmcblk1p2 179:98 0 8.7G 0 part /mnt/sdroot
834837 /
835838
836- Now we can copy rootfs to eMMC (either from SD rootfs or from tarball ) and umount the partitions
839+ Now we can copy rootfs to eMMC (either from SD rootfs or from tar file ) and umount the partitions
837840when writes finish.
838841
839842**From SD **
@@ -848,7 +851,7 @@ when writes finish.
848851 root@<machine>:~# umount /mnt/*
849852 [70154.205154] EXT4-fs (mmcblk0p2): unmounting filesystem 74d40075-07e4-4bce-9401-6fccef68e934.
850853
851- **From tarball **
854+ **From tar file **
852855
853856This sections requires for tisdk-base-image-<soc>evm.rootfs.tar.xz to have been previously copied
854857to the SD card rootfs.
0 commit comments