From owner-freebsd-current Fri Apr 12 14:48: 3 2002 Delivered-To: freebsd-current@freebsd.org Received: from tcpipbitch.net (gw.tcpipbitch.net [208.59.233.179]) by hub.freebsd.org (Postfix) with ESMTP id 485B037B405 for ; Fri, 12 Apr 2002 14:47:13 -0700 (PDT) Received: from desktop (desktop.tcpipbitch.net [10.0.0.3]) by tcpipbitch.net (8.12.2/8.11.6) with ESMTP id g3CLLd9J000149 for ; Fri, 12 Apr 2002 17:21:42 -0400 (EDT) (envelope-from jason@vanbrecht.com) From: "Jason" To: "'Freebsd Current'" Subject: RE: WI Driver issues, compile of kernel dies, after fidling it drops to db> Date: Fri, 12 Apr 2002 17:21:59 -0400 Message-ID: <006801c1e268$16482eb0$0300000a@desktop> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <001601c1e216$7017a440$0300000a@desktop> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I hate replying to my own posts.. Anyways.. It appears.... The machine I was using as a test machine.... Either does not support pci 2.2 or is hosed (I'm voting for the latter as the bios seems to be losing its settings every so often)... So you can ignore the long winded issues I type below, sorry if anyone started looking into the problem. Will try different machine and see what happens Jason -----Original Message----- From: owner-freebsd-current@FreeBSD.ORG [mailto:owner-freebsd-current@FreeBSD.ORG] On Behalf Of Jason Sent: Friday, April 12, 2002 7:38 AM To: Freebsd Current Subject: WI Driver issues, compile of kernel dies, after fidling it drops to db> Dunno what I am doing wrong, maybe I am just missing something. I am trying to get my dlink wireless DWL 520 to compile. If I delete /usr/src/sys, and re cvsup to get clean sources (this is a source as of 4am eastern on the 12th April) and run make KERNCONF=HELB buildkernel, it always dies on the wi driver (which I believe is the driver for my card, with is prism 2 based) (listed at the very bottom is the content of my kernel config file). The card is a PCI card which believe is realy an isa card with a bridge to guts of the pcmcia wireless adapter tacked onto it. When I run the compile, it dies with the following error. /usr/src/sys/dev/wi/if_wi_pci.c:68: card_if.h: No such file or directory When I checked the module directory of /usr/src/sys/modules/wi the file card_if.h does not exist. I do a delete on the /usr/src/sys directory (I decided to keep a clean cvsup'd source in an outside directory which I move back each time), and do a search for card_if, and find that one exists, int the form of card_if.m in /usr/src/sys/dev/pccard/ . I run the following command to create the file. perl /usr/src/sys/kern/makeobjops.pl -h /usr/src/sys/dev/pccard/card_if.m I did this first, without realising to check /usr/src/sys/modules/wi which did have the card_if.h file when I compiled the kernel without the wi driver. After compiling without the wi driver, I noted quite a few card_if.h files located in misc directories, almost all identical. So I copied one of them to /usr/src/sys/modules/wi/ , put the wi driver back in and compiled, the compile ran through with little problems (the umass driver is another story) The following error is what I get when I try the if_wi.ko module Apr 12 06:02:54 helb kernel: module_register: module pccard/if_wi already exists! Apr 12 06:02:54 helb kernel: Module pccard/if_wi failed to register: 17 Apr 12 06:02:54 helb kernel: module_register: module pci/if_wi already exists! Apr 12 06:02:54 helb kernel: Module pci/if_wi failed to register: 17 Apr 12 06:02:54 helb kernel: can't re-use a leaf (wi_cache_mcastonly)! Apr 12 06:02:54 helb kernel: can't re-use a leaf (wi_cache_iponly)! And it won't work, secondly when I goto remove the module.. Its pukes hard and drops me to the db> prompt (I'm still semi new to the bleeding edge crap, usually I use stable, but what the hell, so I have no clue other then taking an image of the screen with my digital camera.. On how to dump a copy of the debug info to a file to add to this email) I also tried the awi driver for fun, it loaded fine, but did nothing, I could not talk to the card, and when I tried to kldunload it, it also dropped me to db> And that is pretty much where I am at.. No idea where to go now except send off what I know and wait for someone to hopefully fix it :) Jason Ps, I also noted a few of these, not sure what they are unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) ----------------------- Hardware in the Machine ----------------------- Abit BP6 MB with 2 cpu's (working) Generic Linksys Ethernet card (working) Sound Blaster 16 pnp Vibra card (seems to be detected on boot, but no drivers compiled in yet) Dlink DWL 520 (not working, causing issues, this is what I am trying to get up and and running) Diamond Viper V770 Ultra 2 (seems to be working, X acting kinda funny sometimes though, need to kill moused else it cores on startx) ---------------------- Dmesg below ---------------------- FreeBSD 5.0-CURRENT #3: Fri Apr 12 04:43:33 EDT 2002 root@helb.tcpipbitch.net:/usr/obj/usr/src/sys/HELB Preloaded elf kernel "/boot/kernel/kernel" at 0xc03b8000. Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (367.50-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x665 Stepping = 5 Features=0x183fbff real memory = 369098752 (360448K bytes) avail memory = 354824192 (346508K bytes) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 IOAPIC #0 intpin 16 -> irq 9 IOAPIC #0 intpin 17 -> irq 10 IOAPIC #0 intpin 18 -> irq 11 IOAPIC #0 intpin 19 -> irq 5 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Pentium Pro MTRR support enabled Using $PIR table, 8 entries at 0xc00fdef0 npx0: on motherboard npx0: INT 16 interface pcib0: at pcibus 0 on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xa000-0xa01f irq 5 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered Timecounter "PIIX" frequency 3579545 Hz pci0: at device 7.3 (no driver attached) dc0: port 0xa400-0xa4ff mem 0xea000000-0xea0003ff irq 5 at device 9.0 on pci0 dc0: Ethernet address: 00:04:5a:40:a8:f4 miibus0: on dc0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at device 13.0 (no driver attached) atapci1: port 0xb400-0xb4ff,0xb000-0xb003,0xac00-0xac07 irq 11 at device 19.0 on pci0 ata2: at 0xac00 on atapci1 atapci2: port 0xc000-0xc0ff,0xbc00-0xbc03,0xb800-0xb807 irq 11 at device 19.1 on pci0 ata3: at 0xb800 on atapci2 orm0: