From nobody@FreeBSD.org Thu Feb 7 20:33:50 2008 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98A3816A418 for ; Thu, 7 Feb 2008 20:33:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 8659913C465 for ; Thu, 7 Feb 2008 20:33:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m17KVjki002980 for ; Thu, 7 Feb 2008 20:31:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m17KVju8002979; Thu, 7 Feb 2008 20:31:45 GMT (envelope-from nobody) Message-Id: <200802072031.m17KVju8002979@www.freebsd.org> Date: Thu, 7 Feb 2008 20:31:45 GMT From: Ross To: freebsd-gnats-submit@FreeBSD.org Subject: NDIS0 not working (no link) X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 120367 >Category: amd64 >Synopsis: NDIS0 not working (no link) >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-amd64 >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 07 20:40:01 UTC 2008 >Closed-Date: Fri Feb 08 00:12:06 UTC 2008 >Last-Modified: Fri Feb 08 00:12:06 UTC 2008 >Originator: Ross >Release: DeskTopBSD(FreeBSD 6.3-RC2) >Organization: Home >Environment: FreeBSD andriasis 6.3-RC2 FreeBSD 6.3-RC2 #30: Sun Jan 6 01:08:03 UTC 2008 root@rivendell.desktopbsd.net:/usr/obj/usr/src/sys/GENERIC amd64 amd64 GENERIC >Description: I have HP Pavilion DV8000(AMD Turion64) with broadcom wireless. the fake interface (fwe0) don't work. So i converted and installed driver from windowsXP SP33008A.exe(bcmwl564.inf and *.sys) with ndisgen *.inf *.sys, then cp bcmwl564_sys.ko to /boot/modules. I rty to use it but whatever i do can't get link "ndis0 no link.....giving up" Halp me plaese. Ross. >How-To-Repeat: >Fix: Patch attached with submission follows: FreeBSD andriasis 6.3-RC2 FreeBSD 6.3-RC2 #30: Sun Jan 6 01:08:03 UTC 2008 root@rivendell.desktopbsd.net:/usr/obj/usr/src/sys/GENERIC amd64 amd64 GENERIC --------------------- pciconf ndis0@pci6:2:0: class=0x028000 card=0x1355103c chip=0x431814e4 rev=0x02 hdr=0x00 vendor = 'Broadcom Corporation' device = 'BCM43XX Broadcom 802.11b/g' class = network -------------------------------------------- ifconfig ndis0: flags=8843 mtu 1500 inet6 fe80::214:a5ff:fea4:fdcf%ndis0 prefixlen 64 scopeid 0x1 ether 00:14:a5:a4:fd:cf media: IEEE 802.11 Wireless Ethernet autoselect status: no carrier ssid "" channel 1 authmode OPEN privacy OFF txpowmax 100 bmiss 7 protmode CTS fwe0: flags=108802 mtu 1500 options=8 ether 66:3f:02:43:40:7a ch 1 dma -1 rl0: flags=8843 mtu 1500 options=8 inet6 fe80::216:d4ff:fe08:58e2%rl0 prefixlen 64 scopeid 0x3 ether 00:16:d4:08:58:e2 media: Ethernet autoselect (none) status: no carrier lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 ---------------------------------------------------- dmesg Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 6.3-RC2 #30: Sun Jan 6 01:08:03 UTC 2008 root@rivendell.desktopbsd.net:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Turion(tm) 64 Mobile Technology ML-34 (1794.79-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x20f42 Stepping = 2 Features=0x78bfbff Features2=0x1 AMD Features=0xe2500800 AMD Features2=0x1 real memory = 1072300032 (1022 MB) avail memory = 1018093568 (970 MB) ACPI APIC Table: MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) hptrr: HPT RocketRAID controller driver v1.1 (Jan 6 2008 01:07:24) acpi0: on motherboard acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) unknown: I/O range not supported Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 powernow0: on cpu0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) pcib2: at device 4.0 on pci0 pci2: on pcib2 ohci0: mem 0xc0000000-0xc0000fff irq 19 at device 19.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ohci1: mem 0xc0001000-0xc0001fff irq 19 at device 19.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 4 ports with 4 removable, self powered ehci0: mem 0xc0002000-0xc0002fff irq 19 at device 19.2 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: ATI EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 8 ports with 8 removable, self powered uhub2: port 4, set config at addr 2 failed uhub2: device problem (TIMEOUT), disabling port 4 pci0: at device 20.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8410-0x841f irq 16 at device 20.1 on pci0 ata0: on atapci0 ata1: on atapci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib3: at device 20.4 on pci0 pci6: on pcib3 ndis0: mem 0xc0204000-0xc0205fff irq 21 at device 2.0 on pci6 ndis0: NDIS API version: 5.1 fpudna in kernel mode! ndis0: Ethernet address: 00:14:a5:a4:fd:cf cbb0: mem 0xc0208000-0xc0208fff irq 20 at device 4.0 on pci6 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fwohci0: <1394 Open Host Controller Interface> mem 0xc0209000-0xc02097ff,0xc0200000-0xc0203fff irq 23 at device 4.2 on pci6 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 65:3f:02:00:49:43:40:7a 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: 66:3f:02:43:40:7a fwe0: Ethernet address: 66:3f:02:43:40:7a fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) fwohci0: phy int pci6: at device 4.3 (no driver attached) pci6: at device 4.4 (no driver attached) rl0: port 0xa000-0xa0ff mem 0xc020a400-0xc020a4ff irq 22 at device 6.0 on pci6 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:16:d4:08:58:e2 pcm0: mem 0xc0003400-0xc00034ff irq 17 at device 20.5 on pci0 pci0: at device 20.6 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 battery0: on acpi0 acpi_acad0: on acpi0 orm0: at iomem 0xc0000-0xcefff,0xd0000-0xd5fff,0xd7800-0xd7fff,0xd8000-0xd8fff on isa0 ppc0: cannot reserve I/O port range sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 uhid0: Microsoft Microsoft Wireless Optical Mouse\M-. 1.00, rev 2.00/0.07, addr 2, iclass 3/1 Timecounter "TSC" frequency 1794793375 Hz quality 800 Timecounters tick every 1.000 msec hptrr: no controller detected. ad0: 76319MB at ata0-master UDMA100 acd0: DVDR at ata1-master PIO4 pcm0: acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 0x00 0x01 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 0x00 0x01 cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 16.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad0s2a kldload: Unsupported file type fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! fpudna in kernel mode! g_vfs_done():acd0[READ(offset=32768, length=2048)]error = 5 kldload: Unsupported file type kldload: Unsupported file type ------------------------------------------------------------ andriasis# dhclient ndis0 ndis0: no link .............. giving up andriasis# ------------------------------------------------------------ andriasis# ifconfig ndis0 scan ifconfig: unable to get scan results andriasis# ------------------------------------- andriasis# /etc/rc.d/netif stop ndis0 Stopping network:Stopping wpa_supplicant. Waiting for PIDS: 304. ndis0. andriasis# /etc/rc.d/netif start ndis0 Starting wpa_supplicant. ndis0: no link .............. giving up ndis0: flags=8843 mtu 1500 inet6 fe80::214:a5ff:fea4:fdcf%ndis0 prefixlen 64 scopeid 0x1 ether 00:14:a5:a4:fd:cf media: IEEE 802.11 Wireless Ethernet autoselect status: no carrier ssid "" channel 1 authmode OPEN privacy OFF txpowmax 100 bmiss 7 protmode CTS andriasis# ------------------------------------------------------------------------------------------- andriasis# sysctl dev.ndis dev.ndis.0.%desc: Broadcom 802.11b/g WLAN dev.ndis.0.%driver: ndis dev.ndis.0.%location: slot=2 function=0 dev.ndis.0.%pnpinfo: vendor=0x14e4 device=0x4318 subvendor=0x103c subdevice=0x1355 class=0x028000 dev.ndis.0.%parent: pci6 dev.ndis.0.PowerSaveMode: 0 dev.ndis.0.frag: 2346 dev.ndis.0.rts: 2347 dev.ndis.0.ssid_auto_promote: 0 dev.ndis.0.MPC: 1 dev.ndis.0.NetworkAddress: dev.ndis.0.PwrOut: 100 dev.ndis.0.FrameBursting: 1 dev.ndis.0.BTCoexist: 0 dev.ndis.0.EnableSoftAP: 0 dev.ndis.0.EnableLeap: 1 dev.ndis.0.EnableAutoConnect: 0 dev.ndis.0.Managed: 1 dev.ndis.0.gpiotimerval: 0xa0000 dev.ndis.0.WEP: dev.ndis.0.NetworkType: -1 dev.ndis.0.SSID: dev.ndis.0.scan_channel_time: -1 dev.ndis.0.scan_unassoc_time: -1 dev.ndis.0.scan_home_time: -1 dev.ndis.0.scan_passes: -1 dev.ndis.0.BadFramePreempt: 0 dev.ndis.0.Interference_Mode: -1 dev.ndis.0.Channel: 11 dev.ndis.0.ccx_rm: 1 dev.ndis.0.ccx_rm_limit: 300 dev.ndis.0.EFCEnable: 0 dev.ndis.0.WME: -1 dev.ndis.0.vlan_mode: -1 dev.ndis.0.WZCCoexist: 0 dev.ndis.0.MixedCell: 0 dev.ndis.0.Afterburner: 1 dev.ndis.0.RoamTrigger: -75 dev.ndis.0.PLCPHeader: 0 dev.ndis.0.IBSSGMode: 0 dev.ndis.0.IBSSGProtection: 2 dev.ndis.0.Rate: 0 dev.ndis.0.Country: US dev.ndis.0.gpio0: 3 dev.ndis.0.gpio1: 2 dev.ndis.0.gpio2: 0 dev.ndis.0.gpio3: 0 dev.ndis.0.Environment: 1 dev.ndis.0.NdisVersion: 0x00050001 dev.ndis.0.BusType: 5 dev.ndis.0.InterruptNumber: 21 dev.ndis.0.ForcePIO: UNSET dev.ndis.0.AdapterDesc: UNSET dev.ndis.0.DriverDesc: UNSET dev.ndis.0.Brand: UNSET dev.ndis.0.WPA: UNSET dev.ndis.0.featureflag: UNSET dev.ndis.0.IBSSAllowed: UNSET dev.ndis.0.LegacyMode: UNSET dev.ndis.0.LegacyProbe: UNSET dev.ndis.0.band: UNSET dev.ndis.0.RateA: UNSET dev.ndis.0.ledblinkslow: UNSET dev.ndis.0.ledblinkmed: UNSET dev.ndis.0.ledblinkfast: UNSET dev.ndis.0.WME_qosinfo: UNSET dev.ndis.0.RadioState: UNSET dev.ndis.0.AssocRoamPref: UNSET dev.ndis.0.RoamDelta: UNSET dev.ndis.0.ApCompatMode: UNSET dev.ndis.0.IBSSLink: UNSET dev.ndis.0.antdiv: UNSET dev.ndis.0.BandPref: UNSET dev.ndis.0.11HNetworks: UNSET dev.ndis.0.scan_passive_time: UNSET andriasis# ------------------------------------------------ wpa_supplicant.conf network={ ssid="motorola D74" scan_ssid=1 key_mgmt=NONE wep_tx_keyidx=0 wep_key1=0 } ----------------------------------------------- ee /etc/rc.conf ~ ~ #ifconfig_ndis0="DHCP" ifconfig_ndis0="WPA DHCP" hostname="andriasis" ~ ----------------------------- andriasis# ifconfig ndis0 down andriasis# ifconfig ndis0 up andriasis# ifconfig ndis0 ndis0: flags=8843 mtu 1500 inet6 fe80::214:a5ff:fea4:fdcf%ndis0 prefixlen 64 scopeid 0x1 ether 00:14:a5:a4:fd:cf media: IEEE 802.11 Wireless Ethernet autoselect status: no carrier ssid "" channel 1 authmode OPEN privacy OFF txpowmax 100 bmiss 7 protmode CTS andriasis# ligh is on but it dont work at all ----------------------------------------- loader.conf ~ bcmwl564_sys_load="YES" if_ndis_load="YES" ndis_load="YES" wlan_load="YES" wlan_ccmp_load="YES" wlan_tkip_load="YES" ~ end of file >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Fri Feb 8 00:11:16 UTC 2008 State-Changed-Why: Duplicate of amd64/120367. http://www.freebsd.org/cgi/query-pr.cgi?pr=120367 >Unformatted: