From owner-freebsd-mobile@FreeBSD.ORG Sat Sep 15 20:19:24 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 2DC1916A420 for ; Sat, 15 Sep 2007 20:19:24 +0000 (UTC) (envelope-from fbsd.mobile@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (66-230-99-27-cdsl-rb1.nwc.acsalaska.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 7C7EB13C46E for ; Sat, 15 Sep 2007 20:19:23 +0000 (UTC) (envelope-from fbsd.mobile@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 7E1A71CC97 for ; Sat, 15 Sep 2007 12:19:21 -0800 (AKDT) From: Mel To: freebsd-mobile@freebsd.org Date: Sat, 15 Sep 2007 22:19:19 +0200 User-Agent: KMail/1.9.7 References: <46EBF2C5.60708@mail.ru> In-Reply-To: <46EBF2C5.60708@mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709152219.19698.fbsd.mobile@rachie.is-a-geek.net> Subject: Re: SD/MMC (ricoh) reader on Thinkpad T61 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2007 20:19:24 -0000 On Saturday 15 September 2007 16:57:09 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? > > I managed to compile code from sdmmc-20070627.tar.gz on 7-CURRENT with > > 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 = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET|INTR_MPSAFE , > : - sdshc_intr, sc, &sc->ih); > : + NULL, sdshc_intr, sc, &sc->ih); > : if (error != 0) { > : MSG((dev, "could not set up interrupt\n")); > : goto cleanup; > > 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 kldload searches for `sysctl kern.module_path`$argv[1] and yes, the error message misleading. Just use "kldload sdmmc", if it's still not found, check the above sysctl if /boot/modules is in there and add it if not. -- Mel