From: boku <bok...@gm...> - 2007-06-12 09:40:04
|
I've checked my SDHC driver and found it doesn't support DMA but report it can support. This comes out a thought that if no DMA is support by SDHC, the pReq->pDataBuffer is simply as a data buffer pointer instead of being a pointer to the SGlist data structure. Is it? I think that's the problem. Sorry about this confusion. However, I met another problem while keep going on. => While I try to mount the sd memory device, it complains: /dev/sdio0p1 is not a valid block device I followed the steps shown in the sdio-linux reference document. Below are some info I did. *-sh-2.05b# ls -l /dev/sdio* *brw-r--r-- 1 root root 254, 1 Jun 8 2007 /dev/sdio0p1 *-sh-2.05b# cat /proc/devices *Character devices: 1 mem 2 pty 3 ttyp 4 /dev/vc/0 4 tty 5 /dev/tty 5 /dev/console 5 /dev/ptmx 7 vcs 10 misc 13 input 21 sg 29 fb 81 video4linux 86 ch 90 mtd 128 ptm 136 pts 204 ttyAM 204 ttyAMA Block devices: 1 ramdisk 7 loop 31 mtdblock 254 sdmem *-sh-2.05b# mount -t vfat /dev/sdio0p1 /mnt/sdmem/ *+SDIO Memory Function: Open -SDIO Memory Function: Open +SDIO Memory Function: Release(INST=0xc7263c00) -SDIO Memory Function: Release *mount: /dev/sdio0p1 is not a valid block device * The message of insert module is as follows: ....... SDIO Memory Function: Probe - creating disk +SDIO Memory Function: CreateDisk SDIO Memory Function: blk_init_Q using DiskRequest SDIO Memory Function: block size 512 SDIO Memory Function: setting block size 512 SDIO Memory Function: CreateDisk: size 1983488 (Size 992000, FileSysBlockSize 512) +SDIO Memory Function: Open -SDIO Memory Function: Open SDIO Memory Function: ReadBlocks reading, count/size length 8/512 4096 cmd: 18 SDIO MUSTANG HOST SetUpHCDDMA (RX) Blocks:8, BlockLen:512 SDIO MUSTANG HOST HcdRequest RX Data Transfer, Blocks:8, BlockLen:512 HcdRequest - RespType:1, Flgs=0x00004201, Command:18 , Arg:0x0, txMode=0x00000014 SDIO Bus Driver: HCD returned status:3 on request: 0xC7295F00, (CMD:18)(Flags:00004201) HcdSDInterrupt, ints: 0x281F errors: 0x0, sigenables: 0x2000, statenable: 0x733F errorenables:0x7F7F GetResp=00000012 00000900 HcdSDInterrupt - RX Data Transfer Complete with status:0 -HcdSDInterrupt SDIO Bus Driver: Sync-Op signal waiting.... SDIO Bus Driver: SDIO_HandleHcdEvent, event type 0x4, HCD:0xBF0178D8 SDIO Bus Driver: _SDIO_HandleHcdEvent, event type 0x4, HCD:0xBF0178D8 +SDIO Bus Driver: Handling Transfer Done (CMD:18, Status:0, Flags=00004201, Req=0xc7295f00) from HCD:0xBF0178D8 SDIO Bus Driver: Queue idle SDIO Bus Driver: Calling completion on request:0xC7295F00, CMD:18 -SDIO Bus Driver: Transfer Done Handled -SDIO Memory Function: DiskRequest +SDIO Memory Function: Release(INST=0xc7245c00) -SDIO Memory Function: Release -SDIO Memory Function: CreateDisk major: 254, minors: 8, first_minor: 0 -SDIO Memory Function: CreateDisk |