Skip to contentSkip to conversation

SD card readable only up to certain boundary (samcop sdi controller)

DISCUSSION Milan Plzik 2 participants 2 messages Jul 5, 2007 – Jul 6, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I'm trying to get samcop sdi controller (found e.g. in h5000 ipaqs)
working with Apacer 2GB SD card. Samcop sdi, nor samcop in general is supported in vanilla kernel, but I'm not sure what could be wrong (I suspect either mmc_block or sdi driver), so I think lkml might be the right place.

My problem is that I can access only small portion of SD card --
roughly 224MB (in 512byte sectors, the boundary is 0x70000, inclusive). All reads/writes beyond this address cause errors like timeouts, fifo underrun, etc. (MMC errors 1, 3 and 4). DMA engine, which reads received data seems to be 'frozen' at incomplete transfer (counter of remaining blocks to be transferred is stopped at non-zero value, although something seems to be transferred, but that might not be useful data). Kernel version is 2.6.21, with handhelds.org patches.

The SD card works correctly with other devices, like PCMCIA card
readers. Also samcop sdi was able to fully read 512MB card. I'm not really sure what could cause behavior like this and I'm open to any suggestion.

Also, please Cc me, as I'm not subscribed to linux-kernel... .

Thank you,

Milan Plzik

#1 lore raw
Quoted 6 lines · On Thu, 05 Jul 2007 23:17:24 +0200 Milan Plzik <[email protected]> wrote:

The SD card works correctly with other devices, like PCMCIA card
readers. Also samcop sdi was able to fully read 512MB card. I'm not really sure what could cause behavior like this and I'm open to any suggestion.

No idea, but as it works well in other devices and I've not seen anything reports resembling this, I'd guess the driver/hw is buggy. But as I haven't seen said driver I cannot guess what the problem might be.

Rgds

Signature · 5 lines
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org