Wireless interface not detected

Eirik Nygaard eirikn at kerneled.com
Sun Dec 21 12:56:41 PST 2003


On Sun, Dec 21, 2003 at 06:59:48PM +0100, Eirik Nygaard wrote:
> I have a Dell Latitude c540 with a Dell Truemobile wireless interface, but
> it does not get deteced by DragonFly, neither does it show up in 
> `pciconf -lv`. In FreeBSD 5.x it works just fine.
> 
> I would be grateful if someone had some some pointer on how to fix this. I
> am trying to get this laptop up and running for school work with
> DragonFly.
> 
> I will send whatever information is needed, just let me know.
> 

I found out I have to add pccard_enable="YES" in rc.conf, now I find the
card but still does not want to load.
It errored out with:
wi0: wi_cmd: busy bit won't clear
wi0: mac read failed 5
first, I got that fixed with this patch:
Index: if_wi.c
===================================================================
RCS file: /home/dcvs/src/sys/dev/netif/wi/if_wi.c,v
retrieving revision 1.6
diff -u -r1.6 if_wi.c
--- if_wi.c     20 Nov 2003 22:07:32 -0000      1.6
+++ if_wi.c     21 Dec 2003 20:48:18 -0000
@@ -994,11 +994,11 @@
        count++;
 
        /* wait for the busy bit to clear */
-       for (i = 500; i > 0; i--) {     /* 5s */
+       for (i = 5000; i > 0; i--) {    /* 5s */
                if (!(CSR_READ_2(sc, WI_COMMAND) & WI_CMD_BUSY)) {
                        break;
                }
-               DELAY(10*1000); /* 10 m sec */
+               DELAY(1*1000);  /* 1 m sec */
        }
        if (i == 0) {
                device_printf(sc->dev, "wi_cmd: busy bit won't clear.\n" );

Now it errors out with:
wi0 at port 0x240-0x27f irq 11 slot 2 on pccard2
wi0: mac read failed 28
device_probe_and_attach: wi0 attach returned 28

it seems to be some error at line 1134:
len = CSR_READ_2(sc, WI_DATA1);

-- 
Eirik Nygaard
eirikn at xxxxxxxxxxxx
Attachment:
pgp00008.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00008.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20031221/58b15005/attachment-0014.obj>


More information about the Kernel mailing list