uboot 命令 mmc erase 内存擦出出错

时间:2024-03-28 16:53:12

命令原型:

Usage:
mmc read <device num> addr blk# cnt
mmc write <device num> addr blk# cnt
mmc rescan <device num>
mmc erase <boot | user> <device num> <start block> <block count>
mmc list - lists available devices

原使用方法:

TINY4412 # mmc erase user 0 3e8 1


START: 3 BLOCK: 1
high_capacity: 1
Capacity: 15130624

Erase

 512 B erase Done
MMC erase Success.!!

提示擦出成功,但是实际上并没有擦出???

uboot 命令 mmc erase 内存擦出出错

显示成功!!!

BUT

uboot 命令 mmc erase 内存擦出出错

.....................................................................................................华丽丽的分割线.........................................................................................................

原因找到,mmc erase 命令操作的块是以十进制分的

3e8(16)=1000 (10)

所以,命令应该是

mmc erase user 0 1000 1uboot 命令 mmc erase 内存擦出出错