免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3609 | 回复: 1
打印 上一主题 下一主题

arm linux mmc驱动问题,请大侠帮把把脉 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-11-22 17:07 |只看该作者 |倒序浏览

信息如一下所示,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 [ttymxc0] 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 [nowait]
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.................[OK]
Start mdev................[OK]
imx-mmc imx-mmc.0: card inserted
Config loopback...........[OK]
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

[root@localhost /]# mmc0: new SD card at address 7b87
mmcblk0: mmc0:7b87 SD256 243 MiB
mmcblk0: p1 p2

[root@localhost /]# cd /mnt/mmc
[root@localhost /mnt/mmc]# mkdir p1
[root@localhost /mnt/mmc]# mkdir p2
[root@localhost /mnt/mmc]# mount -t vfat /dev/mmcblk0p1 ./p1
[root@localhost /mnt/mmc]# 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

[root@localhost /mnt/mmc]#
[root@localhost /mnt/mmc]# cd p2
[root@localhost /mnt/mmc/p2]# ls
abc         lost+found
[root@localhost /mnt/mmc/p2]# cd abc
[root@localhost /mnt/mmc/p2/abc]# ls
hello
[root@localhost /mnt/mmc/p2/abc]# ./hello
Hello World!
[root@localhost /mnt/mmc/p2/abc]#
[root@localhost /mnt/mmc/p2/abc]#

论坛徽章:
0
2 [报告]
发表于 2010-11-26 18:49 |只看该作者
不懂MMC,纯帮顶

不过觉得可能和工作模式设定有关,默认的模式只支持短时延的小数据读取,数据量多了就返回超时信号???
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP