Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 2004 10:11:08 -0500 (CDT)
From:      <lreid@a.cs.okstate.edu>
To:        freebsd-questions@freebsd.org
Subject:   ndis wrapper around dwl-520 rev E
Message-ID:  <20041027151108.1CD18A0637@csa.cs.okstate.edu>

next in thread | raw e-mail | index | archive | help

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: <D-Link Air DWL-520 Wireless PCI Adapter(rev.E)> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041027151108.1CD18A0637>