From owner-freebsd-questions@FreeBSD.ORG Wed Oct 27 15:11:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEDB516A4CF for ; Wed, 27 Oct 2004 15:11:08 +0000 (GMT) Received: from csa.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9778243D48 for ; Wed, 27 Oct 2004 15:11:08 +0000 (GMT) (envelope-from lreid@a.cs.okstate.edu) Received: by csa.cs.okstate.edu (Postfix, from userid 601) id 1CD18A0637; Wed, 27 Oct 2004 10:11:08 -0500 (CDT) To: freebsd-questions@freebsd.org Received: from 63.68.159.2 (auth. user lreid@a.cs.okstate.edu) by www.cs.okstate.edu with HTTP; Wed, 27 Oct 2004 15:11:08 +0000 X-IlohaMail-Blah: lreid@a.cs.okstate.edu X-IlohaMail-Method: mail() [mem] X-IlohaMail-Dummy: moo X-Mailer: IlohaMail/0.8.12 (On: www.cs.okstate.edu) From: Bounce-To: Errors-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Message-Id: <20041027151108.1CD18A0637@csa.cs.okstate.edu> Date: Wed, 27 Oct 2004 10:11:08 -0500 (CDT) Subject: ndis wrapper around dwl-520 rev E X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2004 15:11:09 -0000 Hello everybody, I'm starting fresh with FreeBSD 5 after my 4_STABLE system's disk ate itself, and I've been fighting with wireless adapters for a little while. I'm wondering if anyone can help me make some sense of this problem: The machine has inside it a DLink DWL-520 card. It's a revision E, so it is not supported by wi (although wi will try to init and fail). Now that I am running FreeBSD 5.3, I've decided to give the ndisulator a shot. I had a hunch that having both ndis and wi vying for control of the device would be a badthing, so I recompiled my kernel _without_ device wi. I used the WinXP inf and sys files on the DLink install CD to make the ndis_driver_info.h. (note: the inf file gave me grief until I read somewhere that it needed a newline at the bottom to work correctly) I compiled if_ndis.ko and kldload'ed it. pciconf -l shows: agp0@pci0:0:0: class=3D0x060000 card=3D0x80231043 chip=3D0x06911106 rev=3D0x= 02 hdr=3D0x00 pcib1@pci0:1:0: class=3D0x060400 card=3D0x00000080 chip=3D0x85981106 rev=3D0x= 00 hdr=3D0x01 isab0@pci0:4:0: class=3D0x060100 card=3D0x80231043 chip=3D0x06861106 rev=3D0x= 22 hdr=3D0x00 atapci0@pci0:4:1: class=3D0x01018a card=3D0x00000000 chip=3D0x05711106 rev=3D0x10 hdr=3D0x00 uhci0@pci0:4:2: class=3D0x0c0300 card=3D0x12340925 chip=3D0x30381106 rev=3D0x= 10 hdr=3D0x00 uhci1@pci0:4:3: class=3D0x0c0300 card=3D0x12340925 chip=3D0x30381106 rev=3D0x= 10 hdr=3D0x00 hostb0@pci0:4:4: class=3D0x060000 card=3D0x00000000 chip=3D0x30571106 rev=3D0x30 hdr=3D0x00 ndis0@pci0:10:0: class=3D0x028000 card=3D0x37001186 chip=3D0x38731260 rev=3D0x01 hdr=3D0x00 rl0@pci0:11:0: class=3D0x020000 card=3D0x813910ec chip=3D0x813910ec rev=3D0x= 10 hdr=3D0x00 rl1@pci0:12:0: class=3D0x020000 card=3D0x813910ec chip=3D0x813910ec rev=3D0x= 10 hdr=3D0x00 ahc0@pci0:13:0: class=3D0x010000 card=3D0x38699004 chip=3D0x38609004 rev=3D0x= 03 hdr=3D0x00 drm0@pci1:0:0: class=3D0x030000 card=3D0x001a1002 chip=3D0x51441002 rev=3D0x= 00 hdr=3D0x00 The ndis driver seems to have initialized on pci0:10:0, but no ndis adapter shows in ifconfig -a. Troubled by this, I moved the driver object into /boot/kernel and added load_if_ndis=3D"YES" to loader.conf, and rebooted. Maybe dmesg would tell me something important. It did: ndis0: mem 0xd7000000-0xd7000fff irq 5 at device 10.0 on pci0 can't re-use a leaf (BusType)! ndis0: NDIS API version: 5.1 ndis0: NDIS ERROR: c0001394 (unknown error) ndis0: NDIS NUMERRORS: 0 ndis0: init handler failed device_attach: ndis0 attach returned 6 So that's where I am. I don't know what to make of this dmesg output. Can anyone offer some insight? Thanks, Reid