mmc命令测试

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

=> mmc part   #或者使用part list mmc 1 
Partition Map for MMC device 1  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            196608          7ae31079-01     0c Boot
  2     198656          7143424         7ae31079-02     83

​ 6:查看当前的设备号,或者设置设备号及分区
mmc dev [dev][part] - show or set currentmmc device [partition]

=> mmc dev
switch to partitions #0, OK
mmc1(part 0) is current device

​ 7:硬件校验
mmc hwpartition [args…] - does hardware partitioning

​ 8:列出当前的mmc设备
mmc list - lists available devices

=> mmc list
OMAP SD/MMC: 0
OMAP SD/MMC: 1 (eMMC)

​ 9: 打印一些当前mmc设备的信息
mmcinfo

“`
=> mmcinfo
Device: OMAP SD/MMC
Manufacturer ID: fe
OEM: 14e
Name: MMC04
Tran Speed: 52000000
Rd Block Len: 512
MMC version 4.4.1
High Capacity: Yes
Capacity: 3.5 GiB
Bus Width: 4-bit
Erase Group Size: 512 KiB
HC WP Group Size: 4 MiB
User Capacity: 3.5 GiB
Boot Capacity: 16 MiB ENH
RPMB Capacity: 128 KiB ENH
read 500 KB/s. error 0/2 (0%)
write ### MB/s. error 0/0 (0%)

猜你喜欢

转载自blog.csdn.net/al86866365/article/details/81477977
今日推荐