Hack for using SD card reader [on IBM x60s - Ricoh]
Andrea Bittau
a.bittau at cs.ucl.ac.uk
Sat Jan 27 00:11:46 UTC 2007
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 at 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 root at shorty.sorbonet.org:/root/fbsd/src/sys/i386/compile/SORBO
i386
More information about the freebsd-mobile
mailing list