From owner-freebsd-questions@FreeBSD.ORG Sat May 17 15:50:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96718106564A for ; Sat, 17 May 2008 15:50:09 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id 4D5DC8FC0A for ; Sat, 17 May 2008 15:50:09 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from tedtosh (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.13.8/8.13.8) with ESMTP id m4HFo54A088406; Sat, 17 May 2008 08:50:06 -0700 (PDT) (envelope-from tedm@toybox.placo.com) Message-Id: <200805171550.m4HFo54A088406@mail.freebsd-corp-net-guide.com> From: "Ted Mittelstaedt" To: "'Walter'" , "'Questions'" Date: Sat, 17 May 2008 08:50:05 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <482C96EE.1070206@earthlink.net> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Thread-Index: Aci2xsLqXzb31do0SMOFSGqUwVhJIgBbsTYA X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.freebsd-corp-net-guide.com [65.75.192.90]); Sat, 17 May 2008 08:50:07 -0700 (PDT) Cc: Subject: RE: Buffalo/Broadcom wireless N card 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: Sat, 17 May 2008 15:50:09 -0000 Just one more tip when using ndisgen, If you produce a module that is unstable, try ndisgening with an older version of the windows driver, that will work sometimes. Ted -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Walter Sent: Thursday, May 15, 2008 1:03 PM To: Questions Subject: Re: Buffalo/Broadcom wireless N card Walter wrote: > I'm trying to compile support for a wireless router into FBSD 7 > using instructions off a FBSD help page I can't locate just now. > (I'm working on building a network bridge.) > > none0@pci0:0:10:0: class=0x028000 card=0x03531154 chip=0x432914e4 > rev=0x01 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'BCM43XNG 802.11n Network Adapter' > class = network > > When it boots in the machine which has the card (I compiled > on another computer) it blows out with a kernel error (writing > not a non-existent page, I think) when the device shows up. > It shows as device bge0 but identified as BCM 5701 (iirc). > > Can someone point me in the right direction? Has anyone > gotten this card to work? > With help from the List I got this to work: The answer, maybe not the BEST answer, but the answer that works, is to use the Windows XP driver and FBSD's 'ndis'. My goal was to build a FBSD router with wireless access to my COTS wireless router to provide network access in another part of the house. Get the driver files (.sys & .inf) either from the CD that came with the card or from the Buffalo web site: http://www.buffalotech.com/support/downloads/ Then, per instructions from the Handbook (11.8.2) http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-set up.html run 'ndisgen' on the driver files: # ndisgen netg300n.inf cbg300n.sys A .ko file will be generated: cbg300n_sys.ko. It can be loaded using 'kldload ./cbg300n_sys.ko' but I wanted it loaded at boot. So, as 11.8.2 says, copy this file to /boot/modules and add the following line to /boot/loader.conf: cbg300n_sys_load="YES" Also, as I wanted WPA encryption, I added two other lines to loader.conf: wlan_ccmp_load="YES" wlan_tkip_load="YES" The wireless setup instructions are in the handbook section 29; http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.h tml Then in /etc/rc.conf add this: ifconfig_ndis0="WPA DHCP" The device 'ndis0' is created by the ndis driver when it handles a Windows driver. I guess if you have more than one Windows device and driver you get to sort out the various ndis0/1/2/3/4/5/etc. If you don't want WPA just use "DHCP" and you don't need the two extra lines above in loader.conf. For WPA you need to create the WPA config file: /etc/wpa_supplicant.conf: network={ ssid="" psk="" } Somehow, it all magically started working. (No doubt due to the hard work of many FBSD coders.) I hope I didn't leave out any major part. I'm posting this not only so other can benefit if they run into a similar problem, but in case this box burns (HD fails) I'll have a record of what I did to recreate it. Thank you again to those that helped. Walter _______________________________________________ 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"