From owner-freebsd-mobile@FreeBSD.ORG Sun Sep 16 08:19:07 2007 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADDFE16A418 for ; Sun, 16 Sep 2007 08:19:07 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.ipv6.0x20.net [IPv6:2001:aa8:fffb::3]) by mx1.freebsd.org (Postfix) with ESMTP id 3CFA913C467 for ; Sun, 16 Sep 2007 08:19:07 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: by mail.0x20.net (Postfix, from userid 1002) id 3A4C13A54F; Sun, 16 Sep 2007 10:19:05 +0200 (CEST) Date: Sun, 16 Sep 2007 10:19:05 +0200 From: Lars Engels To: Pankov Pavel , freebsd-mobile@freebsd.org, lists@swaggi.com Message-ID: <20070916081905.GP30704@e.0x20.net> References: <46EBF2C5.60708@mail.ru> <20070916034622.GC927@in-addr.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z4IKABJTiQIqPwmW" Content-Disposition: inline In-Reply-To: <20070916034622.GC927@in-addr.com> X-Editor: VIM - Vi IMproved 7.1 X-Operation-System: FreeBSD 5.5-RELEASE User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: Subject: Re: SD/MMC (ricoh) reader on Thinkpad T61 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lars Engels List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2007 08:19:07 -0000 --z4IKABJTiQIqPwmW Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 15, 2007 at 11:46:22PM -0400, Gary Palmer wrote: > On Sat, Sep 15, 2007 at 06:57:09PM +0400, Pankov Pavel wrote: > > >I tried "make depend" but got the same results. I thought the driver > > >would work on -CURRENT, at least that was my impression. Has anyone > > >else tried it on current? > >=20 > > I managed to compile code from sdmmc-20070627.tar.gz on 7-CURRENT with= =20 > > the help of this simple patch: > > : --- dev/sdmmc/sdshc.c~ 2007-06-25 14:25:52.000000000 +0400 > > : +++ dev/sdmmc/sdshc.c 2007-09-15 18:14:20.000000000 +0400 > > : @@ -343,7 +343,7 @@ > > : */ > > : LOG(0x10, (dev, "Setup Intr\n")); > > : error =3D bus_setup_intr(dev, sc->irq, INTR_TYPE_NET|INTR_MPSAFE= , > > : - sdshc_intr, sc, &sc->ih); > > : + NULL, sdshc_intr, sc, &sc->ih); > > : if (error !=3D 0) { > > : MSG((dev, "could not set up interrupt\n")); > > : goto cleanup; > >=20 > > Unfortunately, I can't load the resulting module: > > : pankbook# kldload -v /boot/modules/sdmmc.ko > > : kldload: can't load /boot/modules/sdmmc.ko: No such file or directory > > Such file definitely exists: > > : pankbook# ls -l /boot/modules/sdmmc.ko > > : -r-xr-xr-x 1 root wheel 48953 Sep 15 18:41 /boot/modules/sdmmc.ko > >=20 > > I think this error is related to non-existent sdmmc.ko.symbols file=20 > > (every .ko file in my /boot/kernel has corresponding .ko.symbols, but= =20 > > sdmmc doesn't). I'm not familiar with kernel modules, so I don't know= =20 > > how to solve this issue. But I'm ready to test any ideas :) >=20 > Check dmesg and/or /var/log/messages. Quite often "No such file or > directory" means that the kernel returned ENOENT. This typically > happens due to a failure in the in-kernel linker due to a symbol > not being found in the kernel that the module requires. dmesg will > show any kernel linker message and help you debug the issue. I just tried it on my current box and dmesg tells me: link_elf: symbol bus_space_write_1 undefined --z4IKABJTiQIqPwmW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFG7Ob5Kc512sD3afgRArUCAKCOwTiuz2348WXNCATW/i0EHXsRfQCcCztP lAebJbnVUDSJ1eXz1UdCf3U= =WFY5 -----END PGP SIGNATURE----- --z4IKABJTiQIqPwmW--