From owner-freebsd-mobile@FreeBSD.ORG Sat Dec 16 21:39:24 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0089716A403 for ; Sat, 16 Dec 2006 21:39:24 +0000 (UTC) (envelope-from bennett@cs.niu.edu) Received: from mp.cs.niu.edu (mp.cs.niu.edu [131.156.68.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F96743CA2 for ; Sat, 16 Dec 2006 21:39:23 +0000 (GMT) (envelope-from bennett@cs.niu.edu) Received: from mp.cs.niu.edu (bennett@localhost [127.0.0.1]) by mp.cs.niu.edu (8.14.0.Beta2/8.14.0.Beta2) with ESMTP id kBGLce6A000746 for ; Sat, 16 Dec 2006 15:38:40 -0600 (CST) Date: Sat, 16 Dec 2006 15:38:40 -0600 (CST) From: Scott Bennett Message-Id: <200612162138.kBGLcen5000745@mp.cs.niu.edu> To: freebsd-mobile@freebsd.org Subject: another step toward a working driver for Dell 1450 wireless card X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Dec 2006 21:39:24 -0000 Under FreeBSD 6.1 I have now managed to convert the Windows XP driver text file (bcmwl5.inf) to ASCII and then run it through ndisgen along with BCMWL5.SYS to produce a BCMWL5_SYS.ko module, which I've placed into /boot/modules for loading during the boot/startup procedure. If I try to load the module with kldload, the system hangs and then reboots. If I put BCMWL5_SYS_load="YES" into /boot/loader.conf, I get the following: Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-RELEASE #5: Sat Dec 16 11:17:01 CST 2006 bennett@hellas:/usr/src/sys/i386/compile/SMP Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (3395.01-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf34 Stepping = 4 Features=0xbfebfbff Features2=0x441d> Logical CPUs per core: 2 real memory = 1073389568 (1023 MB) avail memory = 1041281024 (993 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 no match for strrchr no match for MmFreeContiguousMemorySpecifyCache no match for MmAllocateContiguousMemorySpecifyCache no match for MmGetPhysicalAddress acpi0: on motherboard Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 cpu1: on acpi0 acpi_throttle1: on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 acpi_acad0: on acpi0 battery0: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf0000000-0xf7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) uhci0: port 0xbf80-0xbf9f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] 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 uhci1: port 0xbf60-0xbf7f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xbf40-0xbf5f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xbf20-0xbf3f irq 16 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xf8fffc00-0xf8ffffff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered pcib2: at device 30.0 on pci0 pci2: on pcib2 bge0: mem 0xfaff0000-0xfaffffff irq 18 at device 0.0 on pci2 miibus0: on bge0 brgphy0: on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge0: Ethernet address: 00:11:43:5d:cd:2c cbb0: at device 1.0 on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fwohci0: <1394 Open Host Controller Interface> mem 0xfafef800-0xfafeffff,0xfafe8000-0xfafebfff irq 19 at device 1.1 on pci2 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 38:4f:c0:00:38:4e:0c:c1 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 3a:4f:c0:4e:0c:c1 fwe0: Ethernet address: 3a:4f:c0:4e:0c:c1 fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) ndis0: mem 0xfafec000 - 0xfafedfff irq 17 at device 3.0 on pci2 ndis0: NDIS API version: 5.1 ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... ntoskrnl dummy called... Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x3fffffff fault code = supervisor read, page not present instruction pointer = 0x20:0x3fffffff stack pointer = 0x28:0xc0c208bc frame pointer = 0x28:0x0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) trap number = 12 panic: page fault cpuid = 0 Uptime: 1s Automatic reboot in 15 seconds - press a key on the console to abort [At this point, I pressed a key to keep the above messages from being wiped out by a reboot. --SB] --> Press a key on the console to reboot, --> or switch off the system now. Note the set of four "No match for" messages early in the boot process, right after the keyboard is identified. After those appear, everything looks normal enough until right after the two lines that say, firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) At this point, the wireless card is identified, though not entirely correctly. The card is a 1450, not a 1400. (Windows XP correctly identifies the card.) Then a series of 14 identical lines follows that say, ntoskrnl dummy called... after which the panic messages appear. It's progress of a sort because previously I had never gotten it to do more than notice that an unidentified network device was at pci2, but with no driver attached. But I still do not have working wireless support in FreeBSD. If anyone recognizes any of the weird messages or has any idea where I may have gone wrong or anything else that might provide a clue to getting the damned thing to work, I would appreciate hearing from you about it. Thanks in advance! Scott Bennett, Comm. ASMELG, CFIAG ********************************************************************** * Internet: bennett at cs.niu.edu * *--------------------------------------------------------------------* * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * * -- Gov. John Hancock, New York Journal, 28 January 1790 * **********************************************************************