AnsweredAssumed Answered

U- Boot can't detect micro sd and gives error bad device mmc 0. Why?

Question asked by Farha Tamanna Islam on Nov 22, 2017

I am working on a custom board based on ls1012ardb. The mmc configuration is similar the only difference is we are using micro sd card insted of normal sd with esdhc0 controller. But unfortunately u-boot fails to detect this micro sd.

Here I am giving my boot message:

 

U-Boot 2016.092.0+ga06b209 (Nov 22 2017 - 16:36:12 +0100)

SoC: LS1012AE Rev1.0 (0x87040010)
Clock Configuration:
CPU0(A53):800 MHz
Bus: 250 MHz DDR: 1000 MT/s
Reset Configuration Word (RCW):
00000000: 08000008 00000000 00000000 00000000
00000010: 35080000 c000000c 40000000 00001800
00000020: 00000000 00000000 00000000 00014571
00000030: 00000000 18c2a120 00000096 00000000
I2C: ready
DRAM: 510 MiB
SEC0: RNG instantiated
PPA Firmware: Version 0.2
Using SERDES1 Protocol: 13576 (0x3508)
MMC: FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected S25FS512S with page size 256 Bytes, erase size 256 KiB, total 64 MiB
In: serial
Out: serial
Err: serial
Model: LS1012A RDB Board
Board: EFUSA53SATA link 0 timeout.
AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst
Found 0 device(s).
SCSI: Net: cbus_baseaddr: 0000000004000000, ddr_baseaddr: 0000000083800000, ddr_phys_baseaddr: 03800000
class init complete
tmu init complete
bmu1 init: done
bmu2 init: done
GPI1 init complete
GPI2 init complete
HGPI init complete
hif_tx_desc_init: Tx desc_base: 0000000083e40400, base_pa: 03e40400, desc_count: 64
hif_rx_desc_init: Rx desc base: 0000000083e40000, base_pa: 03e40000, desc_count: 64
HIF tx desc: base_va: 0000000083e40400, base_pa: 03e40400
HIF init complete
bmu1 enabled
bmu2 enabled
pfe_hw_init: done
pfe_firmware_init
pfe_load_elf: no of sections: 13
pfe_firmware_init: class firmware loaded
pfe_load_elf: no of sections: 10
pfe_firmware_init: tmu firmware loaded
ls1012a_configure_serdes 0
PCIe0: pcie@3400000 Root Complex: no link
pfe_eth0, pfe_eth1
Hit any key to stop autoboot: 0
=> mmc info
dev_get_uclass_priv: null device
=> mmc dev 0
dev_get_uclass_priv: null device
=> fatls mmc 0:1
dev_get_uclass_priv: null device
** Bad device mmc 0 **

mmc info doesn't detect any card and fatls mmc 0:1 gives Bad device mmc 0. What could be the possible reason?

Outcomes