From owner-freebsd-mobile@FreeBSD.ORG Sun Sep 16 03:46:25 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 CEC0D16A418 for ; Sun, 16 Sep 2007 03:46:25 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (unknown [IPv6:2001:5c0:8fff:fffe::214d]) by mx1.freebsd.org (Postfix) with ESMTP id 8D42513C442 for ; Sun, 16 Sep 2007 03:46:25 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by noop.in-addr.com with local (Exim 4.54 (FreeBSD)) id 1IWl5S-0005Rt-7X; Sat, 15 Sep 2007 23:46:22 -0400 Date: Sat, 15 Sep 2007 23:46:22 -0400 From: Gary Palmer To: Pankov Pavel Message-ID: <20070916034622.GC927@in-addr.com> Mail-Followup-To: Pankov Pavel , freebsd-mobile@freebsd.org, lists@swaggi.com References: <46EBF2C5.60708@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46EBF2C5.60708@mail.ru> Cc: lists@swaggi.com, freebsd-mobile@freebsd.org 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: Sun, 16 Sep 2007 03:46:25 -0000 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? > > 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 > > I think this error is related to non-existent sdmmc.ko.symbols file > (every .ko file in my /boot/kernel has corresponding .ko.symbols, but > sdmmc doesn't). I'm not familiar with kernel modules, so I don't know > how to solve this issue. But I'm ready to test any ideas :) 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. 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-- From owner-freebsd-mobile@FreeBSD.ORG Sun Sep 16 14:47:01 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 0435516A41A for ; Sun, 16 Sep 2007 14:47:01 +0000 (UTC) (envelope-from pankov_p@mail.ru) Received: from mx34.mail.ru (mx38.mail.ru [194.67.23.34]) by mx1.freebsd.org (Postfix) with ESMTP id 6DE7413C46C for ; Sun, 16 Sep 2007 14:46:57 +0000 (UTC) (envelope-from pankov_p@mail.ru) Received: from [88.84.200.94] (port=29786 helo=[172.16.1.21]) by mx34.mail.ru with asmtp id 1IWvOE-000K6Y-00; Sun, 16 Sep 2007 18:46:26 +0400 From: Pankov Pavel Organization: MPEI To: Gary Palmer Date: Sun, 16 Sep 2007 18:45:52 +0400 User-Agent: KMail/1.9.7 References: <46EBF2C5.60708@mail.ru> <20070916034622.GC927@in-addr.com> In-Reply-To: <20070916034622.GC927@in-addr.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200709161845.54120.pankov_p@mail.ru> Cc: lists@swaggi.com, freebsd-mobile@freebsd.org 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: Sun, 16 Sep 2007 14:47:01 -0000 On Sunday 16 September 2007 07:46:22 Gary Palmer wrote: > On Sat, Sep 15, 2007 at 06:57:09PM +0400, Pankov Pavel wrote: > [...] > > 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 > > > > I think this error is related to non-existent sdmmc.ko.symbols file > > (every .ko file in my /boot/kernel has corresponding .ko.symbols, but > > sdmmc doesn't). I'm not familiar with kernel modules, so I don't know > > how to solve this issue. But I'm ready to test any ideas :) > > 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. You are absolutely right! Thanks for the pointer! For archives the error was: : link_elf: symbol bus_space_write_1 undefined With the following patch (+ the one from my previous mail) I can successfully kldload the module: : --- sdmmc-20070627/dev/sdmmc/sdshc.c 2007-06-25 14:25:52.000000000 +0400 : +++ sdmmc-20070627-fixed/dev/sdmmc/sdshc.c 2007-09-16 15:44:29.000000000 +0400 : @@ -46,6 +46,8 @@ : #include : #include : : +#include : + : #include "sdbus_if.h" : : int sdshc_timeout_interval = 0; : --- sdmmc-20070627/dev/sdmmc/sdshcbus.c 2007-06-19 21:42:28.000000000 +0400 : +++ sdmmc-20070627-fixed/dev/sdmmc/sdshcbus.c 2007-09-16 16:42:39.000000000 : +0400 : @@ -42,6 +42,8 @@ : #include : #include : : +#include : + : #include "sdbus_if.h" : : It successfully attaches the bus, but inserting the card leads to various panics. I tried fixing some panics (it's easier with WITNESS-enabled kernel). Here is what I got: : --- sdmmc-20070627/dev/sdmmc/sdshc.c 2007-06-25 14:25:52.000000000 +0400 : +++ sdmmc-20070627-fixed/dev/sdmmc/sdshc.c 2007-09-16 15:44:29.000000000 +0400 : @@ -453,7 +455,9 @@ : if (children[cnt] != NULL) { : slot = device_get_unit(children[cnt]) + sc->slot_base; : if ((slot_intr_status & (1UL << slot)) != 0) { : + SD_UNLOCK(sc); : SDBUS_INTR(children[cnt]); : + SD_LOCK(sc); : } : } : } : @@ -614,7 +618,7 @@ : if ((SDSHC_READ1(sc, RESET) & SDSHC_HSR_RESET_MASK) == 0) { : return 0; : } : - msleep(sc, &sc->mtx, PPAUSE, "sdshc_reset", sdshc_polling_interval); : + SD_SLEEP(sc, PPAUSE, "sdshc_reset", sdshc_polling_interval); : } : /* : MSG((sc->dev, "Controller reset failure\n")); : --- sdmmc-20070627/dev/sdmmc/sdshcbus.c 2007-06-19 21:42:28.000000000 +0400 : +++ sdmmc-20070627-fixed/dev/sdmmc/sdshcbus.c 2007-09-16 16:42:39.000000000 +0400 : @@ -836,8 +838,8 @@ : " but status is not changed; ignored\n")); : } else { : if (card_state) { : - tsleep(sc, PPAUSE, "sdshcbus_event_card_insertion", : - sdshc_wait_after_insertion); : + //tsleep(sc, PPAUSE, "sdshcbus_event_card_insertion", : + // sdshc_wait_after_insertion); : if ((card_state = sdshcbus_check_card_inserted(sc))) { : LOG(0x08, (sc->dev, "Card Insertion detected\n")); : taskqueue_enqueue_fast(taskqueue_fast, &sc->attach_task); But after this changes I'm stuck with panics related to the driver trying to sleep in interrupt handler (dump aviable). Let me know if you have any ideas how to fix it. From owner-freebsd-mobile@FreeBSD.ORG Sun Sep 16 18:21:47 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 4B09116A468 for ; Sun, 16 Sep 2007 18:21:47 +0000 (UTC) (envelope-from tjw43@drexel.edu) Received: from smtp.mail.drexel.edu (pm1.irt.drexel.edu [144.118.29.81]) by mx1.freebsd.org (Postfix) with ESMTP id 2E92913C4A5 for ; Sun, 16 Sep 2007 18:21:47 +0000 (UTC) (envelope-from tjw43@drexel.edu) Received: from smtp.mail.drexel.edu (localhost.localdomain [127.0.0.1]) by smtp.mail.drexel.edu (Postfix) with SMTP id 6D98422610C for ; Sun, 16 Sep 2007 13:56:07 -0400 (EDT) X-No-SMTP-Auth: unauthenticated sender Received: from carlsbad.irt.drexel.edu (carlsbad.irt.drexel.edu [144.118.30.202]) by smtp.mail.drexel.edu (Postfix) with SMTP id 5D103225F42 for ; Sun, 16 Sep 2007 13:56:07 -0400 (EDT) Message-ID: <1821937.1189965367114.JavaMail.tjw43@drexel.edu> Date: Sun, 16 Sep 2007 13:56:07 -0400 (EDT) From: Terrence Wilson To: freebsd-mobile@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: help!! trying to convert wireless card driver 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: Sun, 16 Sep 2007 18:21:47 -0000 I need whatever help I can get using ndis to converter a wireless nic so I can use it on my laptop. it seems that I don't have iconv working properly. I go into the ndisgen program by typing the command: # ndisgen The program opens and gives a list of options. I choose option 3: Convert driver. The program then asks me to type in the path to the .inf file. So I type: /cdrom/DRIVER/bcmwl5.inf The program then says "This .INF file appears to be in Unicode. The iconv(1) utility does not appear to be installed. Please install this utility or convert the .INF file to ASCII and run this utility." So, I downloaded the iconv-2.0_3.tbz package and run the command: # pkg_add iconv-2.0_3.tbz Then I try ndisgen again and I get the above error message again. When I type in the command # pkg_info -L iconv-2.0_3 | less I get a list of files including biconv, iconv_mktbl, biconv.h, etc. But when I enter the command: # iconv I get the message: Command not found. From owner-freebsd-mobile@FreeBSD.ORG Sun Sep 16 18:51:21 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 1C6C016A480 for ; Sun, 16 Sep 2007 18:51:21 +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 EAA0D13C45E for ; Sun, 16 Sep 2007 18:51:20 +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 2628C1CDEE for ; Sun, 16 Sep 2007 10:51:20 -0800 (AKDT) From: Mel To: freebsd-mobile@freebsd.org Date: Sun, 16 Sep 2007 20:51:16 +0200 User-Agent: KMail/1.9.7 References: <1821937.1189965367114.JavaMail.tjw43@drexel.edu> In-Reply-To: <1821937.1189965367114.JavaMail.tjw43@drexel.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709162051.18180.fbsd.mobile@rachie.is-a-geek.net> Subject: Re: help!! trying to convert wireless card driver 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: Sun, 16 Sep 2007 18:51:21 -0000 On Sunday 16 September 2007 19:56:07 Terrence Wilson wrote: > I need whatever help I can get using ndis to converter a wireless nic > so I can use it on my laptop. it seems that I don't have iconv working > properly. I go into the ndisgen program by typing the command: > > # ndisgen > > The program opens and gives a list of options. I choose option 3: > Convert driver. The program then asks me to type in the path to the > .inf file. So I type: > > /cdrom/DRIVER/bcmwl5.inf > > The program then says "This .INF file appears to be in Unicode. The > iconv(1) utility does not appear to be installed. Please install this > utility or convert the .INF file to ASCII and run this utility." > > So, I downloaded the iconv-2.0_3.tbz package and run the command: > > # pkg_add iconv-2.0_3.tbz That's the wrong package, you will need libiconv-1.9.2_2. I know, it's confusing, I have no idea why the iconv package is still in ports. -- Mel From owner-freebsd-mobile@FreeBSD.ORG Sun Sep 16 22:59:23 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 B1F0116A41B for ; Sun, 16 Sep 2007 22:59:23 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from rusty.swaggy.net (rusty.swaggy.net [204.14.85.196]) by mx1.freebsd.org (Postfix) with ESMTP id 9735813C458 for ; Sun, 16 Sep 2007 22:59:23 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from localhost ([127.0.0.1] helo=swaggi.com) by rusty.swaggy.net with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IX2zc-0003zi-VQ; Sun, 16 Sep 2007 18:53:34 -0400 From: "Yuri Lukin" To: Pankov Pavel ,Gary Palmer Date: Sun, 16 Sep 2007 18:53:32 -0400 Message-Id: <20070916225050.M75174@swaggi.com> In-Reply-To: <200709161845.54120.pankov_p@mail.ru> References: <46EBF2C5.60708@mail.ru> <20070916034622.GC927@in-addr.com> <200709161845.54120.pankov_p@mail.ru> X-Mailer: swaggi.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: freebsd-mobile@freebsd.org 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: Sun, 16 Sep 2007 22:59:23 -0000 On Sun, 16 Sep 2007 18:45:52 +0400, Pankov Pavel wrote > > But after this changes I'm stuck with panics related to the driver > trying to sleep in interrupt handler (dump aviable). Let me know if > you have any ideas how to fix it. This is great progress towards a working driver. Warner Losh reported in his blog that Ricoh chipset works but not sure which driver he was using: http://bsdimp.blogspot.com/2007/05/sdmmc.html Maybe we should copy freebsd-current list for a wider audience? Thanks, Yuri From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 18 15:19:44 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 A5FE316A418 for ; Tue, 18 Sep 2007 15:19:44 +0000 (UTC) (envelope-from tjw43@drexel.edu) Received: from smtp.mail.drexel.edu (pm1.irt.drexel.edu [144.118.29.81]) by mx1.freebsd.org (Postfix) with ESMTP id 880A613C458 for ; Tue, 18 Sep 2007 15:19:44 +0000 (UTC) (envelope-from tjw43@drexel.edu) Received: from smtp.mail.drexel.edu (localhost.localdomain [127.0.0.1]) by smtp.mail.drexel.edu (Postfix) with SMTP id 159BD225E9F for ; Tue, 18 Sep 2007 11:19:37 -0400 (EDT) X-No-SMTP-Auth: unauthenticated sender Received: from capitolreef.irt.drexel.edu (capitolreef.irt.drexel.edu [144.118.30.201]) by smtp.mail.drexel.edu (Postfix) with SMTP id 01E47225E27 for ; Tue, 18 Sep 2007 11:19:37 -0400 (EDT) Message-ID: <4953180.1190128776835.JavaMail.tjw43@drexel.edu> Date: Tue, 18 Sep 2007 11:19:36 -0400 (EDT) From: Terrence Wilson To: freebsd-mobile@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: need help!!! nic driver not working. 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: Tue, 18 Sep 2007 15:19:44 -0000 My notebook has a Dell Wireless 1930 WLAN nic and I was able to convert the driver for my wireless card using ndisgen. It created a kernel called bcmwl5_sys.ko in the /root folder. I entered: # kldload bcmwl5_sys.ko Then I entered: # kldload ndis # kldload if_ndis However, when I enter: # dmesg No sign of the wireless nic appears. When I enter: # kldstat The bcmwl5_sys,ko, if_ndis.ko and ndis.ko modules come up as loaded, along with the kernel. Does this mean that the coverted drivers are not working on my machine? Or is there something else I need to do? From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 18 18:12:27 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 6E4F416A417; Tue, 18 Sep 2007 18:12:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 29D4313C45B; Tue, 18 Sep 2007 18:12:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.13.4) with ESMTP id l8IIAsCF030139; Tue, 18 Sep 2007 12:10:55 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 18 Sep 2007 12:11:08 -0600 (MDT) Message-Id: <20070918.121108.179960864.imp@bsdimp.com> To: lists@swaggi.com From: "M. Warner Losh" In-Reply-To: <20070916225050.M75174@swaggi.com> References: <20070916034622.GC927@in-addr.com> <200709161845.54120.pankov_p@mail.ru> <20070916225050.M75174@swaggi.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 18 Sep 2007 12:10:55 -0600 (MDT) Cc: pankov_p@mail.ru, freebsd-mobile@freebsd.org 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: Tue, 18 Sep 2007 18:12:27 -0000 In message: <20070916225050.M75174@swaggi.com> "Yuri Lukin" writes: : On Sun, 16 Sep 2007 18:45:52 +0400, Pankov Pavel wrote : > : > But after this changes I'm stuck with panics related to the driver : > trying to sleep in interrupt handler (dump aviable). Let me know if : > you have any ideas how to fix it. : : This is great progress towards a working driver. Warner Losh reported in his : blog that Ricoh chipset works but not sure which driver he was using: : : http://bsdimp.blogspot.com/2007/05/sdmmc.html : : Maybe we should copy freebsd-current list for a wider audience? There are two different drivers for SD/MMC right now. The one that I wrote, which sorbo wrote a driver for the laptop bridges and the one that umemoto-san has written about (authored by gotanda-san). Sorbo's driver works well on Ricoh based bridges, but fails for TI based ones. Gotanda-san's driver has a little more support for TI bridges that he's done in response to my testing. I still owe him some testing on his driver. The down side of Gotanda-san's driver is that it doesn't integrate into the sd/mmc infrastructure that's currently in the tree. In other words: I'm working on it but have limited time to make progress. Warner From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 18 18:35:28 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 20DFB16A417 for ; Tue, 18 Sep 2007 18:35:28 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from rusty.swaggy.net (rusty.swaggy.net [204.14.85.196]) by mx1.freebsd.org (Postfix) with ESMTP id ECF3013C49D for ; Tue, 18 Sep 2007 18:35:27 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from localhost ([127.0.0.1] helo=swaggi.com) by rusty.swaggy.net with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IXhp8-00078u-LH; Tue, 18 Sep 2007 14:29:28 -0400 From: "Yuri Lukin" To: "M. Warner Losh" Date: Tue, 18 Sep 2007 14:29:26 -0400 Message-Id: <20070918182745.M67370@swaggi.com> In-Reply-To: <20070918.121108.179960864.imp@bsdimp.com> References: <20070916034622.GC927@in-addr.com> <200709161845.54120.pankov_p@mail.ru> <20070916225050.M75174@swaggi.com> <20070918.121108.179960864.imp@bsdimp.com> X-Mailer: swaggi.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: freebsd-mobile@freebsd.org 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: Tue, 18 Sep 2007 18:35:28 -0000 On Tue, 18 Sep 2007 12:11:08 -0600 (MDT), M. Warner Losh wrote > There are two different drivers for SD/MMC right now. The one that I > wrote, which sorbo wrote a driver for the laptop bridges and the one > that umemoto-san has written about (authored by gotanda-san). > Sorbo's driver works well on Ricoh based bridges, but fails for TI > based ones. Gotanda-san's driver has a little more support for TI > bridges that he's done in response to my testing. I still owe him > some testing on his driver. The down side of Gotanda-san's driver > is that it doesn't integrate into the sd/mmc infrastructure that's > currently in the tree. > > In other words: I'm working on it but have limited time to make > progress. > > Warner Thanks for the clarification. Since I have a Ricoh part, then I should expect the existing mmc driver that's in the tree already to work, yes? Yuri From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 18 19:32:51 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 88ABE16A419 for ; Tue, 18 Sep 2007 19:32:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 454EF13C47E for ; Tue, 18 Sep 2007 19:32:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.1/8.13.4) with ESMTP id l8IJVL8F032454; Tue, 18 Sep 2007 13:31:21 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 18 Sep 2007 13:31:35 -0600 (MDT) Message-Id: <20070918.133135.-890726206.imp@bsdimp.com> To: lists@swaggi.com From: "M. Warner Losh" In-Reply-To: <20070918182745.M67370@swaggi.com> References: <20070916225050.M75174@swaggi.com> <20070918.121108.179960864.imp@bsdimp.com> <20070918182745.M67370@swaggi.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 18 Sep 2007 13:31:21 -0600 (MDT) Cc: freebsd-mobile@FreeBSD.org 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: Tue, 18 Sep 2007 19:32:51 -0000 In message: <20070918182745.M67370@swaggi.com> "Yuri Lukin" writes: : On Tue, 18 Sep 2007 12:11:08 -0600 (MDT), M. Warner Losh wrote : > There are two different drivers for SD/MMC right now. The one that I : > wrote, which sorbo wrote a driver for the laptop bridges and the one : > that umemoto-san has written about (authored by gotanda-san). : > Sorbo's driver works well on Ricoh based bridges, but fails for TI : > based ones. Gotanda-san's driver has a little more support for TI : > bridges that he's done in response to my testing. I still owe him : > some testing on his driver. The down side of Gotanda-san's driver : > is that it doesn't integrate into the sd/mmc infrastructure that's : > currently in the tree. : > : > In other words: I'm working on it but have limited time to make : > progress. : > : > Warner : : Thanks for the clarification. Since I have a Ricoh part, then I should expect : the existing mmc driver that's in the tree already to work, yes? No. Sorbo's driver is needed for that. Warner From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 18 20:21:44 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 11A8416A418 for ; Tue, 18 Sep 2007 20:21:44 +0000 (UTC) (envelope-from jthomasp@gmualumni.org) Received: from eastrmmtao106.cox.net (eastrmmtao106.cox.net [68.230.240.48]) by mx1.freebsd.org (Postfix) with ESMTP id 9B42913C478 for ; Tue, 18 Sep 2007 20:21:43 +0000 (UTC) (envelope-from jthomasp@gmualumni.org) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao101.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070918190041.JHZH27100.eastrmmtao101.cox.net@eastrmimpo01.cox.net>; Tue, 18 Sep 2007 15:00:41 -0400 Received: from [10.12.12.21] ([72.192.192.179]) by eastrmimpo01.cox.net with bizsmtp id pv0f1X00g3shpPL0000000; Tue, 18 Sep 2007 15:00:40 -0400 Message-ID: <46F02053.4030205@gmualumni.org> Date: Tue, 18 Sep 2007 15:00:35 -0400 From: "Jason P. Thomas" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Terrence Wilson References: <4953180.1190128776835.JavaMail.tjw43@drexel.edu> In-Reply-To: <4953180.1190128776835.JavaMail.tjw43@drexel.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: need help!!! nic driver not working. 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: Tue, 18 Sep 2007 20:21:44 -0000 Terrence Wilson wrote: > My notebook has a Dell Wireless 1930 WLAN nic and I was able to convert > the driver for my wireless card using ndisgen. It created a kernel > called bcmwl5_sys.ko in the /root folder. I entered: > > # kldload bcmwl5_sys.ko > > Then I entered: > > # kldload ndis > # kldload if_ndis > > However, when I enter: > > # dmesg > > No sign of the wireless nic appears. When I enter: > > # kldstat > > The bcmwl5_sys,ko, if_ndis.ko and ndis.ko modules come up as loaded, > along with the kernel. Does this mean that the coverted drivers are not > working on my machine? Or is there something else I need to do? > _______________________________________________ > freebsd-mobile@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" > > I've been fighting off and on with broadcom wifi drivers since I got my HP Pavilion dv9205us in February. I've gotten everything from kernel panics to dmesg listings for ndis0. When I did manage to get the dmesg listing for ndis0, it did me absolutely no good. ifconfig ndis0 scan didn't work and the light indicating the wifi was active never changed to blue on the laptop. I've revisited the problem several times in the intervening months and get stymied at every attempt. I level disdain in broadcom's general direction anytime I decide to mess with this wifi again. All of my attempts were using FreeBSD/amd64 as the i386 boot cd would hang almost from the get go. I know I'm not any help, but I figured I'd let you know that you are not alone in your misery. --Jay From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 18 21:01:28 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 D218D16A421 for ; Tue, 18 Sep 2007 21:01:28 +0000 (UTC) (envelope-from asstec@matik.com.br) Received: from msrv.matik.com.br (msrv.matik.com.br [200.152.83.14]) by mx1.freebsd.org (Postfix) with ESMTP id 409D013C4F0 for ; Tue, 18 Sep 2007 21:01:27 +0000 (UTC) (envelope-from asstec@matik.com.br) Received: from ap-h.matik.com.br (ap-h.matik.com.br [200.152.83.36]) by msrv.matik.com.br (8.14.1/8.13.1) with ESMTP id l8IL1TqK053244 for ; Tue, 18 Sep 2007 18:01:29 -0300 (BRT) (envelope-from asstec@matik.com.br) From: AT Matik Organization: Infomatik To: freebsd-mobile@freebsd.org Date: Tue, 18 Sep 2007 18:00:17 -0300 User-Agent: KMail/1.9.7 References: <4953180.1190128776835.JavaMail.tjw43@drexel.edu> <46F02053.4030205@gmualumni.org> In-Reply-To: <46F02053.4030205@gmualumni.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200709181800.17443.asstec@matik.com.br> X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on msrv.matik.com.br X-Virus-Status: Clean Subject: Re: need help!!! nic driver not working. 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: Tue, 18 Sep 2007 21:01:28 -0000 > > > > The bcmwl5_sys,ko, if_ndis.ko and ndis.ko modules come up as loaded, > > along with the kernel. Does this mean that the coverted drivers are not > > working on my machine? Or is there something else I need to do? > > _______________________________________________ > > freebsd-mobile@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.or= g" > > I've been fighting off and on with broadcom wifi drivers since I got my > HP Pavilion dv9205us in February. I've gotten everything from kernel > panics to dmesg listings for ndis0. When I did manage to get the dmesg > listing for ndis0, it did me absolutely no good. ifconfig ndis0 scan > didn't work and the light indicating the wifi was active never changed > to blue on the laptop. I've revisited the problem several times in the > intervening months and get stymied at every attempt. I level disdain in > broadcom's general direction anytime I decide to mess with this wifi > again. All of my attempts were using FreeBSD/amd64 as the i386 boot cd > would hang almost from the get go. I know I'm not any help, but I > figured I'd let you know that you are not alone in your misery. > well, I am not so sure if ndis is available for amd64 ... anyway, I have a bunch of Acer NBs which all use all day long the broadcom= =20 device with ndis driver look how it works well and stable: compile your kernel with aditional options NDISAPI device ndis you need device wlan also but should be the default already then convert the dirver executing ndisgen and follow the instructions copy the new module bcmwl5_sys.ko into /boot/kernel or /boot/modules then load the bcmwl5_sys.ko=20 kldload bcmwl5_sys and you should see the ndis0 interface when calling ifconfig so set the ssid and IP on it and ready to go, something like this should wo= rk ifconfig ndis0 200.1.1.10/28 ssid your_ssid up ifconfig ndis0 scan or=20 ifconfig ndis0 list ap=20 should show available APs Jo=C3=A3o A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura. Service fornecido pelo Datacenter Matik https://datacenter.matik.com.br From owner-freebsd-mobile@FreeBSD.ORG Tue Sep 18 21:21:38 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 AA33516A418 for ; Tue, 18 Sep 2007 21:21:38 +0000 (UTC) (envelope-from asstec@matik.com.br) Received: from msrv.matik.com.br (msrv.matik.com.br [200.152.83.14]) by mx1.freebsd.org (Postfix) with ESMTP id 071B213C442 for ; Tue, 18 Sep 2007 21:21:37 +0000 (UTC) (envelope-from asstec@matik.com.br) Received: from ap-h.matik.com.br (ap-h.matik.com.br [200.152.83.36]) by msrv.matik.com.br (8.14.1/8.13.1) with ESMTP id l8ILLdDL054916 for ; Tue, 18 Sep 2007 18:21:39 -0300 (BRT) (envelope-from asstec@matik.com.br) From: AT Matik Organization: Infomatik To: freebsd-mobile@freebsd.org Date: Tue, 18 Sep 2007 18:20:27 -0300 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200709181820.27686.asstec@matik.com.br> X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on msrv.matik.com.br X-Virus-Status: Clean Subject: HP DV6208 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: Tue, 18 Sep 2007 21:21:38 -0000 Anybody has this notebook and freebsd running on it with KDE?=20 Any problems? thank's Jo=E3o A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura. Service fornecido pelo Datacenter Matik https://datacenter.matik.com.br