一:mmc的命令如下:
1:对mmc读操作
mmc read addr blk# cnt
2:对mmc写操作
mmc write addr blk# cnt
3:对mmc擦除操作
mmc erase blk# cnt
4:重新搜索mmc设备
mmc rescan
5:列出mmc的分区
mmc part - lists available partition oncurrent mmc device
6:查看当前的设备号,或者设置设备号及分区
mmc dev [dev] [part] - show or set currentmmc device [partition]
7:显示boot分区号
mmc bootpart [dev] [part] - show or setboot partition
8:列出当前的mmc设备
mmc list - lists available devices
9: 打印一些当前mmc设备的信息
mmcinfo
二:mmc的命令详解
1:mmcinfo
输入:
mmcinfo
显示结果:
Manufacturer ID: 45
OEM: 100
Name: SEM08
Tran Speed: 25000000
Rd Block Len: 512
MMC version 4.0
Clock: 52000000
High Capacity: Yes
Capacity: 7944011776 Bytes
Bus Width: 8-bit DDR
Current Partition for boot: Boot partition 1
2:mmc list -lists available devices
输入:
mmc list
显示如下:
FSL_USDHC: 0
FSL_USDHC: 1
FSL_USDHC: 2
FSL_USDHC: 3
分析:boot中配置了四个mmc资源,SD卡是2,EMMC是3
3:mmc dev[dev] [part] - show or set current mmc device [partition]
输入: