Usage:
mmc info - display info of the current MMC device
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part - lists available partition on current mmc device
mmc dev [dev] [part] - show or set current mmc device [partition]
mmc list - lists available devices
mmc hwpartition [args...] - does hardware partitioning
WARNING: Partitioning is a write-once setting once it is set to complete.
mmc setdsr <value> - set DSR register value
FSL_SDHC: 0 (eMMC)
FSL_SDHC: 1
FSL_SDHC: 2
Device: FSL_SDHC
Manufacturer ID: 11
OEM: 100
Name: 004G9
Tran Speed: 52000000
Rd Block Len: 512
MMC version 4.5
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 4 MiB
User Capacity: 3.7 GiB WRREL
Boot Capacity: 2 MiB ENH
RPMB Capacity: 512 KiB ENH
Partition Map for MMC device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 8192 32768 00039759-01 0c
2 40960 7086080 00039759-02 83
For Linux, exactly one optional argument can be passed. If it is present, it is interpreted as the start address of a initrd ramdisk image (in RAM, ROM or flash memory). In this case the bootm command consists of three steps:
first the Linux kernel image is uncompressed and copied into RAM, then the ramdisk image is loaded to RAM, and finally control is passed to the Linux kernel, passing information about the location and size of the ramdisk image.
To boot a Linux kernel image without a initrd ramdisk image, the following command can be used:
bootm $(kernel_addr)
If a ramdisk image is used, type:
bootm $(kernel_addr) $(ramdisk_addr)
https://www.toradex.com/community/questions/11348/apalis-imx6q-nand-corruption.html
https://boundarydevices.com/u-boot-on-i-mx6/
https://sites.google.com/site/linuxkernel88/kernel-exploration/u-boot