From owner-freebsd-net@FreeBSD.ORG Fri Jan 14 00:22:05 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E64C216A4CE; Fri, 14 Jan 2005 00:22:05 +0000 (GMT) Received: from one.valcatohosting.com (one.valcatohosting.com [67.19.219.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB7C343D1D; Fri, 14 Jan 2005 00:22:05 +0000 (GMT) (envelope-from adam@moosoft.net) Received: from cpc3-nthc1-4-0-cust42.nrth.cable.ntl.com ([213.107.150.42] helo=[192.168.1.100]) by one.valcatohosting.com with esmtpa (Exim 4.43) id 1CpA8a-00040z-4K; Thu, 13 Jan 2005 18:56:05 +0000 Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <03FAB198-6595-11D9-96E8-000D93B7419E@moosoft.net> Content-Transfer-Encoding: 7bit From: Adam McMaster Date: Thu, 13 Jan 2005 18:57:47 +0000 To: freebsd-net@freebsd.org, freebsd-hardware@freebsd.org X-Mailer: Apple Mail (2.619) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - one.valcatohosting.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - moosoft.net X-Source: X-Source-Args: X-Source-Dir: Subject: if_ndis with custom CPUTYPE X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 00:22:06 -0000 Hey, I've recently had a confusing problem using the NDIS modules and thought it might be of interest to someone. On Sunday I decided to update to the latest RELENG_5_3, since there have been some patches since the initial release. Everything seemed to work perfectly after everything was rebuilt and installed, until the next morning when I discovered that the PC was no longer able to connect to my wireless network. I'm still not sure exactly what the problem was, all I can say is that I never got an "ndis0: link up" message. After some thinking, I realised that I had customised the CPUTYPE and CFLAGS variables in make.conf since last time I built FreeBSD, and after some experimenting I managed to get it to work by rebuilding the ndis and if_ndis modules without the CPUTYPE variable set. So my assumption is that something GCC did with the CPUTYPE variable broke the ndis modules (or at least one of them). Interestingly, the card continued to work after a reboot. It was only after the PC was actually powered off (i.e. when I went to bed that night) and powered back on that the problem occurred. If it helps, the card is a Belkin F5D6020 ver 3, and I'm using the rtl8180 driver (available from the RealTek web site). In make.conf I had CPUTYPE=athlon, and here is the output of uname -a: FreeBSD phoenix 5.3-RELEASE-p4 FreeBSD 5.3-RELEASE-p4 #0: Sun Jan 9 17:10:20 GMT 2005 root@phoenix:/usr/obj/usr/src/sys/GENERIC i386 That's all I've got to say; hopefully this can be helpful to someone in the future. -- - Adam McMaster