From owner-freebsd-questions@FreeBSD.ORG Mon Nov 20 22:35:02 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BCA3F16A47B for ; Mon, 20 Nov 2006 22:35:02 +0000 (UTC) (envelope-from lane@joeandlane.com) Received: from elasmtp-dupuy.atl.sa.earthlink.net (elasmtp-dupuy.atl.sa.earthlink.net [209.86.89.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB6E343D7D for ; Mon, 20 Nov 2006 22:34:33 +0000 (GMT) (envelope-from lane@joeandlane.com) Received: from [66.47.111.183] (helo=joeandlane.com) by elasmtp-dupuy.atl.sa.earthlink.net with asmtp (Exim 4.34) id 1GmHj1-0006jc-BA; Mon, 20 Nov 2006 17:34:51 -0500 Received: from joeandlane.com (localhost.localnet.local [127.0.0.1]) by joeandlane.com (8.13.8/8.13.1) with ESMTP id kAKMbnRb086025; Mon, 20 Nov 2006 16:37:49 -0600 (CST) (envelope-from lane@joeandlane.com) Received: from localhost (localhost [[UNIX: localhost]]) by joeandlane.com (8.13.8/8.13.1/Submit) id kAKMbnPd086024; Mon, 20 Nov 2006 16:37:49 -0600 (CST) (envelope-from lane@joeandlane.com) From: Lane To: freebsd-questions@freebsd.org, Nathan Vidican Date: Mon, 20 Nov 2006 16:37:48 -0600 User-Agent: KMail/1.9.3 References: <45622121.10409@vidican.com> In-Reply-To: <45622121.10409@vidican.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611201637.49374.lane@joeandlane.com> X-CD-SOLUTIONS-MailScanner-Information: Please contact the ISP for more information X-CD-SOLUTIONS-MailScanner: Found to be clean X-CD-SOLUTIONS-MailScanner-From: lane@joeandlane.com X-ELNK-Trace: e56a4b6ca9bdfda11aa676d7e74259b7b3291a7d08dfec796d1713bd4b7d3107134d1ebd68b706ee350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 66.47.111.183 Cc: Subject: Re: Broadcom BCM4318 / HP Pavilion dv8000 via ndiswrapper not working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Nov 2006 22:35:02 -0000 On Monday 20 November 2006 15:41, Nathan Vidican wrote: > : > > uname -a: > FreeBSD nv-laptop.wmptl.net 6.2-RC1 FreeBSD 6.2-RC1 #0: Fri Nov 17 > 10:46:22 EST 2006 > root@nv-laptop.wmptl.net:/usr/src/sys/amd64/compile/nv1 amd64 > > Ok, so I have the Windows 64-bit driver files for my card, I ran > ndisgen, without any errors and produced 'bcmwl564_sys.ko'. I place the > file in /boot/modules, and can load it just fine using kldload. No > errors, but also no output whatsoever into dmesg nor on the console. > > I set the module to load at bootup, (even though it as of yet doesn't > work), and when I reboot kldstat produces: > > nv-laptop# kldstat > Id Refs Address Size Name > 1 16 0xffffffff80100000 6071c8 kernel > 2 1 0xffffffff80708000 886e8 bcmwl564_sys.ko > 3 3 0xffffffff80791000 25fe0 ndis.ko > 4 2 0xffffffff807b7000 10510 if_ndis.ko > 5 1 0xffffffffa7813000 1059 daemon_saver.ko > 6 1 0xffffffffa788d000 1d175 radeon.ko > 7 1 0xffffffffa78ab000 d7d7 drm.ko > > > So, it took the module, it's loaded, but the card isn't detected... the > card is a Broadcom BCM4318, and it is reported from pciconf -lv as below: > > none3@pci6:2:0: class=0x028000 card=0x1358103c chip=0x431914e4 rev=0x02 > hdr=0x00 > vendor = 'Broadcom Corporation' > class = network > > I suspect the issue to have something to do with the wireless on/off > button located under the center of the screen. This button (afaik) > enables/disabled the wireless and bluetooth interface from within > windows. With the bluetooth interface enabled, I get debug messages sent > through dmesg regarding ugen on/off. With the bluetooth interface > disabled (from the bios), pressing the button (apparently) does nothing > under FreeBSD. Again, I suspect that this button somehow ties into power > management via ACPI to turn on/off the wireless card, but I lack the > experience to further diagnose/prove the issue. > > > : > > How do I probe, list, or otherwise display the possible ACPI 'devices' > (ie buttons) ? I've been somewhere before where I could see the buttons > on a filesystem-like device, but cannot remember how to get back there. > More importantly, how do I see the status or availability of the button > for wireless on/off? > > Can I run a debugger on the ndis-generated kernel module and watch or > otherwise step through it's code? - Even if this requires recompiling > with support for gdb, could this not shed some light as to weathermy > problem is related to an incorrect driver, or to binding the driver to a > device? > > Is there a more appropriate list where I should post these comments to, > perhaps somewhere to get in touch with someone developing/working on the > ndis-wrapper stuff? > > I am by no means a kernel hacker yet, and have a lot to learn as far as > debugging code and/or working with gcc and associated tools... but I am > familiar with code; a programmer by trade just new to the world of gcc > and kind of green with the tools therein associated. However, I am > willing and wanting to help if I can and in any way I can. I have been > googling the heck out of this and have found far more questions than > answers from others having problems with the same card... so rather than > add to the whining, I'd love to help fix things for everyone - just > point me where to go/read/do next if you will :) > > -- > Nathan Vidican > nathan@vidican.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Nathan, I've got a similar card on my laptop, which pciconf only knows as vendor = 'Broadcom Corporation' class = network It works properly in windows with the shipped drivers, but I've yet to get it to work in FreeBSD 6.1. A couple of folks have suggested using various drivers, downloadable from the DELL site, and have even given me specific filenames to download. However, no combination of drivers and "ndisgen" seems to yield a workable kernel module for me, and I've never been able to have "ifconfig -a" report the ndis0 interface (although it does see something called fwi0). Frankly I gave up on it. If you come up with a solution, by all means please share it with the list. While wireless ain't exactly "cutting edge," knowledge about it seems to be much more diffuse than with other features of FreeBSD - or perhaps the technology is much more hardware-specific than with other pieces of equipment ... lane