From owner-freebsd-current@FreeBSD.ORG Wed Nov 23 16:16:15 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C055616A41F for ; Wed, 23 Nov 2005 16:16:15 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07C3F43D69 for ; Wed, 23 Nov 2005 16:16:14 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by smtp1-g19.free.fr (Postfix) with ESMTP id 37C6B5E2BB for ; Wed, 23 Nov 2005 17:16:06 +0100 (CET) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id B672E4085; Wed, 23 Nov 2005 17:15:50 +0100 (CET) Date: Wed, 23 Nov 2005 17:15:50 +0100 From: Jeremie Le Hen To: freebsd-current@FreeBSD.org Message-ID: <20051123161550.GE1010@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Cc: Subject: Lasted NDIS wrapper for D-Link DWL-520+ on RELENG_6 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2005 16:16:15 -0000 Hi, I'm trying to use my PCI Wireless card with NDISulator from Bill Paul. I have tried to gather as much details as possible browsing through recent wpaul's posts, I hope this will be enough. If misfortune made me forget some details, I apologize for it and please, be indulgent and ask them. I'm running RELENG_6 from the beginning of november 7th, but I checked out src/sys/compat/ndis/ and src/sys/dev/if_ndis/ from HEAD. The system is a generic single Pentium IV (therefore, no SMP in kernel). The full non-verbose dmesg is available here : http://jeremie.le-hen.org/~tataz/dmesg.OBIWAN The card I bought is a D-Link DWL-520+, based on the T.I. chipset. Here is the output of pciconf(8) : % none0@pci0:8:0: class=0x028000 card=0x3b041186 chip=0x9066104c rev=0x00 hdr=0x00 % vendor = 'Texas Instruments (TI)' % device = 'TNETW1130(ACX111) 802.11b/g Wireless Cardbus/PCI Adapter' % class = network I'm trying to use the lastest driver for this card provided by D-Link : ftp://ftp.dlink.com/Wireless/dwl520+/Driver/dwl520+_drivers_307.zip I have to say that I'm quite puzzled by the fact that there seem to be multiple versions of the DWL-520+ card (at least two, one with an Atheros chipset and one with a T.I. chipset) but strangely there is only one driver. Even stranger, the Drivers/WinXP/ directory contains only one .SYS file. I guess there must be some magic in it. I've generated the driver using ndisgen(8) : % cd drivers/dwl520+_drivers_307/Drivers/WinXP/ % ndisgen AIRPLUS.INF AIRPLUS.SYS At this stage, I gave all .BIN files in turn as firmware files as I don't know which one are useful. % cp AIRPLUS_SYS.ko WLANGEN.bin.ko RADIO0d.BIN.ko RADIO11.BIN.ko RADIO15.BIN.ko /boot/kernel/ % cd /sys/modules/ndis/ % make && make install Then, I tried to load AIRPLUS_SYS.ko in conjunction with WLANGEN.bin.ko alone first, and then I loaded RADIO*.bin.ko, but the dmesg didn't showed any additional device probe but : % warning: KLD '/boot/kernel/AIRPLUS_SYS.ko' is newer than the linker.hints file And ndis0 didn't appear obviously. Note that I didn't tried to load those modules from loader since I read it is generally a bad idea because NDIS drivers assume the OS is fully initialized, which is obviously not the case when loading modules from the loader. As a side note, the acx(4) driver from Darron Broad doesn't handle ACX111 chips, unfortunately, therefore this is not an option for me (anyway ISTR that it doesn't compile on RELENG_6 due to kernel internal networking interface change). Thank you. Best regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >