Hack for using SD card reader [on IBM x60s - Ricoh]

Andrea Bittau <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
This is a nasty hack to get the SD card reader working on Lenovo IBM Thinkpad
x60s.  It's a patch to Marian Asokarajan's driver.  [It's nasty and I won't
continue working on this becase I just need to use grab some pics this weekend
from a camera and probably never use it again.]

Device:
sdhci0@pci21:0:2: class=0x080500 card=0x201d17aa chip=0x08221180 rev=0x18 hdr=0x00
    vendor   = 'Ricoh Co Ltd'
    device   = 'SD Bus Host Adapter'
    class    = base peripheral

HOWTO:
wget http://www.sashi.de/downloads/freebsd/sdhci/sdhcidd-0.0.3.tbz
mkdir sdhcidd-0.0.3; cd sdhcidd-0.0.3
tar jxvf ../sdhcidd-0.0.3.tbz
wget http://darkircop.org/sdhcidd-0.0.3.diff
patch -p1 < sdhcidd-0.0.3.diff
make

kldload ./sdhci.ko
<insert card>
if you don't get "w00t" and RCA = nonzero and blocklen in dmesg, then:
	<remove card>
	kldunload sdhci.ko; kldload ./sdhci.ko
	kldunload sdhci.ko; kldload ./sdhci.ko
	goto <insert card>
fdisk /dev/sor0
<play around>
sync
goto <remove card>

I'm running:
FreeBSD shorty.sorbonet.org 7.0-CURRENT FreeBSD 7.0-CURRENT #206: Fri Jan 26
22:52:00 GMT 2007 [email protected]:/root/fbsd/src/sys/i386/compile/SORBO
i386
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.