[U-Boot] mmc: fsl_esdhc: eMMC boot: CMD_ERR (-ECOMM) in u-boot while accessing SD

Jagan Teki jagan at openedev.com
Sun Jan 15 17:40:41 CET 2017


Hi,

I've observed the CMD_ERR in U-Boot while accessing SD with boot from
eMMC on i.MX6 board.

SPL initializing SD as well eMMC controllers
a) On SD bootmode: from u-boot prompt mmc dev 0 and mmc dev 1 is
getting probe SD and eMMC
b) On eMMC bootmode: from u-boot prompt mmc dev 0 is returning with
-ECOMM in esdhc_send_cmd funtion of fsl_esdhc.c (see the below Log)
but mmc dev 1 probed eMMC correctly

Log:
-----
icorem6qdl-rqs> mmc dev 0

esdhc_send_cmd: MMC=0x0 addr = 0x2198000, CMD0

esdhc_send_cmd: MMC=0x0 addr = 0x2198000, CMD8

ECOMM irqstat=0xc0001 CMD8

esdhc_send_cmd: MMC=0x0 addr = 0x2198000, CMD55

ECOMM CMD55
mmc_init: -70, time 53

With the above log, seems like irqstat has error with
BIT19 -CIE-Command Index Error
BIT18-CEBE-Command End Bit Error

Usually once the CMD8 is executed based on the response the controller
will switch to SD or MMC so further communication commands being
changes based on that, but here due to controller irqstat error the
controller is unable to switch to SD here.

The actual working log is [1], this is booting from SD and here is
full log[2] for booting from eMMC.

[1] https://paste.ubuntu.com/23800820/
[2] https://paste.ubuntu.com/23800833/

Request for any help.

Jagan.


More information about the U-Boot mailing list