armips 发表于 2010-11-22 17:07

arm linux mmc驱动问题,请大侠帮把把脉

:dizzy:
信息如一下所示,mmc驱动,挂在文件系统 以及 读写小数据量文件都没有问题,当读写大量数据的时候
就会出现CMD13的响应超时:
imx-mmc imx-mmc.0: RESP TIMEOUT, hardware stucked STATUS = 0x9e40 IMASK = 0x007b
imx-mmc imx-mmc.0: CMD_DAT_CONT = 0x0201, MMC_BLK_LEN = 0x0200, MMC_NOB = 0x0002
, DMA_CCR = 0x00000000
imx-mmc imx-mmc.0: CMD13, prevCMD13, bus 4-bit, dma_size = 0x400
间隔约2秒不断的打印,郁闷了好几天了,还是没有找到,请各位看看有没有碰到过类似问题,谢谢!


console enabled
imx-uart.1: ttymxc1 at MMIO 0x207000 (irq = 24) is a IMX
brd: module loaded
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>
eth0: SMC91C11xFD (rev 1) at c1810300 IRQ 131
eth0: Ethernet addr: 00:0a:a3:02:02:c8
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
Driver for 1-wire Dallas network protocol.
i.MX mmc driver
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
TCP cubic registered
NET: Registered protocol family 17
Registering the dns_resolver key type
Freeing init memory: 100K
init started: BusyBox v1.17.3 (2010-10-27 09:27:58 CST)
Processing etc/init.d/rc.S
Mount all.................
Start mdev................
imx-mmc imx-mmc.0: card inserted
Config loopback...........
eth0: link down
****************************************************
rootfs by cpio, mc9328mx1
Created by xyz @ 2010.10.25
Enjoy it!!!
****************************************************


Processing /etc/profile...Set search library path
Set user path
Set PS1
All Done

# mmc0: new SD card at address 7b87
mmcblk0: mmc0:7b87 SD256 243 MiB
mmcblk0: p1 p2

# cd /mnt/mmc
# mkdir p1
# mkdir p2
# mount -t vfat /dev/mmcblk0p1 ./p1
# mount -t auto /dev/mmcblk0p2 ./p2
EXT2-fs (mmcblk0p2): warning: mounting ext3 filesystem as ext2
EXT2-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommend
ed

imx-mmc imx-mmc.0: RESP TIMEOUT, hardware stucked STATUS = 0x9e40 IMASK = 0x007b
imx-mmc imx-mmc.0: CMD_DAT_CONT = 0x0201, MMC_BLK_LEN = 0x0200, MMC_NOB = 0x0002
, DMA_CCR = 0x00000000
imx-mmc imx-mmc.0: CMD13, prevCMD13, bus 4-bit, dma_size = 0x400
#
# cd p2
# ls
abc         lost+found
# cd abc
# ls
hello
# ./hello
Hello World!
#
#

深蓝苹果 发表于 2010-11-26 18:49

不懂MMC,纯帮顶

不过觉得可能和工作模式设定有关,默认的模式只支持短时延的小数据读取,数据量多了就返回超时信号???
页: [1]
查看完整版本: arm linux mmc驱动问题,请大侠帮把把脉