Why I can't erase mmc from u-boot?

Hi @Gouwa,

why I can’t erase mmc from u-boot on my vim2 v1.2?
I get this error:

kvim2#store init 3
XXXXXXX======enter EMMC boot======XXXXXX
co-phase 0x2, tx-dly 0, clock 40000000
co-phase 0x2, tx-dly 0, clock 40000000
co-phase 0x2, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 40000000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
start dts,buffer=00000000b3eb5d90,dt_addr=00000000b3eb5d90
check_valid_dts: FDT_ERR_BADMAGIC
get_partition_from_dts() 91: ret -9
get_partition_from_dts() 94: ret -9
get_ptbl_from_dtb()-272: get partition table from dts faild
mmc_device_init()-1254: get partition table from dtb failed
get_ptbl_rsv()-494: magic faild MPT,
mmc_device_init()-1281: dtb&rsv are not exist, no LPT source
switch to partitions #0, OK
mmc1(part 0) is current device
Device: SDIO Port C
Manufacturer ID: 15
OEM: 100
Name: CWBD3
Tran Speed: 52000000
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 58.2 GiB
mmc clock: 40000000
Bus Width: 8-bit
[store]amlmmc erase 1Cannot find dev.

Verion of u-boot is:


U-Boot 2015.01-g6ab671a0b4-dirty (Dec 06 2019 - 11:47:30)
aarch64-none-elf-gcc (crosstool-NG linaro-1.13.1-4.8-2013.11 - Linaro GCC 2013.10) 4.8.3 20131111 (prerelease)
GNU ld (crosstool-NG linaro-1.13.1-4.8-2013.11 - Linaro GCC 2013.10) Linaro 2013.10-4


What’s the current firmware?

start krescue -> advanced -> erace mmc ! (its works every time )

What do you mean by current firmware?

I have openwrt installed in emmc.


Yes I know, krescue is amazing :slight_smile:
So simple to use and powerful.

I am only worried that my vim2 have some issues as I see errors when using UART-USB connection especial when running store init 3 and also when booting openwrt.


dont worry about this if u use openwrt firmware !!! its normal

  1. its just like information noize :wink:
  2. this uboot not fully configured and cant erase emmc - its same ok :wink:

both of them dont make any problem for openwrt workability :wink:

PS: may be next time i can clean it :wink:

PS: store init 3 - its just amlogic specific - u can forget about this - for example next mainline uboots dont have this commands same as many other specific from am-logic at all :wink: