Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2007 23:55:26 +0000
From:      Andrea Bittau <a.bittau@cs.ucl.ac.uk>
To:        freebsd-mobile@freebsd.org
Cc:        Marian Asokarajan <mail@sashi.de>
Subject:   Hack for using SD card reader [on IBM x60s - Ricoh]
Message-ID:  <20070126235526.GA10005@shorty.sorbonet.org>

next in thread | raw e-mail | index | archive | help

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 root@shorty.sorbonet.org:/root/fbsd/src/sys/i386/compile/SORBO
i386



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070126235526.GA10005>