主题 : 請問如何檢查mmc是否讀寫正常? 复制链接 | 浏览器收藏 | 打印
级别: 圣骑士
UID: 44407
精华: 0
发帖: 386
金钱: 1945 两
威望: 389 点
综合积分: 772 分
注册时间: 2011-04-25
最后登录: 2014-08-25
楼主  发表于: 2012-08-10 10:19

 請問如何檢查mmc是否讀寫正常?

如題,在Kernel中MMC/SDIO開啟MMC debug

以下為載入分位的dmesg資訊,看起來MMC通道可能是正常,
但是在載入分位timeout,不是很確定是否有其它問題?
例如....Kernel在Buildin 載入相衝module....,是否麻煩先進指點一二


<7>[   80.210000] mmc0:     4 bytes transferred: 0
<7>[   80.210000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.210000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.210000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.210000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.210000] mmc0:     4 bytes transferred: 0
<7>[   80.210000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.210000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.210000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.210000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.210000] mmc0:     4 bytes transferred: 0
<7>[   80.210000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.210000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.210000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.210000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.210000] mmc0:     4 bytes transferred: 0
<7>[   80.210000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.210000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
0000003  .210000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x0--More--
<7>[   80.210000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.210000] mmc0:     4 bytes transferred: 0
<7>[   80.210000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.210000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.210000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.210000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.210000] mmc0:     4 bytes transferred: 0
<7>[   80.210000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.210000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.210000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.210000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.210000] mmc0:     4 bytes transferred: 0
<7>[   80.210000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.210000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.210000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.210000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.210000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
0000003  .220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x0--More--
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.220000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.220000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.220000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.220000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.220000] mmc0:     4 bytes transferred: 0
<7>[   80.230000] mmc0: starting CMD53 arg 1408a004 flags 000001b5
<7>[   80.230000] mmc0:     blksz 4 blocks 1 flags 00000200 tsac 1000 ms nsac 0
<7>[   80.230000] sqn31x0-sdio [sqn31x0_sdio_irq()]: *** mmc0 got interrupt: 0x00000003
<7>[   80.230000] mmc0: req done (CMD53): 0: 00001000 00000000 00000000 00000000
<7>[   80.230000] mmc0:     4 bytes transferred: 0
<1>[   80.230000] BMI Communication timeout - bmiBufferSend
<1>[   80.230000] Unable to write to the device
<1>[   80.230000] BMI: Deleting sysfs entry