在uboot中是可以读取到emmc设备的,但是在内核中初始化emmc失败了,内核启动的log片段如下:
[ 2.972878] sunxi-mmc 1c11000.mmc: --------------------[sunxi-mmc.c]sunxi_mmc_probe--------------
[ 6.200643] sunxi-mmc 1c11000.mmc: -----------> sunxi_mmc_probe 1357 PC Config Reg Bit0:2=0x11
[ 6.238366] mmc0: -1062536688 (null): trying to init card at 400000 Hz
[ 6.244924] sunxi-mmc 1c11000.mmc: mmc_pwrseq_reset
[ 6.385426] --------------> mmc_go_idle 169 err=0
[ 6.537960] --------------> mmc_go_idle 169 err=0
[ 6.642699] ---------------> mmc_rescan_try_freq 2683
[ 6.690902] -------------> mmc_attach_mmc 2171
[ 6.697074] [mmc.c]Error----------------------> mmc_attach_mmc 2208
失败在mmc_attach_mmc中调用mmc_send_op_cond,更详细的信息如下:
mmc1: starting CMD52 arg 00000c00 flags 00000195
usbcore: registered new interface driver usbhid
mmc1: req done (CMD52): -110: 00000000 00000000 00000000 00000000
usbhid: USB HID core driver
mmc1: starting CMD52 arg 80000c08 flags 00000195
oprofile: no performance counters
mmc1: req done (CMD52): -110: 00000000 00000000 00000000 00000000
怀疑是复位引脚的问题,但是在probe入口加延时再加手工硬件复位后仍然没有效果,路过的大侠可否帮忙看看是哪里的问题或者给些建议也可,谢谢!
离线