SD/MMC (ricoh) reader on Thinkpad T61
Mel
fbsd.mobile at rachie.is-a-geek.net
Fri Sep 14 14:23:39 PDT 2007
On Friday 14 September 2007 22:50:00 Yuri Lukin wrote:
> On Sat, 15 Sep 2007 01:42:32 +0900, Hajimu UMEMOTO wrote
>
> > Hi,
> >
> > You can just build the driver as a kernel module.
>
> I'm afraid I'm not having any luck building it:
>
> # make
> Warning: Object directory not changed from original
> /usr/src/sys/modules/sdmmc @ -> /usr/src/sys
> machine -> /usr/src/sys/i386/include
>
> :> opt_sd.h
>
> awk -f @/tools/makeobjops.awk
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdbus_if.m -h
> awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
> awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
> awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
> cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99
> -nostdinc -I/usr/src/sys/modules/sdmmc/../../ -I. -I@ -I@/contrib/altq
> -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-growth=1000 -fno-common -mno-align-long-strings
> -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
> -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c: In function
> 'sdshc_attach': /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:346:
> warning: passing argument 4 of 'bus_setup_intr' from incompatible pointer
> type
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:346: warning: passing
> argument 5 of 'bus_setup_intr' from incompatible pointer type
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:346: error: too few
> arguments to function 'bus_setup_intr'
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c: In function
> 'sdshc_intr': /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:448:
> warning: implicit declaration of function 'bus_space_read_2'
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:448: warning: nested
> extern declaration of 'bus_space_read_2'
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c: In function
> 'sdshc_reset': /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:612:
> warning: implicit declaration of function 'bus_space_write_1'
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:612: warning: nested
> extern declaration of 'bus_space_write_1'
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:614: warning: implicit
> declaration of function 'bus_space_read_1'
> /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:614: warning: nested
> extern declaration of 'bus_space_read_1'
> *** Error code 1
As he said, it's -STABLE code, not -CURRENT. It works on -STABLE for me, for
the bus part. Not getting the devices below it, and doing a scan
on /usr/src/sys for an mmc tunable leaves me with arm/at91. Relevant output
after kldload sdmmc:
# pciconf -vl|egrep -A2 '^(sd|none)'
sdshc0 at pci7:5:1: class=0x080500 card=0x30bb103c chip=0x08221180
rev=0x19 hdr=0x00
vendor = 'Ricoh Co Ltd'
device = 'SD Bus Host Adapter'
--
none2 at pci7:5:2: class=0x088000 card=0x30bb103c chip=0x08431180 rev=0x01
hdr=0x00
vendor = 'Ricoh Co Ltd'
class = base peripheral
none3 at pci7:5:3: class=0x088000 card=0x30bb103c chip=0x05921180 rev=0x0a
hdr=0x00
vendor = 'Ricoh Co Ltd'
device = 'Memory Stick Bus Host Adapter'
--
none4 at pci7:5:4: class=0x088000 card=0x30bb103c chip=0x08521180 rev=0x05
hdr=0x00
vendor = 'Ricoh Co Ltd'
class = base peripheral
FYI, this is a HP Pavilion.
--
Mel
More information about the freebsd-mobile
mailing list