From owner-freebsd-net@FreeBSD.ORG Sun Mar 16 16:42:36 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C665C1065670 for ; Sun, 16 Mar 2008 16:42:36 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by mx1.freebsd.org (Postfix) with ESMTP id AE10E8FC28 for ; Sun, 16 Mar 2008 16:42:36 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so5758767waf.3 for ; Sun, 16 Mar 2008 09:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=RlRqzhB/H4IfWiHMnHTYiGzT3REDa0xtH5vWKEmT5Q0=; b=Navsz8sXfl82FozUhjtiGYiTm4OfqLLkCgEdJVNSJegJiPcbE1JNmEoWraRn6oBA93oOJxMH0bMSGCMbCM+N8pHBSb5eBXoArA+VPBiqLCzE0+xQlRAaiaOdii9hsbJW9bvHMm9GiOwn+M953WfpazTpGfdQicvB9eZotFYL5h8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=YoGlgRVBUNS+QqXKkoQi1Tf4jrenu86A78O8HJiitVwyqLK5Yb32SZXhG/jQguKHQR2gBmHVKRPak/TM3nFo8IXRS///PSPYlDrxnVnMkFQSVJE/oog0Ment2ytEkBR0u4kk4fpc8kqJm2HqVf3vtF/uILZjFEfghQoLi9VzITs= Received: by 10.114.195.19 with SMTP id s19mr16024315waf.58.1205685755665; Sun, 16 Mar 2008 09:42:35 -0700 (PDT) Received: from hexidigital.org ( [24.229.62.9]) by mx.google.com with ESMTPS id i39sm9177330wxd.27.2008.03.16.09.42.31 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Mar 2008 09:42:33 -0700 (PDT) Received: from gbarber by hexidigital.org with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JavwI-0000Ei-M5; Sun, 16 Mar 2008 12:42:26 -0400 Date: Sun, 16 Mar 2008 12:42:26 -0400 From: Glen Barber To: freebsd-net@freebsd.org, freebsd-questions@freebsd.org Message-ID: <20080316164226.GA658@orion.hexidigital.org> Mail-Followup-To: freebsd-net@freebsd.org, freebsd-questions@freebsd.org References: <200803132256.01197.glen.j.barber@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Subject: Re: ndis0 no link on 6.3-RELEASE X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2008 16:42:36 -0000 Ted Mittelstaedt said: > > I just setup my laptop with a wireless card a couple weeks > ago and FreeBSD 6.3-RELEASE. (it's an older Toshiba) > > I went through a total of 5 different wireless cards before > I found one that I was able to get working ndis drivers from > ndisgen. Fortunately there's a used computer place near here > (freegeek.org) that had a box of pcmcia wireless cards of all > different makes and models, which kindly allowed me to plunk > down my laptop (which dual-boots between Windows 98 and FreeBSD) > and they have wireless. So I would pick a card out of their bin, > boot into Windows, download the Windows driver, make sure the > card worked under Windows, then boot into FreeBSD and mount > the Windows partition, copy over the Windows driver and inf > file to the FreeBSD side, run ndisgen and then try loading the > driver. > > With some cards, the driver wouldn't even activate the card. > With other cards, the driver would allow me to list the wireless > nodes then panic the system when I tried associating. > > The card that did work was a Realtek-based card. And, it did > not work with the most current Windows drivers from the Realtek > website, it worked with the Windows drivers that were from a couple > years ago. (I found this out quite by accident) > > Fortunately, they DID also have a number of the Wavelan > cards - these are supported natively with the wi0 driver - > that worked out of the box. Those cards are only 802.11b > though so I kept at it with ndisgen and the newer cards. > > The interesting thing is that the original wireless card I > had in the Toshiba - a Texas Instruments-based chipset model - > never really quite worked properly in the Toshiba under Windows. > I put it into a different laptop I owned - a Thinkpad, and > it worked great in that. > > Unfortunately, in your case, nothing has changed with ndisgen > since 2006 (see http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/ndiscvt/ ) > so it's not that, it's something else in the system that changed. > > Start with the basics. Copy your bcmwl5.ko into /boot/modules > then in loader.conf put bcmw15_load="YES" and reboot the system, > check dmesg, and see if it's even loading > > Next put in /etc/rc.conf "ifconfig_ndis0="inet 192.168.1.1 ssid myssid" > and see if it even comes up at all and you can ping out (obviously > you will have to temporairly turn off wpa on your wireless node, > set the correct ssid, and set the correct IP address to hard-code an > IP address) > > If that doesen't work, regen the bcmw15.ko file using the "old" > method: > > # cp foo.sys foo.inf /sys/modules/if_ndis > # cd /sys/modules/ndis > # make; make load > # cd /sys/modules/if_ndis > # ndiscvt -i foo.inf -s foo.sys -o ndis_driver_data.h > # make; make load > > You need to isolate the problem to see if the driver is simply > just not working at all under 6.3, or if it is working, but it's > a scripting or turnup out of sequence error. And you need to > see if wpa has anything to do with it. > Hi Ted. Thanks for the reply. Unfortunately, until I either get time to resize my hard disk and add a separate freebsd installation, or I figure out how to undo a buildworld, looks like I'm stuck. It's my school laptop, so I kind of need to get work done. ;) (I am able to run a 6.3-RELEASE kernel, but the 'world' is 6.3-RC1.) Regarding older drivers: Yes, I had this problem with my current chipset in 6.2-RELEASE. This is why I was so surprised I had problems with 6.3-RELEASE. Either way, I appreciate your response. Cheers. -- Glen Barber http://www.dev-urandom.com/