View Full Version : Broadcom WiFi
lissyara
February 26th, 2009, 08:00
hi!
Year or more ago, Sam Leffler porting bwi driver to FreeBSD.
But, it was not commited to source tree, because some errors appeared.
Now, we have work driver for old BroadCom WiFi devices. It work for i384/amd64, 8-CURRENT/7.x
http://paradox.lissyara.su/bwi.02c.tar.bz2 - soucre code
=======
I think, it would be good if code is commited to source tree.
lme@
February 26th, 2009, 09:10
Could you please send this as a PR and tell others about it on current@freebsd.org mailing list?
Thanks a lot for the driver, btw! :)
alie
February 26th, 2009, 12:26
can i use it for Broadcom 4322AGN ?
lissyara
February 26th, 2009, 12:46
You can test it with this card.
It work for me with BCM4306, and not work for me with BCM4312 =(
Summary: if adapter PCI-E - it not work, If PCI/PCMCI - work. (maybe =))
Some instructions - http://forum.lissyara.su/viewtopic.php?f=5&t=10250 (russian, but - listings and instructions in english)
In first post - link for 7.x driver
======
2 lme@
It modifying by paradox (http://paradox.org.ua/), not me. Thanks to him =)
I send pr, later, trough 5-6 hours.
lissyara
February 26th, 2009, 20:59
In perforce is a working driver.
All that needs to be done to change one line in one file - bwimac.c
-/* MAC */static const uint8_t bwi_sup_macrev[] = { 2, 4, 5, 6, 7, 9, 10, 12 };
+/* MAC */static const uint8_t bwi_sup_macrev[] = { 2, 4, 5 };
This remove all the new revision of the processor cards.
For new revision cards need to write a completely new driver.
nikobordx
March 2nd, 2009, 14:54
Hi,
I've tried this driver, but when i load if_bwi.ko, i have this message:
bwi0: <Broadcom BCM4311 802.11 Wireless Lan> irq 18 at device 0.0 on pci6
bwi0: 0x4000 bytes of rid 0x10 res 3 failed (0, 0xffffffff).
bwi0: cannot map register space
device_attach: bwi0 attach returned 6
Some people know what is the problem ?
I'm under FreeBSD-8 Current of today.
Thanks in advance.
Niko.
paradox
March 2nd, 2009, 18:50
try boot without acpi support
it's problem of acpi allocator in freebsd
nikobordx
March 2nd, 2009, 19:16
Hi paradox,
Thanks for your response.
But when i boot with or without acpi, i have the same error !
Another idea to try ?
Niko.
paradox
March 2nd, 2009, 19:32
try check asl for errors and fixx it
my be some help you this link
http://www.freebsd.org/doc/en/books/handbook/acpi-debug.html
which hardware are you use?
nikobordx
March 2nd, 2009, 20:02
This my card:
none1@pci0:6:0:0: class=0x028000 card=0x1364103c chip=0x431114e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Dell Wireless 1390 WLAN Mini-PCI Card'
class = network
Acpi seem to be working fine, but i tried to check asl for error tomorrow.
Niko.
paradox
March 2nd, 2009, 20:20
show me your
pciconf -lvbc
nikobordx
March 2nd, 2009, 20:38
This is the pciconf -lvbc:
hostb0@pci0:0:0:0: class=0x060000 card=0x30a5103c chip=0x27a08086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '955XM/945GM/PM/GMS/940GML Express Processor to DRAM Controller'
class = bridge
subclass = HOST-PCI
cap 09[e0] = vendor (length 9) Intel cap 5 version 1
vgapci0@pci0:0:2:0: class=0x030000 card=0x30a5103c chip=0x27a28086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945GM/GU Express Integrated Graphics Controller'
class = display
subclass = VGA
bar [10] = type Memory, range 32, base 0xd0200000, size 524288, enabled
bar [14] = type I/O Port, range 32, base 0x1800, size 8, enabled
bar [18] = type Prefetchable Memory, range 32, base 0xc0000000, size 268435456, enabled
bar [1c] = type Memory, range 32, base 0xd0300000, size 262144, enabled
cap 05[90] = MSI supports 1 message
cap 01[d0] = powerspec 2 supports D0 D3 current D0
vgapci1@pci0:0:2:1: class=0x038000 card=0x30a5103c chip=0x27a68086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945GM/GU Express Integrated Graphics Controller'
class = display
bar [10] = type Memory, range 32, base 0xd0280000, size 524288, enabled
cap 01[d0] = powerspec 2 supports D0 D3 current D0
hdac0@pci0:0:27:0: class=0x040300 card=0x30a5103c chip=0x27d88086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) High Definition Audio'
class = multimedia
subclass = HDA
bar [10] = type Memory, range 64, base 0xd0340000, size 16384, enabled
cap 01[50] = powerspec 2 supports D0 D3 current D0
cap 05[60] = MSI supports 1 message, 64 bit enabled with 1 message
cap 10[70] = PCI-Express 1 type 0
pcib1@pci0:0:28:0: class=0x060400 card=0x30a5103c chip=0x27d08086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
cap 10[40] = PCI-Express 1 root port
cap 05[80] = MSI supports 1 message
cap 0d[90] = PCI Bridge card=0x30a5103c
cap 01[a0] = powerspec 2 supports D0 D3 current D0
pcib2@pci0:0:28:2: class=0x060400 card=0x30a5103c chip=0x27d48086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
cap 10[40] = PCI-Express 1 root port
cap 05[80] = MSI supports 1 message
cap 0d[90] = PCI Bridge card=0x30a5103c
cap 01[a0] = powerspec 2 supports D0 D3 current D0
uhci0@pci0:0:29:0: class=0x0c0300 card=0x30a5103c chip=0x27c88086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x1820, size 32, enabled
uhci1@pci0:0:29:1: class=0x0c0300 card=0x30a5103c chip=0x27c98086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x1840, size 32, enabled
uhci2@pci0:0:29:2: class=0x0c0300 card=0x30a5103c chip=0x27ca8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
bar [20] = type I/O Port, range 32, base 0x1860, size 32, enabled
ehci0@pci0:0:29:7: class=0x0c0320 card=0x30a5103c chip=0x27cc8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB 2.0 Enhanced Host Controller'
class = serial bus
subclass = USB
bar [10] = type Memory, range 32, base 0xd0544000, size 1024, enabled
cap 01[50] = powerspec 2 supports D0 D3 current D0
cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14
pcib3@pci0:0:30:0: class=0x060401 card=0x30a5103c chip=0x24488086 rev=0xe1 hdr=0x01
vendor = 'Intel Corporation'
device = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge'
class = bridge
subclass = PCI-PCI
cap 0d[50] = PCI Bridge card=0x30a5103c
isab0@pci0:0:31:0: class=0x060100 card=0x30a5103c chip=0x27b98086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801GBM (ICH7-M) LPC Interface Controller'
class = bridge
subclass = PCI-ISA
cap 09[e0] = vendor (length 12) Intel cap 1 version 0
features: Quick Resume, SATA RAID-5, Mobile, 6 PCI-e x1 slots, SATA RAID-0/1/10
atapci0@pci0:0:31:1: class=0x01018a card=0x30a5103c chip=0x27df8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) Ultra ATA Storage Controller'
class = mass storage
subclass = ATA
bar [10] = type I/O Port, range 32, base 0x1f0, size 8, enabled
bar [14] = type I/O Port, range 32, base 0x3f4, size 1, enabled
bar [18] = type I/O Port, range 32, base 0x170, size 8, enabled
bar [1c] = type I/O Port, range 32, base 0x374, size 1, enabled
bar [20] = type I/O Port, range 32, base 0x1810, size 16, enabled
atapci1@pci0:0:31:2: class=0x010601 card=0x30a5103c chip=0x27c58086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801GB Mobile I/O Controller Hub SATA cc=AHCI'
class = mass storage
subclass = SATA
bar [10] = type I/O Port, range 32, base 0x18b0, size 8, enabled
bar [14] = type I/O Port, range 32, base 0x18a4, size 4, enabled
bar [18] = type I/O Port, range 32, base 0x18a8, size 8, enabled
bar [1c] = type I/O Port, range 32, base 0x18a0, size 4, enabled
bar [20] = type I/O Port, range 32, base 0x1890, size 16, enabled
bar [24] = type Memory, range 32, base 0xd0544400, size 1024, enabled
cap 05[80] = MSI supports 1 message
cap 01[70] = powerspec 2 supports D0 D3 current D0
none0@pci0:0:31:3: class=0x0c0500 card=0x30a5103c chip=0x27da8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) SMBus Controller'
class = serial bus
subclass = SMBus
bar [20] = type I/O Port, range 32, base 0x18c0, size 32, enabled
none1@pci0:6:0:0: class=0x028000 card=0x1364103c chip=0x431114e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Dell Wireless 1390 WLAN Mini-PCI Card'
class = network
cap 01[40] = powerspec 2 supports D0 D1 D2 D3 current D0
cap 05[58] = MSI supports 1 message
cap 10[d0] = PCI-Express 1 legacy endpoint
rl0@pci0:8:8:0: class=0x020000 card=0x30a5103c chip=0x813910ec rev=0x10 hdr=0x00
vendor = 'Realtek Semiconductor'
device = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter'
class = network
subclass = ethernet
bar [10] = type I/O Port, range 32, base 0x2000, size 256, enabled
bar [14] = type Memory, range 32, base 0xd0100000, size 256, enabled
cap 01[50] = powerspec 2 supports D0 D1 D2 D3 current D0
Niko
Gusi
March 2nd, 2009, 20:57
Hi there,
a few time ago I tried bwi02.tar.bz2. I worked quite well, but from time to time I found it loosed link and had to reboot the laptop (restarting the wpa supplicant always freezed the machine). Don't know the source of the problem (no trace of the problem in /var/log/messages). My wireless is :
none1@pci0:12:0:0: class=0x028000 card=0x00071028 chip=0x431214e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM4310 broadcom wireless 1490 (dell)'
class = network
Also note that the version posted bwi02c.tar.bz2 doesn't compile on STABLE, looks like it is for CURRENT. It complains on net80211/ieee80211_phy.h, which can't be found on /usr/src/sys. So if I'm right, it should be noted if someone sends a pr.
A presto
paradox
March 2nd, 2009, 20:57
none1@pci0:6:0:0: class=0x028000 card=0x1364103c chip=0x431114e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Dell Wireless 1390 WLAN Mini-PCI Card'
class = network
cap 01[40] = powerspec 2 supports D0 D1 D2 D3 current D0
cap 05[58] = MSI supports 1 message
cap 10[d0] = PCI-Express 1 legacy endpoint
bwi0: 0x4000 bytes of rid 0x10 res 3 failed (0, 0xffffffff).
seems like good
but res [10] it's PCI-E resource
my be the problem at this point
i thinking about it within few days
and you to check asl too
paradox
March 2nd, 2009, 21:11
>Gusi
show me your
dmesg after kldload bwi.ko && ifconfig bwi0 up
some new BCM chip rev older then 5 need new a specification for driver
as new firmware, rewrite new bwi code, and so
Gusi
March 3rd, 2009, 16:16
Hi Paradox,
did the following :
kldload /boot/kernel.old/bwi_v3.ko && kldload /boot/kernel.old/if_bwi.ko && ifconfig bwi0 up
Dmesg showded me got the following :
********************
bwi0: <Broadcom BCM4312 802.11 Wireless Lan> mem 0xf1ffc000-0xf1ffffff irq 17 at device 0.0 on pci12
bwi0: [ITHREAD]
bwi0: regwin: chipcommon (0x800), rev 17, vendor 0x4243
bwi0: BBP: id 0x4311, rev 0x1, pkg 0
bwi0: nregwin 4, cap 0x0064000d
bwi0: regwin: 802.11 MAC (0x812), rev 10, vendor 0x4243
bwi0: MAC: rev 10
bwi0: regwin: usb 1.1 host (0x817), rev 3, vendor 0x4243
bwi0: regwin: pci express (0x820), rev 1, vendor 0x4243
bwi0: clksrc CS_OSC
bwi0: clkfreq min 990000, max 1010000
bwi0: power on delay 3
bwi0: bus rev 1
bwi0: pci express is enabled
bwi0: card flags 0x4a49
bwi0: 0th led, act 2, lowact 0
bwi0: 1th led, act 3, lowact 1
bwi0: 2th led, act 4, lowact 0
bwi0: 3th led, act 0, lowact 0
bwi0: 802.11 MAC was already disabled
bwi0: PHY is linked
bwi0: PHY: type 2, rev 8, ver 4
bwi0: PHY: 802.11G attach
bwi0: RF: manu 0x17f, type 0x2050, rev 2
bwi0: bus rev 1
bwi0: PHY is linked
bwi0: 32bit bus space
bwi0: max txpower from sprom: 74 dBm
bwi0: ant gain 8 dBm
bwi0: region/domain max txpower 76 dBm
bwi0: max txpower 74 dBm
bwi0: sprom idle tssi: 0x783e
bwi0: TSSI-TX power map:
83 83 82 82 82 82 81 81
80 80 79 79 79 78 78 77
77 76 75 75 74 74 73 73
72 72 71 70 69 69 68 67
66 65 64 64 62 61 60 59
58 57 55 54 52 51 49 48
46 45 42 41 38 36 33 31
28 25 22 19 15 11 6 2
bwi0: idle tssi0: 62
bwi0: bus rev 1
bwi0: locale: 0
bwi0: WARNING: using obsoleted if_watchdog interface
bwi0: Ethernet address: 00:1c:26:66:26:10
bwi0: bwi_init
bwi0: bwi_stop
bwi0: bbp atten: 0, rf atten: 3, ctrl1: 2, ctrl2: 65535
bwi0: bus rev 1
bwi0: 802.11 MAC is disabled
bwi0: 802.11 MAC was already disabled
bwi0: PHY is linked
bwi0: firmware rev 0x0127, patch level 0x000e
bwi0: IV count 317
bwi0: IV count 31
bwi0: lo gain: 13, rx gain: 48
bwi0: RF calibration value: 0x003e
bwi0: base tssi 50
bwi0: bwi_updateslot
bwi0: bwi_updateslot
bwi0: tssi0 19, tssi1 19, tssi2 18, tssi3 24
bwi0: tssi avg 22
bwi0: current txpower 64
bwi0: rf atten adjust -2, bbp atten adjust 3
bwi0: link state changed to UP
bwi0: no DS tssi
bwi0: tssi0 6, tssi1 6, tssi2 6, tssi3 6
bwi0: tssi avg 8
bwi0: current txpower 74
bwi0: no need to adjust RF/BBP attenuation
bwi0: no DS tssi
bwi0: no OFDM tssi
bwi0: no DS tssi
bwi0: no OFDM tssi
bwi0: no DS tssi
bwi0: no OFDM tssi
********************
Got to insert the firmware first, otherwise it refuses to work. If you need something else, please let me know.
Greets,
Gus
paradox
March 3rd, 2009, 17:08
try this
paradox.lissyara.su/bwi.02.tar.bz2
i'am remove all mutex
my be its do some stability for driver
try
ifconfig bwi0 down && ifconfig bwi0 up
for a reboot bwi core
if have some problem again
so, yr
>bwi0: MAC: rev 10
is not stability for bwi and v3 formware
Gusi
March 4th, 2009, 09:01
Hi Again,
try
ifconfig bwi0 down && ifconfig bwi0 up
for a reboot bwi core
if have some problem again
Yesterday I tried what you suggested. I took me some time to associate to my AP which is a FreeBSD with hostapd+WPA2-TLS (in fact what took long was dhclient). After a few time I started to see some :
Mar 3 21:12:32 gusiport dhclient[26984]: send_packet: No buffer space available
Moreover I felt it a little bit slow. Maybe both problems are related ? Finally stopping wpa_supplicant didn't freeze or reboot the system anymore. If you need more information or do you want me to do something, let me know.
Greets and thanks,
Gus
paradox
March 4th, 2009, 12:23
>Mar 3 21:12:32 gusiport dhclient[26984]: send_packet: No buffer space available
try increase the buffer
loader.conf
kern.maxusers="512"
kern.ipc.nmbclusters="2048"
Gusi
March 4th, 2009, 21:27
Hi,
tried sysctl kern.ipc.nmbcluster and I discovered that it was greater than the value you suggested. Will try the values you gave, but I suspect they won't work better (maybe). I'll keep you informed anyway.
Do you want something else ?
Thanks again,
Gusi
paradox
April 4th, 2009, 14:57
>Gusi
the small changes at bwi for phy_rev = 8
as example
bwi0: PHY: type 2, rev 8, ver 4
try test it
paradox.lissyara.su/bwi.03.tar.bz2
Gusi
April 26th, 2009, 10:51
>Gusi
the small changes at bwi for phy_rev = 8
as example
try test it
paradox.lissyara.su/bwi.03.tar.bz2
Sorry for the delay. I tried it in current (I left stable), but gave me errors in compile :
if_bwi.c: In function 'bwi_attach':
if_bwi.c:400: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:401: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:402: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:403: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:406: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:418: error: too many arguments to function 'ieee80211_init_channels'
if_bwi.c:427: error: 'struct ieee80211com' has no member named 'ic_state'
if_bwi.c:432: error: too few arguments to function 'ieee80211_ifattach'
if_bwi.c:438: error: 'struct ieee80211com' has no member named 'ic_newstate'
if_bwi.c:439: error: 'struct ieee80211com' has no member named 'ic_newstate'
cc1: warnings being treated as errors
if_bwi.c:443: warning: assignment from incompatible pointer type
if_bwi.c:446: error: too many arguments to function 'ieee80211_media_init'
if_bwi.c:449: warning: passing argument 2 of 'ieee80211_amrr_init' from incompatible pointer type
if_bwi.c:449: error: too few arguments to function 'ieee80211_amrr_init'
if_bwi.c: In function 'bwi_init':
if_bwi.c:1100: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:1100: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:1103: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:1140: error: 'struct ieee80211com' has no member named 'ic_roaming'
if_bwi.c:1141: warning: passing argument 1 of 'ieee80211_new_state' from incompatible pointer type
if_bwi.c:1143: warning: passing argument 1 of 'ieee80211_new_state' from incompatible pointer type
if_bwi.c: In function 'bwi_ioctl':
if_bwi.c:1195: warning: passing argument 1 of 'ieee80211_ioctl' from incompatible pointer type
if_bwi.c: In function 'bwi_start':
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1234: error: 'struct ieee80211com' has no member named 'ic_mgtq'
if_bwi.c:1239: error: 'struct ieee80211com' has no member named 'ic_state'
if_bwi.c:1255: warning: passing argument 1 of 'ieee80211_find_txnode' from incompatible pointer type
if_bwi.c:1266: warning: passing argument 1 of 'ieee80211_encap' from incompatible pointer type
if_bwi.c:1266: warning: passing argument 2 of 'ieee80211_encap' from incompatible pointer type
if_bwi.c:1266: warning: passing argument 3 of 'ieee80211_encap' from incompatible pointer type
if_bwi.c:1274: error: 'struct ieee80211com' has no member named 'ic_rawbpf'
if_bwi.c:1275: error: 'struct ieee80211com' has no member named 'ic_rawbpf'
if_bwi.c:1279: warning: passing argument 1 of 'ieee80211_crypto_encap' from incompatible pointer type
if_bwi.c:1279: warning: passing argument 2 of 'ieee80211_crypto_encap' from incompatible pointer type
if_bwi.c:1279: error: too many arguments to function 'ieee80211_crypto_encap'
if_bwi.c: In function 'bwi_stop':
if_bwi.c:1345: warning: passing argument 1 of 'ieee80211_new_state' from incompatible pointer type
if_bwi.c: In function 'bwi_newstate':
if_bwi.c:1547: error: 'struct ieee80211com' has no member named 'ic_bss'
if_bwi.c:1549: error: 'struct ieee80211com' has no member named 'ic_bss'
if_bwi.c:1565: error: 'struct ieee80211com' has no member named 'ic_fixed_rate'
if_bwi.c: In function 'bwi_newassoc':
if_bwi.c:1601: error: too few arguments to function 'ieee80211_amrr_node_init'
if_bwi.c: In function 'bwi_iter_func':
if_bwi.c:1616: warning: passing argument 1 of 'ieee80211_amrr_choose' from incompatible pointer type
if_bwi.c:1616: warning: passing argument 2 of 'ieee80211_amrr_choose' from incompatible pointer type
if_bwi.c:1616: error: too many arguments to function 'ieee80211_amrr_choose'
if_bwi.c: In function 'bwi_amrr_timeout':
if_bwi.c:1627: error: 'struct ieee80211com' has no member named 'ic_bss'
if_bwi.c: In function 'bwi_media_change':
if_bwi.c:1640: warning: unused variable 'sc'
if_bwi.c:2522:45: error: macro "ieee80211_input" passed 6 arguments, but takes just 5
if_bwi.c: In function 'bwi_rxeof':
if_bwi.c:2521: error: 'ieee80211_input' undeclared (first use in this function)
if_bwi.c:2521: error: (Each undeclared identifier is reported only once
if_bwi.c:2521: error: for each function it appears in.)
if_bwi.c: In function 'bwi_encap':
if_bwi.c:2819: error: 'struct ieee80211com' has no member named 'ic_mcast_rate'
if_bwi.c:2820: error: 'struct ieee80211com' has no member named 'ic_fixed_rate'
if_bwi.c:2825: error: 'struct ieee80211com' has no member named 'ic_fixed_rate'
if_bwi.c: In function 'bwi_set_bssid':
if_bwi.c:3426: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c: In function 'bwi_calibrate':
if_bwi.c:3468: error: 'struct ieee80211com' has no member named 'ic_state'
if_bwi.c: At top level:
if_bwi.c:3650: error: conflicting types for 'ieee80211_plcp2rate'
@/net80211/ieee80211_phy.h:143: error: previous declaration of 'ieee80211_plcp2rate' was here
Tried some of the variants (bwi.03[c-e]) but none of them worked. bwi.03c gave me errors in compile (I think the same problem I had with bwi.03). bwi.03d or bwi.03e freezed the system (can remember which one)
Will try bwi.02c, some claimed it compiled in current.
Greets,
Gusi
Gusi
April 27th, 2009, 12:28
Will try bwi.02c, some claimed it compiled in current.
Greets,
Gusi
bwi.02c doesn't compile with i386/current (csuped today). Both problems are related, struct ieee80211com doesn't have a field called ic_myaddr.
if_bwi.c:521: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:522: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:523: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:524: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:527: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:553: error: too few arguments to function 'ieee80211_ifattach'
if_bwi.c: In function 'bwi_init_statechg':
if_bwi.c:1303: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:1303: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c:1306: error: 'struct ieee80211com' has no member named 'ic_myaddr'
if_bwi.c: In function 'bwi_start_locked':
if_bwi.c:1446: warning: passing argument 1 of 'ieee80211_encap' from incompatible pointer type
if_bwi.c:1446: warning: passing argument 2 of 'ieee80211_encap' from incompatible pointer type
if_bwi.c:1446: error: too few arguments to function 'ieee80211_encap'
if_bwi.c: In function 'bwi_init_tx_ring64':
if_bwi.c:2543: warning: right shift count >= width of type
if_bwi.c:2544: warning: right shift count >= width of type
if_bwi.c: In function 'bwi_init_rxdesc_ring64':
if_bwi.c:2565: warning: right shift count >= width of type
if_bwi.c:2566: warning: right shift count >= width of type
if_bwi.c: In function 'bwi_set_bssid':
if_bwi.c:3975: error: 'struct ieee80211com' has no member named 'ic_myaddr'
Greets,
Gus
paradox
May 1st, 2009, 13:37
at April 4th, 2009, 15:57 its works
but since the some moment Sam to change a macaddr struct ....
so i have new build with some the broadcom sources from wireless router as asus WL* or LinkSys *
but provide it only for private users
paradox
May 7th, 2009, 20:19
bwi already at current
but have some misstake at source code
im fixx it
and make a patch paradox.lissyara.su/bwi.diff
rwatson@
May 16th, 2009, 13:55
FYI, this driver has now been merged to FreeBSD 8-CURRENT as of 3 May, 2009, so should appear in FreeBSD 8.0 later this year:
date: 2009/05/03 04:01:43; author: imp; state: Exp;
SVN rev 191762 on 2009-05-03 04:01:43Z by imp
Bring in Andrew Thompson's port of Sepherosa Ziehau's bwi driver for
Broadcom BCM43xx chipsets. This driver uses the v3 firmware that
needs to be fetched separately. A port will be committed to create
the bwi firmware module.
The driver matches the following chips: Broadcom BCM4301, BCM4307,
BCM4306, BCM4309, BCM4311, BCM4312, BCM4318, BCM4319
The driver works for 802.11b and 802.11g.
Limitations:
This doesn't support the 802.11a or 802.11n portion of radios.
Some BCM4306 and BCM4309 cards don't work with Channel 1, 2 or 3.
Documenation for this firmware is reverse engineered from
http://bcm.sipsolutions.net/
V4 of the firmware is needed for 11a or 11n support
http://bcm-v4.sipsolutions.net/
Firmware needs to be fetched from a third party, port to be committed
# I've tested this with a BCM4319 mini-pci and a BCM4318 CardBus card, and
# not connected it to the build until the firmware port is committed.
Obtained from: DragonFlyBSD, //depot/projects/vap
Reviewed by: sam@, thompsa@
gnemmi
May 20th, 2009, 07:18
Good to know that!!
Would it be too hard to port it to 7.x or at least get it into 7.3 for those of us who would rather wait a while before moving to 8.x when it comes out later this year?
I have a Broadcom BCM4312 802.11b/g (a.k.a Dell Wireless 1395 WLAN Mini-Card) and could really use the support for it =D
Regards
richardpl
May 20th, 2009, 10:38
bwi(4) currently doesn't support your card.
gnemmi
May 20th, 2009, 11:36
I thought that
The driver matches the following chips: Broadcom BCM4301, BCM4307,
BCM4306, BCM4309, BCM4311, BCM4312, BCM4318, BCM4319
meant it did :/
richardpl
May 20th, 2009, 15:39
It hangs my machine randomly all the time.
gnemmi
May 20th, 2009, 16:15
damn ...
have you reported that?
can you point me to a list or message where I can take a look at what's going on?
drivers@ was _so_slow_ that I think I unsuscribed...
stupid Crapcom ...
richardpl
May 20th, 2009, 17:20
Sure I did, but I would not comment about it here.
Also I'm not the only one who reported that, there is at least one such report on @current.
gnemmi
May 20th, 2009, 20:03
roger that.
will take a look
thanks ;)
paradox
May 21st, 2009, 10:01
try this paradox.lissyara.su/bwi.03.tar.bz2 for freebsd 7.x
>gnemmi
give me yr pciconf -lvcb
gnemmi
May 21st, 2009, 20:16
At your service :D
Just in case: uname -a
FreeBSD gargoyle.inferna.com.ar 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Sorry but the forum doesn't allow me to post something that long, so I had to use pastebin.com: pciconf -lvcb (http://pastebin.com/f22db2063)
Thanks for your interest paradox :D
DutchDaemon
May 21st, 2009, 20:25
You can post attachments, like txt files. Just go to the Advanced Editor ('Go Advanced' button) when replying, and choose 'Manage Attachments'.
gnemmi
May 21st, 2009, 20:31
Oh .. I see ..
I wasn't attaching it .. I was just tagging with code and the forum said I couldn't post more than 1000 chars .. that's why I resorted to pastebin.com (which I use a lot btw ..).
Didn't know that I could attach though .. thanks for the heads up DutchDaemon, will be using that feature from now on ;)
Regards
paradox
May 21st, 2009, 21:02
none2@pci0:12:0:0: class=0x028000 card=0x000b1028 chip=0x431514e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM4310 USB Controller'
class = network
bar [10] = type Memory, range 64, base 0xf6cfc000, size 16384, enabled
cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0
cap 09[58] = vendor (length 120)
cap 05[e8] = MSI supports 1 message, 64 bit
cap 10[d0] = PCI-Express 1 endpoint
sorry
this wifi chip=0x431514e4
not supported
use only if_ndis & ndisgen
gnemmi
May 22nd, 2009, 00:29
Thaks for the heads up !
:(
gnemmi
May 22nd, 2009, 16:01
@paradox: sorry for being so short on my reply .. it was just frustration :(
After reading your previous post, I figured you are pretty much involved on the bwi and its firmware issues.
I just wanted you to know that if there's something I can do to pitch in to solve this problem, you can count on me. I can test any and all patches you would like me to run or give you root access (ssh -> su-) to my machine or whatever it takes to help getting this card to work. Just ask for it and you'll get it.
Best Regards
Gonzalo
paradox
May 22nd, 2009, 19:38
I just wanted you to know that if there's something I can do to pitch in to solve this problem, you can count on me. I can test any and all patches you would like me to run or give you root access (ssh -> su-) to my machine or whatever it takes to help getting this card to work. Just ask for it and you'll get it
good
but curently iam try to support the amd64 engine for the old card
my be the next step
it will be the support LP-PHY broadcom wifi aka 0x431514e4
ps
at next week iam waiting from ebay BCM4321 adapter with connector PCI-E<->miniPCI-E
becouse my nootebook not support miniPCI-E :(
paradox
May 23rd, 2009, 19:17
is any body use BCM4321 on current with ndis ?
gnemmi
May 23rd, 2009, 20:44
good
but curently iam try to support the amd64 engine for the old card
my be the next step
it will be the support LP-PHY broadcom wifi aka 0x431514e4
Good to know your working on the amd64 support too !
Count on me to help as much as I can. Just drop a private message, an e-mail or whatever you prefer and I'll set up a user for you to do as you see it fits :)
Best Regards and thank for your work !!
ps: sorry, no BCM4321 in here :(
paradox
May 23rd, 2009, 22:05
ooops ;) iam missed
i mean s/amd64/dma64/ DMA engine for bwi
ps
iam developed the driver bwi only for current
early version for stable with the link
iam posted above
gnemmi
May 25th, 2009, 23:42
ok then, will install -CURRENT for you in here as soon as you ask me to so you can get bwi to support 0x431514e4 ;)
Just send a PM or a mail so I can set up an account for you :D
Regards
nccs
July 29th, 2009, 02:45
I have a dell laptop model 1536 with a dell Wireless 1397 WLAN Mini card. ven/dev code 14e4:4315 sub 000c1028.
I believe this is a BCM4312. Does anyone know if there is any support for this chip other then ndis. Boradcom web site provides a linux driver. Is there any work in progress to port this drive to freebsd or include more support with the bwi.
thanks
Bill
paradox
August 1st, 2009, 14:39
your device work with ndis
about any progress to support
iam waiting it from ebay
gnemmi
August 4th, 2009, 12:48
will that support include 0x431514e4 too??
Edit: I just re read the post and realized it´s the same chip :e
gnemmi
August 4th, 2009, 16:29
This is interesting ... : http://forums.freebsd.org/showpost.php?p=34924&postcount=4
http://www.broadcom.com/support/802.11/linux_sta.php
paradox
August 4th, 2009, 17:34
will that support include 0x431514e4 too??
yes
and 4321/4322 (802.11n) too
gnemmi
August 4th, 2009, 18:00
As I promised, please count on me to test any and all patches you would like me to run or give you root access (ssh -> su-) to my machine or whatever it takes to help getting this card to work. Just ask for it and you'll get it. :)
Best Regards
Gonzalo
paradox
August 4th, 2009, 19:47
I already have bcm4321 adapter
waiting Adapter PCI-E
about 4315 I have not sure
is ordered this adapter or not for me my friends
paradox
August 11th, 2009, 14:44
so
i already have
PCIE-mini wifi 0x4315 /* 4328 802.11g 2.4Ghz band id */
PCIE-mini wifi 0x4328 /* 4321 802.11n dualband id */
and PCIE<->PCIE-mini adapter for my desktop
rgrover
August 16th, 2009, 11:55
I have BCM4321 on my Macbook3,1; and I'm running freeBSD7.2 on it. The following is the output from pciconf -lv.
none1@pci0:2:0:0: class=0x028000 card=0x0088106b chip=0x432814e4 rev=0x03 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM94321KFBG Broadcom 4321AGN 802.11a/b/g/draft-n Wi-Fi Solution'
It seems to me that the bwi driver being talked about here doesn't support my card yet; and 8-CURRENT won't solve my problem either. Any ideas?
paradox
August 16th, 2009, 12:27
It seems to me that the bwi driver being talked about here doesn't support my card yet
yes
and 8-CURRENT won't solve my problem either. Any ideas?
at now only through ndis
in the future through bwi
rgrover
August 17th, 2009, 07:20
yes
at now only through ndis
in the future through bwi
Do we know how long it may be before FreeBSD's bwi driver supports the BCM4321? Is it being actively developed? Can I help contribute with the development or testing?
I've looked high and low for the XP driver which I can convert using ndiswrapper into a .ko. I've tried a few, but they either don't work with my card or crash the kernel. Can anyone please point me to a driver I can use?
Thanks.
paradox
August 17th, 2009, 23:22
i am not sure but planed to finish 0x4315(4328) device in november(my be october)
starting develop the 0x4328(4321) device, will be after 0x4315 device
try to use the bcmwl5.sys vesion for i386 arch
or
bcmwl56.sys for amd64 arch
paradox
August 21st, 2009, 15:34
owners of the adapter - would you have used this driver http://paradox.lissyara.su/bwi.04b.tar.bz2 (freebsd 8) to show me your identification radio chip
This driver is still not working
but using it can be determined the radiochip
show me your dmesg
after compile and load if_bwi.ko
yanjchan
August 24th, 2009, 02:09
Hello everyone! Could someone here please help me get my Dell 1395 WLAN card working? (BCM4310 USB Controller I think)
I've looked at some other threads, but can't quite make out what I'm supposed to do. I've successfully made this card work on Linux with ndiswrapper, but I'm not sure how to on BSD.
Thanks in advance,
Jonathan
paradox
August 24th, 2009, 18:40
>yanjchan
show me your
uname -a
and
pciconf -lvcb
yanjchan
August 24th, 2009, 20:56
>paradox
Here it goes:
hds1# uname -a
FreeBSD hds1.ca.comcast.net 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
hds1# pciconf -lvcb
hostb0@pci0:0:0:0: class=0x060000 card=0x02731028 chip=0x2a008086 rev=0x0c hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile PM965/GM965/GL960 Express Processor to DRAM Controller'
class = bridge
subclass = HOST-PCI
cap 09[e0] = vendor (length 10) Intel cap 9 version 1
vgapci0@pci0:0:2:0: class=0x030000 card=0x02731028 chip=0x2a028086 rev=0x0c hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 965 Express Integrated Graphics Controller'
class = display
subclass = VGA
bar [10] = type Memory, range 64, base 0xf8000000, size 1048576, enabled
bar [18] = type Prefetchable Memory, range 64, base 0xd0000000, size 268435456, enabled
bar [20] = type I/O Port, range 32, base 0x1800, size 8, enabled
cap 05[90] = MSI supports 1 message
cap 01[d0] = powerspec 3 supports D0 D3 current D0
vgapci1@pci0:0:2:1: class=0x038000 card=0x02731028 chip=0x2a038086 rev=0x0c hdr=0x00
I attempted to install the XP drivers using ndisulator... But I'm rather confuzzled.
Thanks in advance!
paradox
August 24th, 2009, 21:15
plz full log from pciconf -lvcb
yanjchan
August 24th, 2009, 21:41
Eh, having some .xinitrc problems currently:
Anyways, the relevant part as I saw it was:
Broadcom 4310 USB Controller, even though it wasn't USB>
paradox
August 24th, 2009, 21:47
show it to me
yanjchan
August 24th, 2009, 23:25
I'm sorry for the horrible delay, but due to problems with my FreeBSD install, I am going to reinstall it. WHich would be best for the wireless, 32bit or 64bit?
paradox
August 25th, 2009, 00:13
depending from your pciconf
yanjchan
August 25th, 2009, 02:41
The forum wouldn't let me paste the whole thing, so here's the (what I think is) relevant section and a bit around:
vendor = 'Intel Corporation'
device = '82801H (ICH8 Family) SMBus Controller'
class = serial bus
subclass = SMBus
bar [20] = type I/O Port, range 32, base 0x1c20, size 32, enabled
none2@pci0:6:0:0: class=0x028000 card=0x000b1028 chip=0x431514e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM4310 USB Controller'
class = network
bar [10] = type Memory, range 64, base 0xf4000000, size 16384, enabled
cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0
cap 09[58] = vendor (length 120)
cap 05[e8] = MSI supports 1 message, 64 bit
cap 10[d0] = PCI-Express 1 endpoint
re0@pci0:7:0:0: class=0x020000 card=0x02731028 chip=0x816810ec rev=0x02 hdr=0x00
vendor = 'Realtek Semiconductor'
device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
class = network
subclass = ethernet
bar [10] = type I/O Port, range 32, base 0x5000, size 256, enabled
bar [18] = type Prefetchable Memory, range 64, base 0xf8610000, size 4096, enabled
bar [20] = type Prefetchable Memory, range 64, base 0xf8600000, size 65536, enabled
cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0
cap 05[50] = MSI supports 2 messages, 64 bit enabled with 1 message
cap 10[70] = PCI-Express 1 endpoint IRQ 0
cap 11[b0] = MSI-X supports 2 messages in map 0x20
cap 03[d0] = VPD
fwohci0@pci0:8:5:0: class=0x0c0010 card=0x02731028 chip=0x00f71217 rev=0x02hdr=0x00
vendor = 'O2 Micro Inc'
device = '0x00f71217 1394 Open Host Controller Interface'
class = serial bus
subclass = FireWire
bar [10] = type Memory, range 32, base 0xf8200000, size 4096, enabled
bar [14] = type Memory, range 32, base 0xf8202000, size 2048, enabled
cap 01[60] = powerspec 2 supports D0 D1 D2 D3 current D0
none3@pci0:8:5:2: class=0x080501 card=0x02731028 chip=0x71201217 rev=0x02hdr=0x00
paradox
August 25th, 2009, 09:27
none2@pci0:6:0:0: class=0x028000 card=0x000b1028 chip=0x431514e4 rev=0x01 hdr=0x00
0x4315
This adapter works only through the NDIS
best choice would be i386 platform
because under amd64 does not work stably
gnemmi
August 25th, 2009, 15:00
I just did a fresh BETA3 install.
Installed devel/ccache and net/bwi-firmware-kmod, then downloaded bwi.04b.tar.bz2, untarred into my root dir then cd, make, make install, kldload if_bwi and got a bunch of text on my dmesg ..
My card is a 0x431514e4 too .. but in case you are interested, I can post my dmesg.
Best regards
Gonzalo
yanjchan
August 25th, 2009, 15:02
Thanks for all the help paradox, I guess I'll just keep trying then. ;D
paradox
August 25th, 2009, 15:43
>qnemmi
My card is a 0x431514e4 too .. but in case you are interested, I can post my dmesg.
yes
show me
gnemmi
August 25th, 2009, 18:49
pciconf -lvcb (http://pastebin.com/f1f40900c)
dmesg (http://pastebin.com/d3d028a1d) after kldload if_bwi
Hope that helps
If you need anything else, just ask :D
Regards
Gonzalo
paradox
August 25th, 2009, 18:57
thanx
bwi0: PHY: type 5, rev 1, ver 6
bwi0: RF: manu 0x17f, type 0x2062, rev 2
is all that I need at the moment
gnemmi
August 25th, 2009, 18:59
you are welcome :)
paradox
August 25th, 2009, 19:43
i have two version wifi
the same
0x4315
bwi0: PHY: type 5, rev 1, ver 6
bwi0: RF: manu 0x17f, type 0x2062, rev 2
and
0x4328
bwi0: PHY: type 4, rev 2, ver 5
bwi0: RF: manu 0x17f, type 0x2055, rev 4
so iam looking for for another PHY/RF radio
as example
type 0x2063
and
type 0x2056
gnemmi
August 25th, 2009, 19:59
have you tried sending PM to those who posted on this thread in order to see if some of them can help?
Would you like me to start a thread on -current@ asking for help?
Eponasoft
August 25th, 2009, 21:49
OK I've got a problem getting this bugger to work. I built and installed the bwi.03 driver (as this was the one noted for FreeBSD 7.2), and it appears to work, but I have no idea how to actually use it. :(
All relevant data follows.
pceconf -lvcb
bwi0@pci0:3:0:0: class=0x028000 card=0x04221468 chip=0x431114e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Dell Wireless 1390 WLAN Mini-PCI Card'
class = network
bar [10] = type Memory, range 32, base 0xd0100000, size 16384, enabled
cap 01[40] = powerspec 2 supports D0 D1 D2 D3 current D0
cap 05[58] = MSI supports 1 message
cap 10[d0] = PCI-Express 1 legacy endpoint
dmesg
bwi0: <Broadcom BCM4311 802.11 Wireless Lan> mem 0xd0100000-0xd0103fff irq 16 at device 0.0 on pci3
bwi0: [GIANT-LOCKED]
bwi0: [ITHREAD]
bwi0: regwin: chipcommon (0x800), rev 17, vendor 0x4243
bwi0: BBP: id 0x4311, rev 0x1, pkg 0
bwi0: nregwin 4, cap 0x0064000d
bwi0: regwin: 802.11 MAC (0x812), rev 10, vendor 0x4243
bwi0: MAC: rev 10
bwi0: regwin: usb 1.1 host (0x817), rev 3, vendor 0x4243
bwi0: regwin: pci express (0x820), rev 1, vendor 0x4243
bwi0: clksrc CS_OSC
bwi0: clkfreq min 990000, max 1010000
bwi0: power on delay 3
bwi0: bus rev 1
bwi0: pci express is enabled
bwi0: card flags 0x4a49
bwi0: 0th led, act 2, lowact 0
bwi0: 1th led, act 5, lowact 0
bwi0: 2th led, act 4, lowact 0
bwi0: 3th led, act 0, lowact 0
bwi0: 802.11 MAC was already disabled
bwi0: PHY is linked
bwi0: PHY: type 2, rev 8, ver 4
bwi0: PHY: 802.11G attach
bwi0: RF: manu 0x17f, type 0x2050, rev 2
bwi0: bus rev 1
bwi0: PHY is linked
bwi0: 32bit bus space
bwi0: max txpower from sprom: 74 dBm
bwi0: invalid antenna gain in sprom
bwi0: ant gain 8 dBm
bwi0: region/domain max txpower 76 dBm
bwi0: max txpower 74 dBm
bwi0: sprom idle tssi: 0xff3e
bwi0: TSSI-TX power map:
85 85 84 84 84 83 83 83
82 82 81 81 80 80 79 79
78 78 77 77 77 76 76 74
74 73 73 72 71 70 70 69
68 67 66 65 64 63 62 61
60 59 57 56 54 53 51 50
48 46 44 42 39 37 35 32
30 26 23 19 15 11 6 1
bwi0: idle tssi0: 62
bwi0: bus rev 1
bwi0: locale: 0
bwi0: WARNING: using obsoleted if_watchdog interface
bwi0: Ethernet address: 00:19:7e:5e:8c:a3
KDE3's "Network Tools" shows the device listed as "Wireless Interface (bwi0)" but gives its state as "inactive". So then...how do I activate it? I seem to be missing something here...
paradox
August 26th, 2009, 11:13
show me
ifconfig bwi0
and try read this article
http://www.freebsd.org/doc/en/books/handbook/network-wireless.html
Eponasoft
August 26th, 2009, 22:31
ifconfig bwi0
bwi0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:19:7e:5e:8c:a3
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 1 (2412 Mhz 11b)
authmode OPEN privacy OFF bmiss 7 scanvalid 60 bintval 0
Hrm...that article is highly technical and most of it just flies over my head. Is there an idiot's version of it somewhere? :)
Gusi
August 28th, 2009, 09:30
Hi,
I've been testing the driver for a while, my system is :
FreeBSD gusiport 8.0-BETA3 FreeBSD 8.0-BETA3 #9: Mon Aug 24 22:14:53 UTC 2009 gus@gusiport:/usr/obj/usr/src/sys/CUSTOM i386
and my card :
bwi0@pci0:12:0:0: class=0x028000 card=0x00071028 chip=0x431214e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM4310 UART (Wireless Ethernet Adapter)'
class = network
bar [10] = type Memory, range 32, base 0xf1ffc000, size 16384, enabled
cap 01[40] = powerspec 2 supports D0 D1 D2 D3 current D0
cap 05[58] = MSI supports 1 message
cap 10[d0] = PCI-Express 1 legacy endpoint max data 128(128) link x1(x1)
and I found those errors while being quite near to my AP (which is a FBSD 7.2 machine with and Atheros card) :
bwi0: bwi_intr: intr PHY TX error
bwi0: bwi_restart begin, help!
bwi0: firmware rev 0x0127, patch level 0x000e
The connection remains dead until an /etc/rc.d/netif restart is made. I seen this kind of errors quite frequently. If I try large transfer it happens. If I try no activity, it seems to remain stable. If I try web activity, it happens from time to time.
The error happens at if_bwi.c:1650.
With a pcmcia atheros card (not mine) I didn't saw those problems. Should it (the bwi card) be able to recover automagically ?
Greets,
Gusi
everypot
August 31st, 2009, 04:02
I did the same. But mine doesn't work...
# ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM, WOL_UCAST,WOL_MCAST,WOL_MAGIC>
ether 00:23:5a:d1:70:84
inet 192.168.1.107 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
pciconf -lvcb
bwi0@pci0:2:0:0: class=0x028000 card=0x04b514e4 chip=0x431514e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
class = network
cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0
cap 09[58] = vendor (length 120)
cap 05[e8] = MSI supports 1 message, 64 bit
cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1)
re0@pci0:3:0:0: class=0x020000 card=0x389e17aa chip=0x813610ec rev=0x02 hdr=0x00
vendor = 'Realtek Semiconductor'
device = 'RTL8100E/RTL8101E/RTL8102E-GR (RTL8100-8101E-8102E-PCIEXPRESS)'
class = network
subclass = ethernet
bar [10] = type I/O Port, range 32, base 0x2000, size 256, enabled
bar [18] = type Prefetchable Memory, range 64, base 0x92010000, size 4096, enabled
bar [20] = type Prefetchable Memory, range 64, base 0x92000000, size 65536, enabled
cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0
cap 05[50] = MSI supports 1 message, 64 bit enabled with 1 message
cap 10[70] = PCI-Express 2 endpoint IRQ 2 max data 128(256) link x1(x1)
cap 11[ac] = MSI-X supports 2 messages in map 0x20
cap 03[cc] = VPD
dmesg
bwi0: PHY: type 5, rev 1, ver 6
phy_att 4
phy_att 5
bwi0: RF: manu 0x17f, type 0x2062, rev 2
bwi0: unsupported 11LP PHY, rev 1
att fa 4
device_attach: bwi0 attach returned 6
re0: link state changed to DOWN
re0: link state changed to UP
I just did a fresh BETA3 install.
Installed devel/ccache and net/bwi-firmware-kmod,...........
My card is a 0x431514e4 too .. but in case you are interested, I can post my dmesg.
Best regards
Gonzalo
paradox
August 31st, 2009, 14:12
this log I need to determine which versions radiochip in the broadcom
as i see
only versions 0x2062 in model 0x4315
but i know there exist is 0x2063
I would like to know who has such
my be version 2063 inside asus-wl router
everypot
September 2nd, 2009, 19:56
My Lenovo s10-2 has BCM4315 ( Lenovo says it is a BCM4312. wtf.). Cannot make it work on FreeBSD 8 beta 3.
So BCM4315 is not supported on FreeBSD 8?
paradox
September 2nd, 2009, 20:02
not yet
everypot
September 2nd, 2009, 21:33
not yet
Hi Paradox,
I tried to use ndisgen and/or NDIS to convert the windows driver. I got the .ko files successful:
# pwd
/usr/src/sys/modules/if_ndis
# ls
Makefile if_ndis.ko opt_usb.h
bcmwl5.inf if_ndis.o pccarddevs.h
bcmwl5.inf.ascii if_ndis_pccard.o pci_if.h
bcmwl5.sys if_ndis_pci.o usb_if.h
bcmwl5_sys.ko if_ndis_usb.o usbdevs.h
card_if.h ndis_driver_data.h
if_ndis.kld opt_bus.h
# kldload ndis
#kldload if_ndis
# kldload bcmwl5_sys.ko
kldload: bcmwl5_sys.ko is not in the module path
# kldstat
Id Refs Address Size Name
1 47 0xc0400000 d01484 kernel
2 1 0xc1102000 a63c if_re.ko
3 1 0xc110d000 362e0 if_bwi.ko
4 1 0xc637c000 9000 i915.ko
5 1 0xc6385000 14000 drm.ko
6 2 0xc7c66000 27000 linux.ko
7 1 0xca070000 8000 linprocfs.ko
8 1 0xcb0eb000 19000 snd_hda.ko
9 1 0xcb104000 57000 sound.ko
10 1 0xcbae9000 d000 if_ndis.ko
11 1 0xcc0ee000 19000 ndis.ko
ifconfig shows no wireless card. I don't know what's wrong.
Followed instruction from:
http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html
and
http://dannyman.toldme.com/2005/01/05/freebsd-howto-ndisulate-windows-drivers/
paradox
September 2nd, 2009, 21:41
# kldload bcmwl5_sys.ko
kldload: bcmwl5_sys.ko is not in the module
try to put .ko module in the dir /boot/modules/
richardpl
September 2nd, 2009, 22:56
Instead of ndiscvt you should really use ndisgen(8) instead, it is available for FreeBSD 6 and higher.
everypot
September 3rd, 2009, 07:39
try to put .ko module in the dir /boot/modules/
---------------------------------------------------------
I put bcmwl5_sys.ko(by ndisgen), if_ndis.ko & ndis.ko (by ndiscvt)into /boot/modules and rebooted the system. Now I get
ifconfig
ndis0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:21:00:f7:46:35
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
# pciconf -lvcb
kldstat
Id Refs Address Size Name
1 49 0xc0400000 d01484 kernel
2 1 0xc1102000 a63c if_re.ko
3 1 0xc110d000 1acb4 snd_hda.ko
4 2 0xc1128000 62018 sound.ko
5 1 0xc118b000 5a90 acpi_video.ko
6 2 0xc1191000 f590 if_ndis.ko
7 3 0xc11a1000 1e030 ndis.ko
8 1 0xc11c0000 362e0 if_bwi.ko
9 1 0xc11f7000 1afc78 bcmwl5_sys.ko
10 1 0xc6271000 27000 linux.ko
11 1 0xc643d000 9000 i915.ko
12 1 0xc6446000 14000 drm.ko
In rc.conf
ifconfig_bwi0="WPA DHCP"
ifconfig_ndis0="WPA DHCP"
loader.conf
if_ndis_load="YES"
if_bwi_load="YES"
if_re_load="YES"
snd_hda_load="YES"
bcmwl5_sys_load="YES"
acpi_video_load="YES"
paradox
September 3rd, 2009, 08:05
good
next step
http://www.freebsd.org/doc/en/books/handbook/network-wireless.html
:)
everypot
September 4th, 2009, 16:13
good
next step
http://www.freebsd.org/doc/en/books/handbook/network-wireless.html
:)
Thanks a lot.
I haven't got it work yet. But I'm trying. Hopefully it will be active soon.
everypot
September 8th, 2009, 00:56
I tried
wpa_supplicant -B -c /etc/wpa_supplicant.conf -i ndis0
ioctl[SIOCG80211, op 98, len 32]: Invalid argument
Failed to initialize driver interface
ELOOP: remaining socket: sock=4 eloop_data=0x28406140 user_data=0x2840d040 handler=0x8069f40
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
#eapol_version=1
#ap_scan=1
network={
scan_ssid=1
ssid="myid"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
psk="mypassword"
priority=2
}
paradox
September 8th, 2009, 07:45
wpa_supplicant -Dndis -c /etc/wpa_supplicant.conf -i ndis0
paradox@hosting[10:44:02]~> wpa_supplicant
usage:
wpa_supplicant [-BddhKLqqstuvwW] [-P<pid file>] [-g<global ctrl>] \
-i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] [-p<driver_param>] \
[-b<br_ifname>] [-f<debug file>] \
[-N -i<ifname> -c<conf> [-C<ctrl>] [-D<driver>] \
[-p<driver_param>] [-b<br_ifname>] ...]
drivers:
bsd = BSD 802.11 support (Atheros, etc.)
ndis = Windows NDIS driver
wired = wpa_supplicant wired Ethernet driver
options:
-b = optional bridge interface name
-B = run daemon in the background
-c = Configuration file
-C = ctrl_interface parameter (only used if -c is not)
-i = interface name
-d = increase debugging verbosity (-dd even more)
-D = driver name
-g = global ctrl_interface
-K = include keys (passwords, etc.) in debug output
-t = include timestamp in debug messages
-h = show this help text
-L = show license (GPL and BSD)
-p = driver parameters
-P = PID file
-q = decrease debugging verbosity (-qq even less)
-s = log output to syslog instead of stdout
-v = show version
-w = wait for interface to be added, if needed
-W = wait for a control interface monitor before starting
-N = start describing new interface
example:
wpa_supplicant -Dbsd -iwlan0 -c/etc/wpa_supplicant.conf
everypot
September 9th, 2009, 01:17
wpa_supplicant -Dndis -c /etc/wpa_supplicant.conf -i ndis0
I rebooted and looks like it's closer to success.Not yet, cannot ping www.google.com (but later, I got it work! see the end of this post~~):
ifconfig
ndis0:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>metric 0 mtu 2290
ether 00:21:00:f7:46:35
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: associated
wlan0:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:21:00:f7:46:35
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
status: associated
ssid myid channel 6 (2437 Mhz 11g) bssid 00:18:e7:30:72:5c
country US authmode WPA privacy OFF txpower 0 bmiss 7 mcastrate 6
mgmtrate 6 scanvalid 60 protmode CTS roaming MANUAL bintval 0
Cannot bring ndis0 up:
# ifconfig ndis0 up scan
ifconfig: unable to get scan results
wlan0 can:
#ifconfig wlan0 up scan
SSID/MESH ID BSSID CHAN RATE S:N INT CAPS
07FX10069425 00:12:0e:71:0f:9a 6 54M -83:-96 100 EP
myid 00:18:e7:30:72:5c 6 54M -46:-96 100 EPS
Mikeys WiFi... 00:18:f8:a7:06:1f 6 54M -55:-96 100 EPS
........
My /etc/rc.conf:
ifconfig_bwi0="WPA DHCP"
ifconfig_ndis0="WPA DHCP"
ifconfig_wlan0="WPA DHCP"
wpa_supplicant_enable="YES"
wlans_ndis0="wlan0"
all are required to get ndis0 and wlan0 "status: associate".
At this point, I cannot ping www.google.com.
Then I did something magic
# dhclient wlan0
After that, I'm writing this post by wireless!!!
One last question: anyone know how to run dhclient wlan0 at boot time?
grocha
September 9th, 2009, 06:47
One last question: anyone know how to run dhclient wlan0 at boot time?
As I understand this line ifconfig_wlan0="WPA DHCP" in /etc/rc.conf shoul'd do that. At least it does for me ;)
paradox
September 9th, 2009, 09:19
At this point, I cannot ping www.google.com.
Then I did something magic
# dhclient wlan0
try to look at ps ax|grep dhclient before run from console
# dhclient wlan0
everypot
September 9th, 2009, 18:21
try to look at ps ax|grep dhclient before run from console
# dhclient wlan0
ps ax|grep dhclient
1383 0 S+ 0:00.01 grep dhclient
everypot
September 9th, 2009, 18:28
As I understand this line ifconfig_wlan0="WPA DHCP" in /etc/rc.conf shoul'd do that. At least it does for me ;)
If I comment that off, I will get (ifconfig) "status: no carrier" for both ndis0 and wlan0. And wouldn't be able to get the network working. And dhclient wlan0/ndis0 will give "no link... give up". Also, I notice that at boot time there are messages like "failed to start wpa_supplicant:... Op 98.. invalid argument...".
Enable "ifconfig_wlan0="WPA DHCP" solved the problem, only takes longer to boot:"waiting 30s for the default route interface.....ndis0:link state change to UP ................"
paradox
September 9th, 2009, 18:28
wpa_supplicant_enable="YES"
wlans_ndis0="wlan0"
ifconfig_wlan0="WPA DHCP"
should be enough
remove another unused line
everypot
September 9th, 2009, 18:56
wpa_supplicant_enable="YES"
wlans_ndis0="wlan0"
ifconfig_wlan0="WPA DHCP"
should be enough
remove another unused line
Yes. You are right. I just tested it. Still need to use "dhclient wlan0" to bring the network up. But the error message at boot time"waiting 30s for the default route interface.....ndis0:link state change to UP ................" disappeared!
Great. Thank you for all the help! And hope the information can be useful to other people.
Seeker
September 13th, 2009, 23:35
So..., what is a current status / solution for
BCM94321KFBG Broadcom 4321AGN 802.11a/b/g/draft-n Wi-Fi Solution
I really need that driver for FreeBSD 7.2 ;)
paradox
September 14th, 2009, 14:39
ndis supported it ;-)
Seeker
September 14th, 2009, 17:08
That I know! :P
arksu
October 13th, 2009, 09:40
FreeBSD 8.0 RC1
pciconf:
none2@pci0:5:0:0: class=0x028000 card=0xe003105b chip=0x431514e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
class = network
cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0
cap 09[58] = vendor (length 120)
cap 05[e8] = MSI supports 1 message, 64 bit
cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1)
im try make ndis kernel module from windows xp drivers than 100% work on native windows xp on this hardware
after run
kldload bcmwl5_sys.ko
have this:
Oct 13 11:51:28 kernel: ndis0: <Broadcom 802.11g Network Adapter> irq 17 at device 0.0 on pci5
Oct 13 11:51:28 kernel: ndis0: [ITHREAD]
Oct 13 11:51:28 kernel: ndis0: NDIS API version: 5.1
Oct 13 11:51:28 kernel: ndis0: NDIS ERROR: c000138d (unknown error)
Oct 13 11:51:28 kernel: ndis0: init handler failed
Oct 13 11:51:28 kernel: device_attach: ndis0 attach returned 6
also part of dmesg:
pci2: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.1 on pci0
pci5: <ACPI PCI bus> on pcib2
pci5: <network> at device 0.0 (no driver attached)
can anybody help me?
mix_room
October 13th, 2009, 14:40
I just got FreeBSD 8.0 installed on my HP 2140. Most things (seem) to be working. However the wireless networking is not working at all.
I tried installing if_bwi (the one included in src), but that didn't do anything. Dmesg didn't change one bit.
I then installed http://paradox.lissyara.su/bwi.04b.tar.bz2.
Now dmesg is much more interesting
bwi0: <Broadcom BCM432B 802.11 Wireless Lan> mem 0xe8000000-0xe8003fff irq 16 at device 0.0 on pci8
pci timeout fixx!
bwi0: [GIANT-LOCKED]
bwi0: [ITHREAD]
_sb_coresba: current core is 0x18001000
_sb_scan: scan bus 0x18000000 assume 1 cores
_sb_scan: there are 7 cores in the chip(0x4322)
_sb_scan: found 7 cores on bus 0x18000000
sprom_read_pci:
[000]2801,[001]0000,[002]1380,[003]103c,[004]0078,[005]6dbe,[006]0000,[007]2bc4,
[008]2a64,[009]2964,[010]2c64,[011]3ce7,[012]46ff,[013]47ff,[014]0c00,[015]0820,
[016]0040,[017]1002,[018]0000,[019]ffff,[020]ffff,[021]ffff,[022]ffff,[023]ffff,
[024]ffff,[025]ffff,[026]ffff,[027]ffff,[028]ffff,[029]ffff,[030]ffff,[031]ffff,
[032]ffff,[033]ffff,[034]ffff,[035]ffff,[036]ffff,[037]ffff,[038]ffff,[039]ffff,
[040]ffff,[041]ffff,[042]1010,[043]0005,[044]ffff,[045]ffff,[046]ffff,[047]ffff,
[048]432b,[049]8000,[050]0002,[051]0000,[052]1800,[053]1800,[054]0000,[055]0000,
[056]ffff,[057]ffff,[058]ffff,[059]ffff,[060]ffff,[061]ffff,[062]ffff,[063]ffff,
sprom_read_pci:
[000]2801,[001]0000,[002]1380,[003]103c,[004]0078,[005]6dbe,[006]0000,[007]2bc4,
[008]2a64,[009]2964,[010]2c64,[011]3ce7,[012]46ff,[013]47ff,[014]0c00,[015]0820,
[016]0040,[017]1002,[018]0000,[019]ffff,[020]ffff,[021]ffff,[022]ffff,[023]ffff,
[024]ffff,[025]ffff,[026]ffff,[027]ffff,[028]ffff,[029]ffff,[030]ffff,[031]ffff,
[032]ffff,[033]ffff,[034]ffff,[035]ffff,[036]ffff,[037]ffff,[038]ffff,[039]ffff,
[040]ffff,[041]ffff,[042]1010,[043]0005,[044]ffff,[045]ffff,[046]ffff,[047]ffff,
[048]432b,[049]8000,[050]0002,[051]0000,[052]1800,[053]1800,[054]0000,[055]0000,
[056]ffff,[057]ffff,[058]ffff,[059]ffff,[060]ffff,[061]ffff,[062]ffff,[063]ffff,
[064]5372,[065]2400,[066]0a00,[067]0000,[068]0001,[069]0000,[070]0021,[071]00c9,
[072]6095,[073]4445,[074]0002,[075]83ff,[076]ffff,[077]ffff,[078]0303,[079]0202,
[080]ffff,[081]0033,[082]ffff,[083]ffff,[084]ffff,[085]ffff,[086]ffff,[087]1301,
[088]1301,[089]ffff,[090]ffff,[091]ffff,[092]ffff,[093]ffff,[094]ffff,[095]ffff,
[096]2048,[097]fe82,[098]1633,[099]fa92,[100]3e40,[101]403c,[102]fe9b,[103]15a8,
[104]fabc,[105]fe87,[106]1637,[107]fa8e,[108]feab,[109]163a,[110]faaf,[111]0000,
[112]2048,[113]fe89,[114]1665,[115]fa92,[116]3e40,[117]403c,[118]fe92,[119]153f,
[120]fac6,[121]fe9a,[122]1591,[123]fabc,[124]fea1,[125]15b0,[126]fab4,[127]0000,
[128]ffff,[129]ffff,[130]ffff,[131]ffff,[132]ffff,[133]ffff,[134]ffff,[135]ffff,
[136]ffff,[137]ffff,[138]ffff,[139]ffff,[140]ffff,[141]ffff,[142]ffff,[143]ffff,
[144]ffff,[145]ffff,[146]ffff,[147]ffff,[148]ffff,[149]ffff,[150]ffff,[151]ffff,
[152]ffff,[153]ffff,[154]ffff,[155]ffff,[156]ffff,[157]ffff,[158]ffff,[159]ffff,
[160]0000,[161]0000,[162]0000,[163]0000,[164]0000,[165]0000,[166]0000,[167]0000,
[168]0000,[169]0000,[170]0000,[171]0000,[172]0000,[173]0000,[174]0000,[175]0000,
[176]0000,[177]0000,[178]0000,[179]0000,[180]0000,[181]0000,[182]0000,[183]0000,
[184]0000,[185]0000,[186]0000,[187]0000,[188]0000,[189]0000,[190]0000,[191]0000,
[192]0000,[193]0000,[194]0000,[195]0000,[196]0000,[197]0000,[198]0000,[199]0000,
[200]0000,[201]0000,[202]0000,[203]0000,[204]0000,[205]ffff,[206]ffff,[207]ffff,
[208]ffff,[209]ffff,[210]ffff,[211]ffff,[212]ffff,[213]ffff,[214]ffff,[215]ffff,
[216]ffff,[217]ffff,[218]ffff,[219]9808,
initvars_srom_pci: sromrev 0x0008
initvars_srom_pci: boardrev 0x2400
initvars_srom_pci: boardflags 0x00000a00
initvars_srom_pci: boardflags2 0x00000001
initvars_srom_pci: boardtype 0x1380
initvars_srom_pci: boardnum 0x6095
initvars_srom_pci: cc 0x0000
initvars_srom_pci: regrev 0x02
initvars_srom_pci: ledbh[] 0xff,0x83,0xff,0x03
initvars_srom_pci: pa0b[] 0xfe82,0x1633,0xfa92
initvars_srom_pci: pa0itssit 0x20
initvars_srom_pci: pa0maxpwr 0x48
initvars_srom_pci: opo 0x00
initvars_srom_pci: aa2g 0x03
initvars_srom_pci: aa5g 0x03
initvars_srom_pci: ag[] 0x02
initvars_srom_pci: pa1b[] 0xfe9b,0x15a8,0xfabc
initvars_srom_pci: pa1lob[] 0xfe87,0x1637,0xfa8e
initvars_srom_pci: pa1hib[] 0xfeab,0x163a,0xfaaf
initvars_srom_pci: pa1itssit 0x3e
initvars_srom_pci: pa1maxpwr 0x40
initvars_srom_pci: pa1lomaxpwr 0x40
initvars_srom_pci: pa1himaxpwr 0x3c
initvars_srom_pci: rssismf2g 0x0f
initvars_srom_pci: rssismc2g 0x0f
initvars_srom_pci: rssisav2g 0x07
initvars_srom_pci: tri2g 0xff
initvars_srom_pci: bxa2g 0x03
initvars_srom_pci: rxpo2g 0xff
initvars_srom_pci: rssismf5g 0x0f
initvars_srom_pci: rssismc5g 0x0f
initvars_srom_pci: rssisav5g 0x07
initvars_srom_pci: tri5gl 0xff
initvars_srom_pci: tri5g 0xff
initvars_srom_pci: tri5gh 0xff
initvars_srom_pci: bxa5g 0x03
initvars_srom_pci: rxpo5g 0xff
initvars_srom_pci: txchain 0x03
initvars_srom_pci: rxchain 0x03
initvars_srom_pci: antswitch 0x00
initvars_srom_pci: ccode DE
initvars_srom_pci: macaddr 00:21:00:c9:60:95
initvars_srom_pci: il0macaddr 00:00:00:00:00:00
initvars_srom_pci: et1macaddr 00:00:00:00:00:00
initvars_srom_pci: leddc ffff
have PMU
need leddc
need check pcie BFL2_PCIEWAR_OVR
corerev 16
card flags 0x0000
att 1
0th led, act 2, lowact 0
1th led, act 0, lowact 0
2th led, act 0, lowact 0
3th led, act 0, lowact 0
att 2
att 3
64bit bus space
att 4
late 1
phy_att 1
sbflags 100c0001
phy_att 2
phy_att 3
bwi0: PHY: type 4, rev 4, ver 8
phy_att 4
phy_att 5
bwi0: RF: manu 0x17f, type 0x2056, rev 3
bwi0: unsupported 11N PHY, rev 4
att fa 4
device_attach: bwi0 attach returned 6
and pciconf -lvcb
bwi0@pci0:8:0:0: class=0x028000 card=0x1380103c chip=0x432b14e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
class = network
cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0
cap 09[58] = vendor (length 120)
cap 05[e8] = MSI supports 1 message, 64 bit
cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1)
However it does not show up in the output of ifconfig.
kldstat
1 14 0xc0400000 b75f04 kernel
2 1 0xc48c7000 9000 i915.ko
3 1 0xc48d0000 14000 drm.ko
4 1 0xc4fc2000 1a000 bwi_v3_ucode.ko
5 1 0xc4fdc000 32000 if_bwi.ko
Have I forgotten to do something? It is usually something simple, but I have no idea what it would be this time.
blstuart
October 13th, 2009, 14:53
The chip=432b14e4 identifies the chipset as the 4322. The current bwi driver doesn't support his chip. (If I'm mistaken, I'd love to know.) However, I have gotten the Windows driver to work with ndisgen. In particular I used the bcmwl5 driver. That was also on an HP laptop, btw.
mix_room
October 13th, 2009, 15:18
The chip=432b14e4 identifies the chipset as the 4322. The current bwi driver doesn't support his chip. (If I'm mistaken, I'd love to know.) However, I have gotten the Windows driver to work with ndisgen. In particular I used the bcmwl5 driver. That was also on an HP laptop, btw.
I downloaded the bcmwl5 driver from the HP site. Seems to work. I see the interface now
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:21:00:c9:60:95
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
But I cannot get it to scan for networks. I know there is one here in the office, but I cannot remember the SSID. Would like to scan. But only get the reply
hp2140# ifconfig ndis0 scan
ifconfig: unable to get scan results
Suggestions?
blstuart
October 13th, 2009, 16:05
Things are a little different now. First you need to create a clone device:
ifconfig wlan0 create wlandev ndis0
Then bring wlan0 up:
ifconfig wlan0 up
And I've had to manually give it a channel, though the scan will see APs on any channel. However, if I don't manually give it a channel, it will stay on channel 1 and not be able to scan.
ifconfig wlan0 chanlist 11
Then scan:
ifconfig wlan0 list scan
This will list the currently known APs. You can force it to look for new ones with:
ifconfig wlan0 scan
but this will disassociate you from your currently associated AP.
One last tip, when assigning a WEP key, do so with:
ifconfig wlan0 nwkey ...
That will do all the steps that are needed to bring up WEP. On the other hand, if you're using WPA, then never mind...
richardpl
October 14th, 2009, 00:44
In wpa case, there is wpa_supplicant, just use -D ndis driver flag (and not bsd one)
mix_room
October 20th, 2009, 17:53
Thanks to your help I have managed to get my wireless up and running. At least at work, but that is using only a simple un-encrypted connection with landing-page for authentication.
Im not trying to set it up at home. Doesn't work as well unfortunately.
wpa_supplicant starts fine with the -D ndis switch.
BUT, when I never seem to be able to get a stable connection. Keep seeing the following:
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Not quite sure why they arise, I cannot reliably regenerate the errors. After several attemps I was able to get a DHCP lease, but there is still no connection to the remainder of the network.
(Perhaps this post is in the wrong location, but I rather continue this thread which already contains most of the information regarind the Broadcom WiFi stuff)
mix_room
October 30th, 2009, 13:47
I realise that bumping threads might not be appropriate, and appologize for doing so.
I would like some form of answer. Either that this is a common error, and that I have to wait for hell to freeze over, or that no one has ever seen it before, and that I should post a bug-report somewhere.
lockdoc
November 2nd, 2009, 10:37
Unfortunately I cannot get the http://paradox.lissyara.su/bwi.04b.tar.bz2 to compile
When doing "make" it shows me
Warning: Object directory not changed from original /data/bwi.04b @ -> /usr/src/sys
ln: @: Operation not supported
*** Error Code 1
Im Using FreebSD 8 RC1 with a Dell Wireless 1390 Wlan Mini PCI Card (On Dell Latitude D420) With a BCM4311 Chip.
Judge
November 29th, 2009, 17:55
Paradox,
Thanks for your work in getting a BWI driver; I found your thread in a google search, grabbed the bwi.03 source, compiled and installed and it works like a charm on my friend's Dell Latitude D600 (using the BCM4309 chipset).
Only one slight problem which I hope has been resolved someplace and I am merely missing it.
After several minutes of regular web browsing, but nearly immediately while trying to download large files, the network simply refuses to connect. The wireless device still shows associated with the AP but pings result in DNS lookup failures.
There's agreat deal of activity in the messages log;
bwi0: no need to adjust RF/BBP attentuation
bwi0: current tx power 61
bwi0: tssi avg 22
bwi0: no DS tssi
bwi0: no OFDM tssi
bwi0: tssi0 20, tssi1 21, tssi3 21
There repeat often.
Running FBSD 7.x BTW.
Hopeing you can provide me a clue here. Thanks.
Ironman
November 29th, 2009, 18:08
Can someone help me to set up Broadcom 4315 under Freebsd 8.0?
FreeBSD 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sun Nov 29 17:16:50 UTC 2009 root@:/usr/obj/usr/src/sys/newkern amd64
pciconf -lvbc
none3@pci0:2:0:0: class=0x028000 card=0x1508103c chip=0x431514e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
class = network
bar [10] = type Memory, range 64, base 0xd6000000, size 16384, enabled
cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0
cap 09[58] = vendor (length 120)
cap 05[e8] = MSI supports 1 message, 64 bit
cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1)
It seems, that ndis doesn't work with windows7 drivers, because I got kernel panic, after I've tried to load module.
Is there any other solution?
mix_room
November 30th, 2009, 09:51
It seems, that ndis doesn't work with windows7 drivers, because I got kernel panic, after I've tried to load module.
Is there any other solution?
Have you tried the drivers for other windows versions (XP or Vista)?
richardpl
November 30th, 2009, 13:08
You need to use 64bit drivers for amd64
Ironman
November 30th, 2009, 15:20
I can't find XPx64 drivers. Can anybody help?
blstuart
November 30th, 2009, 16:27
I can't find XPx64 drivers. Can anybody help?
The copy of the bcmwl5 XP driver package I found (a .exe from HP's site, IIRC) had both a bcmwl5.sys and bcmwl564.sys. I'm pretty sure the latter is the 64-bit driver. However, I've only used the 32-bit one, so I can't say how well ndisgen plays with the 64-bit one.
Purple_Q
November 30th, 2009, 16:30
I'm one of the lucky dogs to have that dreaded Broadcom wireless card installed in my laptop.
I've seen that to get this working (supposedly), there are two methods; installing the bwi port, or finding MS drivers and using ndis.
Anyone got either of these working for them? Any insights as to which way would be best to go about this?
--Q
gnemmi
November 30th, 2009, 21:41
Anyone got either of these working for them? Any insights as to which way would be best to go about this?
--Q
Get rid of it .. that´s the best way to go about it.
I did .. it was either that or wait for someone to get it to work .. and that ain´t gonna happen anytime soon .. so I got up and bought myself an intel 3945ABG. No more problem0
Judge
December 1st, 2009, 14:07
I'm one of the lucky dogs to have that dreaded Broadcom wireless card installed in my laptop.
I've seen that to get this working (supposedly), there are two methods; installing the bwi port, or finding MS drivers and using ndis.
Anyone got either of these working for them? Any insights as to which way would be best to go about this?
--Q
I'm a fairly stubborn person, so while the prospect of simply purchasing a new and supported card was tempting, I opted instead to press on.
NDIS did not work for me at all. I found the precise driver set, extracted the .inf and .sys... ran ndisgen successfully and when I attempted to kldload the driver ko file... the system hung.
My only other option were the unsupported bwi drivers. As mentioned previously, I downloaded paradox's bwi.03 driver set; compiled and installed. It works, to a degree. If I d/l something it just ceases to function, however after getting everything d/l via wired just brwsing the web or grabbing pdf's at random doesn't seem to make it happen. When it does I am forced to restart netif to clear the problem. Still hoping Paradox will respond to my above post.
I understand it's been fixed in FBSD 8, which I see announced yesterday as being stable I think.
blstuart
December 1st, 2009, 15:40
Get rid of it .. that´s the best way to go about it.
I did .. it was either that or wait for someone to get it to work .. and that ain´t gonna happen anytime soon .. so I got up and bought myself an intel 3945ABG. No more problem0
I looked into doing exactly that. But I ran across reports of HP having a [unspeakable in polite company] whitelist in the BIOS that would refuse to do anything if the wireless card was unrecognized. Had I known this ahead of time, I would have bought from a manufacturer who doesn't engage in this detestable practice. But I was stuck and did manage to get the NDIS drivers to work. It was a little hit and miss, though. When I built it under 8.0-RC2, it didn't work, but did under 8.0-STABLE. No idea if something actually changed or there was operator error, but it seems to be working now.
rgrover
December 10th, 2009, 05:57
Thanks for your continued work on the Broadcom drivers. Any estimate on when there might be a driver for BCM4321?
I have BCM4321 on my Macbook3,1; and I'm running freeBSD7.2 on it. The following is the output from pciconf -lv.
none1@pci0:2:0:0: class=0x028000 card=0x0088106b chip=0x432814e4 rev=0x03 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM94321KFBG Broadcom 4321AGN 802.11a/b/g/draft-n Wi-Fi Solution'
It seems to me that the bwi driver being talked about here doesn't support my card yet; and 8-CURRENT won't solve my problem either. Any ideas?
amorphousone
January 4th, 2010, 13:10
following the dialog between paradox and everypot i've picked up a few clues.
i too created ndis0 for bcm4315 following the handbook verbatim, but when i try to boot, process hangs once ndis is loaded, forcing me to power off, reboot into "escape to loader prompt" mode, unload, autoboot, and comment out the driver in loader.conf. reboot works as expected. then a
# kldload bcmwl5_sys
# dhclient ndis0
gets me online. any ideas? following are pertinent details to what causes boot to hang.
/boot/loader.conf
bcmwl5_sys_load="YES"
wlan_tkip_load="YES"
wlan_ccmp_load="YES"
/etc/rc.conf
wpa_supplicant_enable="YES"
wlans_ndis0="wlan0"
ifconfig_wlan0="WPA DHCP"
wpa_supplicant_conf_file="/etc/wpa_supplicant.conf"
/etc/wpa_supplicant.conf
network={
ssid="my_network"
psk="my_password"
}
# ls /boot/modules/
bcmwl5_sys.ko
granted, it is only a minor inconvenience to have to
# kldload bcmwl5_sys
# dhclient ndis0
but if i didn't mind compromising i wouldn't be using bsd in the first place :)
any help would be MUCH appreciated!
amorphousone
January 4th, 2010, 13:27
sorry, the 2 bits of code in my post above were to read "dhclient wlan0", NOT "dhclient ndis0",
and i seem to be incapable of applying an edit to my own post.
richardpl
January 4th, 2010, 16:02
following the dialog between paradox and everypot i've picked up a few clues.
i too created ndis0 for bcm4315 following the handbook verbatim, but when i try to boot, process hangs once ndis is loaded, forcing me to power off, reboot into "escape to loader prompt" mode, unload, autoboot, and comment out the driver in loader.conf. reboot works as expected. then a
# kldload bcmwl5_sys
# dhclient ndis0
gets me online. any ideas? following are pertinent details to what causes boot to hang.
/boot/loader.conf
bcmwl5_sys_load="YES"
wlan_tkip_load="YES"
wlan_ccmp_load="YES"
/etc/rc.conf
wpa_supplicant_enable="YES"
wlans_ndis0="wlan0"
ifconfig_wlan0="WPA DHCP"
wpa_supplicant_conf_file="/etc/wpa_supplicant.conf"
/etc/wpa_supplicant.conf
network={
ssid="my_network"
psk="my_password"
}
# ls /boot/modules/
bcmwl5_sys.ko
granted, it is only a minor inconvenience to have to
# kldload bcmwl5_sys
# dhclient ndis0
but if i didn't mind compromising i wouldn't be using bsd in the first place :)
any help would be MUCH appreciated!
This is known issue, already reported in another thread.
amorphousone
January 5th, 2010, 18:54
@ richarpl
i searched the forum before posting to this thread. could you kindly paste a link so i can track the progress?
thank you
richardpl
January 5th, 2010, 20:07
http://forums.freebsd.org/showthread.php?t=9204
BTW: There is bwn(4) in development, search freebsd mailing lists.
everypot
January 6th, 2010, 19:19
http://forums.freebsd.org/showthread.php?t=9204
BTW: There is bwn(4) in development, search freebsd mailing lists.
http://lists.freebsd.org/pipermail/freebsd-current/2009-December/014477.html
Only for
- Broadcom BCM4306 802.11b/g Wireless
- Broadcom BCM4318 802.11b/g Wireless
?
richardpl
January 6th, 2010, 20:47
bwn(4) compared to bwi(4) use newer firmware so it theoretically should work on many cards, but 64bit stuff is still missing.
everypot
January 6th, 2010, 21:14
bwn(4) compared to bwi(4) use newer firmware so it theoretically should work on many cards, but 64bit stuff is still missing.
OK. I will try bwn when it's official, to replace bwi.
Seeker
January 6th, 2010, 21:28
Hey richardpl!
Will it also be useful for me?? ;)
richardpl
January 6th, 2010, 21:56
I dunno, best that you test it yourself.
paradox
January 6th, 2010, 22:12
bwn(4) compared to bwi(4) use newer firmware so it theoretically should work on many cards, but 64bit stuff is still missing.
what you mean?
on amd64 with DMA64 adapters works fine
richardpl
January 7th, 2010, 11:32
Then I replaced it with something else .... anyway driver is still missing some usefull features and is full of debug messages ....
cucu007
February 4th, 2010, 10:28
I just got myself a lenovo G550 and its coming with a BCM4315, i noticed that there is a current development in getting drivers to work with this type of chip. I am presently testing PCBSD 7.x, any idea when development for this drive be completed?
everypot
February 5th, 2010, 19:58
I just got myself a lenovo G550 and its coming with a BCM4315, i noticed that there is a current development in getting drivers to work with this type of chip. I am presently testing PCBSD 7.x, any idea when development for this drive be completed?
BCM4315 is special. Even the new bwn driver in develpment won't support it. You can buy an Atheros mini wifi card, which is well supported by FreeBSD, to replace it (replacing/upgrading components is very easy for most Lenovo Laptops).
SaveTheRbtz
February 28th, 2010, 02:43
BCM4315 is special. Even the new bwn driver in develpment won't support it. You can buy an Atheros mini wifi card, which is well supported by FreeBSD, to replace it (replacing/upgrading components is very easy for most Lenovo Laptops).
Hhmm... so you mean BCM4315 won't be supported by bwn ever?
everypot
February 28th, 2010, 12:27
Hhmm... so you mean BCM4315 won't be supported by bwn ever?
I don't know. maybe you can ask Weongyo Jeong:
http://nwvd.org/unix/freebsd-current/2009/4Qtr/msg03544.html
SaveTheRbtz
March 23rd, 2010, 08:47
Wow, it seems my BCM4315 is finnaly working under FreeBSD.
Now it's kinda buggy, but still better than nothing. Big thanx to developers for their work.
everypot
March 25th, 2010, 04:15
Wow, it seems my BCM4315 is finnaly working under FreeBSD.
Now it's kinda buggy, but still better than nothing. Big thanx to developers for their work.
sounds great.
Could you post the relevant sections in rc.conf and loader.conf?
everypot
April 6th, 2010, 02:35
Finally, it works. I'm using freebsd-8 stable + bcm4312 card.
Get(svn) the new bwn(and siba) driver and make install. Then install the firmware from ports. load if_bwn.ko and bwn_v4_lp_ucode.ko (or bwn_v4_ucode.ko, depending on your card; should not load both). Done.
Many thanks to Weongyo Jeong for writing this driver.
chunky_monkey
April 16th, 2010, 18:54
Hi,
I've installed 8.0 on a dell d630 and i'm trying to setup wireless using wpi.
pciconf shows:
none1@pci0:12:0:0: class=0x028000 card=0x000a1028 chip=0x432814e4 rev=0x03 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Broadcom 432AGN 802.11a/b/g/draft-n Wi-Fi Solution (BCM4321KFBG)'
class = network
yet there is no wireless network interface displayed even though wpi is loaded via kldload.
ifconfig:
bge0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:1c:23:20:a8:0f
inet 192.168.1.109 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 46:4f:c0:be:09:a1
ch 1 dma -1
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
lladdr 46.4f.c0.0.17.be.9.a1.a.2.ff.fe.0.0.0.0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
a couple things i've tried and noticed
- compiling /usr/src/sys/modules/firmware and installing/loading displays:
kldload: can't load /boot/kernel/firmware.ko: Exec format error
- the same also occurs for the wlan modules
any ideas on how to compile the firmware.ko, wlan*.ko modules?
i think that may help in loading the wpi modules.
thanks in advance
DutchDaemon
April 16th, 2010, 21:17
What makes you think it's a wpi? BCM43xx should be covered by bwi.
DESCRIPTION
The bwi driver provides support for Broadcom BCM43xx based PCI/CardBus
network adapters.
The fact that you have
none1@pci0:12:0:0:
shows that no current driver has attached itself.
chunky_monkey
April 16th, 2010, 21:59
Thanks for the info, I was at a loss at that point in trying drivers so my last try was the wpi.
So I loaded the bwi driver in boot/loader.conf
if_bwi_load="YES"
and installed the ports/net/bwi-firmware-kmod as the bwi man page mentions.
unfortunately, still no luck.
none1@pci0:12:0:0: class=0x028000 card=0x000a1028 chip=0x432814e4 rev=0x03 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Broadcom 432AGN 802.11a/b/g/draft-n Wi-Fi Solution (BCM4321KFBG)'
class = network
The man page mentions the following devices are compatbile:
Card Chip Bus Standard
Apple Airport Extreme BCM4306 PCI b/g
Apple Airport Extreme BCM4318 PCI b/g
ASUS WL-138g BCM4318 PCI b/g
Buffalo WLI-CB-G54S BCM4318 CardBus b/g
Buffalo WLI-PCI-G54S BCM4306 PCI b/g
Compaq R4035 onboard BCM4306 PCI b/g
Dell Wireless 1470 BCM4318 Mini PCI b/g
Dell Truemobile 1400 BCM4309 Mini PCI b/g
HP nx6125 BCM4319 PCI b/g
Linksys WPC54G Ver 3 BCM4318 CardBus b/g
Linksys WPC54GS Ver 2 BCM4318 CardBus b/g
TRENDnet TEW-401PCplus BCM4306 CardBus b/g
US Robotics 5411 BCM4318 CardBus b/g
The laptop I'm using has a BCM4321KFBG device.
Is there anything else I can try (aside from grabbing a usb wireless network adapter)? or is this hardware simply not supported and I have to resort to buying a usb wireless adapter?
chunky_monkey
April 16th, 2010, 22:08
... one other item... i just noticed:
[root@lucious ~]# kldload /boot/kernel/wlan.ko
kldload: can't load /boot/kernel/wlan.ko: Exec format error
modules using kldload
do i have to recompile wlan.ko?
[root@lucious ~]# uname -a
FreeBSD lucious.waffle.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:
/usr/obj/usr/src/sys/GENERIC amd64
DutchDaemon
April 17th, 2010, 00:10
Your card / chipset may be unsupported right now. Have a look through the Broadcom WiFi thread (http://forums.freebsd.org/showthread.php?t=2477) -- in fact, I merged your posts with that thread so you're now in it ;).
(and please use proper posting tags (http://forums.freebsd.org/showthread.php?t=8816) on this forum)
blstuart
April 17th, 2010, 16:05
As far as I know, the BCM432x chips are not supported by current drivers. I have been able to use my 4322 with the NDIS driver using ndisgen, however. It's not an ideal way to go, but it's worked well enough that I haven't gone the USB route.
chunky_monkey
April 21st, 2010, 03:08
great thanks for the tip. i've loaded the bcmwl564_sys.ko module successfully.
ifconfig now displays:
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:1d:d9:45:5e:3a
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
Following the directions in the handbook I tried loading the wlan modules but I'm seeing the following:
[root@lucious ~]# kldload /boot/kernel/wlan.ko
kldload: can't load /boot/kernel/wlan.ko: Exec format error
modules using kldload
I've tried recompiling "make clean install" the wlan module in /usr/src/sys/modules/wlan and still the above error. Any suggestions?
richardpl
April 21st, 2010, 09:39
Is is not possible to load bcmwl564_sys.ko without wlan.ko (and bunch of others already being in kernel) so there is no need to do any extra work in your case.
Are you using amd64 version of FreeBSD?
chunky_monkey
April 21st, 2010, 17:45
I am able to load bcmwl564_sys.ko
kldstat:
1 52 0xffffffff80100000 d17dc0 kernel
3 1 0xffffffff80e1f000 23ed0 snd_hda.ko
4 2 0xffffffff80e43000 75708 sound.ko
7 1 0xffffffff80efb000 52d0 atapicam.ko
8 1 0xffffffff81022000 3a28 linprocfs.ko
9 1 0xffffffff81026000 1c53f linux.ko
10 2 0xffffffff81043000 264e vboxnetflt.ko
11 2 0xffffffff81046000 23254 vboxdrv.ko
12 2 0xffffffff8106a000 8d44 netgraph.ko
13 1 0xffffffff81073000 13be ng_ether.ko
14 1 0xffffffff81075000 d2c vboxnetadp.ko
15 1 0xffffffff81076000 a8ca fuse.ko
16 1 0xffffff80008c7000 103000 bcm43xx64.cat.ko
17 1 0xffffffff81081000 116294 bcmwl564_sys.ko
18 1 0xffffffff81198000 7eb0 if_ndis.ko
19 2 0xffffffff811a0000 13930 ndis.ko
yet "ifconfig scan" produces no results
[root@lucious /usr/src/sys/modules/wlan]# ifconfig ndis0 scan
ifconfig: unable to get scan results
is there something other than wlan that it supposed to be configured to be able to list the available access points?
richardpl
April 21st, 2010, 19:35
Read the handbook dude, that should be your first move anyway.
On 8.0 you need to create wlanX first and use wlanX instead of ndisX.
gnemmi
April 21st, 2010, 21:59
You should probably read: rc.conf, wlan, wpa_supplicant & wpa_supplicant.conf .. or section 31.3 (http://www.freebsd.org/doc/en/books/handbook/network-wireless.html) of the FreeBSD Handbook (http://www.freebsd.org/doc/en/books/handbook/)
unsobill
April 22nd, 2010, 04:15
help! i'm battling with my brodcom 4315 and ndis bcmwl5_sys driver - it's not going well- i'm unable to run wpa_supplicant freezes, kernel panics if i put module in boot/loader.conf
is there ANYONE with 4315 that can give me a hand? thanks.
richardpl
April 22nd, 2010, 16:36
Never put module in loader.conf before you test it via kldload.
unsobill
April 22nd, 2010, 17:29
strangeness enough kldload loads bcmwl5_sys.ko without issues - however when i add same module to /boot/loader.conf i get kernel panic...
also i'm not sure if my issue in the driver itself or wpa_supplicant... as any time i try to use wpa_supplicant iе freeze and give me errors such as
ioctl[SIOCS80211, op 26, arg 0x0]: Operation not supported
Failed to disable WPA in the driver.
ELOOP: remaining socket: и так далее
here is my wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="мy AP"
key_mgmt=WPA-PSK
psk="topsecretpassword created from running wpa_passphrase"
}
here is how i run it
sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf
richardpl
April 22nd, 2010, 22:38
Regarding panic during boot, problem is already reported, second time in this thread.
For second issue you must use -Dndis switch, I stopped to count this one.
More info you will get using forum search feature.
unsobill
April 22nd, 2010, 22:58
help please? i got ndis driver bcmwl5_sys.ko - device is broadcom 4315.
when i run wpa_supplicant i get kernel panic
$ sudo /usr/sbin/wpa_supplicant -Dndis -iwlan0 -c/etc/wpa_supplicant.conf
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1f:f3:c2:48:e5 (SSID='my ssid' freq=2412 MHz)
WPA: Could not verify EAPOL-Key MIC - dropping packet
Associated with 00:1f:f3:c2:48:e5
Write failed: Software caused connection abort
unsobill
April 23rd, 2010, 02:28
Can i use different working module/driver for Broadcom 4315 while hopefully current ndis driver being fixed ???
richardpl
April 23rd, 2010, 05:12
Where is panic output, I don't see it.
Post pciconf -lv for that card, and I will see what I can do.
unsobill
April 23rd, 2010, 16:39
class = network
subclass = ethernet
none2@pci0:2:0:0: class=0x028000 card=0x1507103c chip=0x431514e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
class = network
here is output when i load ndis bcwm5_sys
no match for ZwQueryInformationFile
no match for ZwReadFile
no match for ZwCreateFile
no match for ExFreePoolWithTag
no match for IoUnregisterPlugPlayNotification
ndis0: <Broadcom 802.11b/g WLAN> mem 0x56000000-0x56003fff irq 17 at device 0.0 on pci2
ndis0: [ITHREAD]
ndis0: NDIS API version: 5.1
here is detailed code of wpa_supplicant
$ sudo wpa_supplicant -Dndis -iwlan0 -dd -c/etc/wpa_supplicant.conf
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'ndis' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Line: 2 - start of a new network block
ssid - hexdump_ascii(len=8):
75 6e 73 6f 62 69 6c 6c unsobill
proto: 0x1
key_mgmt: 0x2
pairwise: 0x18
group: 0x1e
PSK - hexdump(len=32): [REMOVED]
priority=2 (0x2)
Priority group 2
id=0 ssid='unsobill'
Initializing interface (2) 'wlan0'
NDIS: Packet.dll version: FreeBSD WinPcap compatibility shim v1.0
NDIS: 1 adapter names found
NDIS: 1 adapter descriptions found
NDIS: 0 - wlan0 - wlan0
NDIS: Adapter description prefix 'wlan0'
OID_802_11_CAPABILITY - hexdump(len=128): 80 00 00 00 02 00 00 00 10 00 00 00 0e 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01
00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 03 00 00 00 04 00 00 00 04 00 00 00 04 00 00 00 05 00 00 00 04 00 00 00 06 00 00 00 04 00 00 00
07 00 00 00 04 00 00 00 03 00 00 00 06 00 00 00 04 00 00 00 06 00 00 00 05 00 00 00 06 00 00 00 06 00 00 00 06 00 00 00 07 00 00 00 06 00 00
00
NDIS: Driver supports OID_802_11_CAPABILITY - NoOfPMKIDs 16 NoOfAuthEncrPairs 14
NDIS: 0 - auth 0 encr 1
NDIS: 1 - auth 0 encr 0
NDIS: 2 - auth 1 encr 1
NDIS: 3 - auth 1 encr 0
NDIS: 4 - auth 3 encr 4
NDIS: 5 - auth 4 encr 4
NDIS: 6 - auth 5 encr 4
NDIS: 7 - auth 6 encr 4
NDIS: 8 - auth 7 encr 4
NDIS: 9 - auth 3 encr 6
NDIS: 10 - auth 4 encr 6
NDIS: 11 - auth 5 encr 6
NDIS: 12 - auth 6 encr 6
NDIS: 13 - auth 7 encr 6
NDIS: driver capabilities: key_mgmt 0x1f enc 0xf auth 0x3
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
NDIS: OID_802_11_PMKID (flush) - hexdump(len=8): 08 00 00 00 00 00 00 00
NDIS: Set OID 0d010123 - hexdump(len=8): [REMOVED]
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
NDIS: Set OID 0d010102 - hexdump(len=36): [REMOVED]
NDIS: Set OID 0d010108 - hexdump(len=4): [REMOVED]
Own MAC address: c4:17:fe:bf:1b:bd
wpa_driver_ndis_set_wpa: enabled=1
ndis_get_oid: oid=0xd010101 len (6) failed
NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]
ndis_get_oid: oid=0xd010101 len (6) failed
NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]
ndis_get_oid: oid=0xd010101 len (6) failed
NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]
ndis_get_oid: oid=0xd010101 len (6) failed
NDIS: Set OID 0d01011e - hexdump(len=16): [REMOVED]
NDIS: Set OID 0d010114 - hexdump(len=4): [REMOVED]
RSN: flushing PMKID list in the driver
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
NDIS: OID_802_11_PMKID (flush) - hexdump(len=8): 08 00 00 00 00 00 00 00
NDIS: Set OID 0d010123 - hexdump(len=8): [REMOVED]
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
Setting scan request: 0 sec 100000 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
Added interface wlan0
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Cached scan results are empty - not posting
Selecting BSS from priority group 2
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
NDIS: Set OID 0d01011a - hexdump(len=4): [REMOVED]
ndis_get_oid: oid=0xd010101 len (6) failed
EAPOL: disable timer tick
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
Scan timeout - try to get results
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 2
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
Starting AP scan (broadcast SSID)
NDIS: Set OID 0d01011a - hexdump(len=4): [REMOVED]
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
Scan timeout - try to get results
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 2
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
ndis_get_oid: oid=0xd010101 len (6) failed
ndis_get_oid: oid=0xd010101 len (6) failed
^CCTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
State: SCANNING -> DISCONNECTED
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_ndis_set_wpa: enabled=0
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
NDIS: OID_802_11_PMKID (flush) - hexdump(len=8): 08 00 00 00 00 00 00 00
NDIS: Set OID 0d010123 - hexdump(len=8): [REMOVED]
NDIS: Set OID 0d010118 - hexdump(len=4): [REMOVED]
NDIS: Set OID 0d010102 - hexdump(len=36): [REMOVED]
NDIS: Set OID 0d010115 - hexdump(len=4): [REMOVED]
strangely enough i get no kernel panics anymore since i ran update to stable at night
richardpl
April 23rd, 2010, 17:14
Perhaps you need to use ap_scan in wpa_supplicant.conf because scanning may be tricky with some drivers.
8.0 RELEASE have bug with scanning(net80211 related, reproducible via ifconfig only), it is resolved in 8.0 STABLE and in CURRENT.
unsobill
April 23rd, 2010, 17:45
here is my wpa_supplicant.conf - perhaps something is missing here?
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=1
network={
ssid="mynetwork"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=********************************
priority=2
}
unsobill
April 23rd, 2010, 17:49
also FreeBSD 8.0-STABLE FreeBSD 8.0-STABLE #1: Mon Apr 19 21:29:36 UTC 2010
unsobill
April 23rd, 2010, 18:58
if i to remove
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
$ sudo wpa_supplicant -Dndis -iwlan0 -c/etc/wpa_supplicant.conf
CTRL-EVENT-SCAN-RESULTS
Trying to associate with xx:xx:xx:xx:xx:xx (SSID='myssid' freq=2412 MHz)
Associated with xx:xx:xx:xx:xx:xx
Write failed: Software caused connection abort
-at this point ssh connection drops to server and kernel panic on dmesg...
richardpl
April 23rd, 2010, 22:41
What is panic message? Please post full backtrace.
unsobill
April 23rd, 2010, 22:56
hard to get panic message if keyboard/mouse down and reboot kicks in almost immediately.
similar to this image of kernel - but that's not my picture - i will come back from work and update with exact picture of kernel
http://www.starforce.biz/C.JPG
unsobill
April 24th, 2010, 02:45
Sorry for the wait, just got back from work - here is kernel panic that i get... Thank you much !!!
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x4
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc4e30868
stack pointer = 0x28:0xe6723c04
frame pointer = 0x28:0xe6723c18
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 = 1518 (Windows Workitem 3)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 6h8m10s
Cannot dump. Device not defined or unavailable.
Automatic reboot in 15 seconds - press a key on the console to abort
richardpl
April 24th, 2010, 22:17
There is no backtrace, please define your dump device.
unsobill
April 25th, 2010, 03:47
how can i do that?
richardpl
April 25th, 2010, 23:58
Look in /etc/defaults/rc.conf, make your swap to be dump device.
hermes
April 27th, 2010, 22:10
FYI, bwn(4) has been MFC’d to 8-STABLE (and is working nicely with WPA2 over here :) ). No more need for NDIS.
richardpl
April 27th, 2010, 22:24
It is far from stable for me.
chunky_monkey
April 30th, 2010, 18:29
This sounds promising. While I was able to load the ndis modules bcm43xx54.cat.ko, bcmwl564_sys.ko and set up and interface and association, my system would freeze on dhclient wlan0.
So I thought I'd try compiling the bwn modules... until I hit:
[root@machine /home/bwn/net/bwn-firmware-kmod]# kldload if_bwn
kldload: can't load if_bwn: Exec format error
Any ideas on how to fix this?
unsobill
May 1st, 2010, 08:13
to get ur card working follow this...
1) Install the siba driver
go to:
http://svn.freebsd.org/base/head/sys/dev/siba/
pick the the files there and put them in /usr/src/sys/dev/siba <- must create
it !
then go to:
http://svn.freebsd.org/base/head/sys/modules/siba_bwn/
pick the Makefile and put in /usr/src/sys/modules/siba_bwn <- must create too.
then:
cd /usr/src/sys/modules/siba_bwn
make && make install
2) Install the bwn driver
Similar to 1), go to:
http://svn.freebsd.org/base/head/sys/dev/bwn/
pick the three files there and put them in /usr/src/sys/dev/bwn <- must create
it !
then go to:
http://svn.freebsd.org/base/head/sys/modules/bwn/
pick the Makefile and put in /usr/src/sys/modules/bwn <- must create too
then:
cd /usr/src/sys/modules/bwn
make && make install
3) Install bwn firmware:
cd /usr/ports/net/bwn-firmware-kmod && make install clean
4)Add the following to /etc/rc.conf:
network_interfaces="AUTO"
wpa_supplicant_enable="YES"
wlans_bwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
5)and /boot/loader.conf:
if_bwn_load="YES"
bwn_v4_lp_ucode_load="YES"
Note that, depending on your card, you may have to use the non-lp module bwn_v4_ucode_load="YES", but not both.
Now reboot and you should be online.
hermes
May 1st, 2010, 09:51
@unsobill: Umm, nope. That’s actually no longer the way to do it. Instead, just csup a recent 8-STABLE and recompile kernel and world.
chunky_monkey
May 4th, 2010, 00:20
I tried the steps above and was looking hopeful until:
lucious# kldload if_bwn
kldload: can't load if_bwn: Exec format error
Still the same error. Any ideas?
lucious# uname -a
FreeBSD lucious.waffle.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
ckt1g3r
May 4th, 2010, 17:50
hi , do this , cd /usr/src/sys/modules/bwi/ && make install
chunky_monkey
May 4th, 2010, 21:06
ok I updated the src files and now I'm seeing this
[root@lucious /usr/src/sys/modules/bwn]# make
Warning: Object directory not changed from original /usr/src/sys/modules/bwn
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common -g -O0 -DKTR -DINVARIANTS -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/bwn/../../dev/bwn/if_bwn.c
In file included from /usr/src/sys/modules/bwn/../../dev/bwn/if_bwn.c:71:
@/net80211/ieee80211_ratectl.h: In function 'ieee80211_ratectl_init':
@/net80211/ieee80211_ratectl.h:66: error: 'struct ieee80211vap' has no member named 'iv_rate'
@/net80211/ieee80211_ratectl.h: In function 'ieee80211_ratectl_deinit':
@/net80211/ieee80211_ratectl.h:72: error: 'struct ieee80211vap' has no member named 'iv_rate'
@/net80211/ieee80211_ratectl.h: In function 'ieee80211_ratectl_node_init':
@/net80211/ieee80211_ratectl.h:80: error: 'const struct ieee80211vap' has no member named 'iv_rate'
@/net80211/ieee80211_ratectl.h: In function 'ieee80211_ratectl_node_deinit':
@/net80211/ieee80211_ratectl.h:88: error: 'struct ieee80211_node' has no member named 'ni_rctls'
@/net80211/ieee80211_ratectl.h:90: error: 'const struct ieee80211vap' has no member named 'iv_rate'
@/net80211/ieee80211_ratectl.h: In function 'ieee80211_ratectl_rate':
@/net80211/ieee80211_ratectl.h:98: error: 'struct ieee80211_node' has no member named 'ni_rctls'
@/net80211/ieee80211_ratectl.h:100: error: 'const struct ieee80211vap' has no member named 'iv_rate'
cc1: warnings being treated as errors
@/net80211/ieee80211_ratectl.h:101: warning: control reaches end of non-void function
@/net80211/ieee80211_ratectl.h: In function 'ieee80211_ratectl_tx_complete':
@/net80211/ieee80211_ratectl.h:107: error: 'const struct ieee80211_node' has no member named 'ni_rctls'
@/net80211/ieee80211_ratectl.h:109: error: 'const struct ieee80211vap' has no member named 'iv_rate'
@/net80211/ieee80211_ratectl.h: In function 'ieee80211_ratectl_tx_update':
@/net80211/ieee80211_ratectl.h:116: error: 'const struct ieee80211vap' has no member named 'iv_rate'
@/net80211/ieee80211_ratectl.h:118: error: 'const struct ieee80211_node' has no member named 'ni_rctls'
@/net80211/ieee80211_ratectl.h:120: error: 'const struct ieee80211vap' has no member named 'iv_rate'
@/net80211/ieee80211_ratectl.h: In function 'ieee80211_ratectl_setinterval':
@/net80211/ieee80211_ratectl.h:126: error: 'const struct ieee80211vap' has no member named 'iv_rate'
@/net80211/ieee80211_ratectl.h:128: error: 'const struct ieee80211vap' has no member named 'iv_rate'
*** Error code 1
Stop in /usr/src/sys/modules/bwn.
do I need to update the net80211 src tree as well? recompile the kernel?
Thanks for all the help so far, wouldn't even be close without this forum.
hermes
May 4th, 2010, 21:10
Update the whole source tree to 8-STABLE and recompile kernel _and_ world. It’s important to keep these in sync.
everypot
May 4th, 2010, 21:19
kldload if_bwn.ko
I tried the steps above and was looking hopeful until:
lucious# kldload if_bwn
kldload: can't load if_bwn: Exec format error
Still the same error. Any ideas?
lucious# uname -a
FreeBSD lucious.waffle.com 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 root@mason.cse.buffalo.edu:/usr/obj/usr
/src/sys/GENERIC amd64
datsun280zx
May 7th, 2010, 23:49
Ive been hacking away at trying to get my BCM4315 working on Release 8 #0 for about 6 days. Ive been reading various forums, personal websites, reinstalled freebsd about 3 times, used about 5 different drivers. Im lost.
Im trying to install it on my dell laptop a vostro 1500. Screen shots n such are hard for me to paste here.
Basically I boot up, su in, run dmesg | grep BCM and I only see my lan connection, the Broadcom 4401.
ifconfig shows me the broadcom ethernet 10/100, two firewire ethernet adapters and the loop back adapter.
I can access the internet, specifically ftp, to get drivers via the 10/100 adapter.
pciconf -lv | grep BCM shows me my wireless adapter
device = 'Broadcom Wireless B/G (BCM4315/BCM22062000)'
The drivers Ive tried so far are:
b44win.inf
bcm4sbxp.sys
bcmwl5.inf
bcmwl5.sys
bcmwl6.inf
bcmwl6.sys
I have installed /usr/ports/net/bwi-firmware-kmod
Loaded ndis and if_ndis
I use ndisgen to create the sys.ko files
I use kldload to load the files into the kernel
kldstat says
kernel
bcmwl5.sys
ndis.ko
if_ndis.ko
bwi_v3.ko
if_bwi.ko
I've added entries into my /boot/loader.conf file after each attempt ie
bcmwl5_sys_load="YES"
if_bwi_load="YES"
right on down the line of drivers
I made a wpa_supplicant.conf file with me network stuff in it
ssid="NETGEAR"
proto=DHCP
key_mgmt=NONE
priority=2
scan_ssid=1
Not much has been done in the rc.conf file as I dont have anything to configure
There is probably more Ive done over past 6 days. My brain is turning into tapioca. Does anyone have any suggestions?
These are some of the resources Ive been reading up on:
http://forums.freebsd.org/archive/index.php/t-8375.html
http://forums.freebsd.org/showthread.php?t=2477
http://forums.freebsd.org/showthread.php?t=2477&page=4
http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html
http://dannyman.toldme.com/2005/01/05/freebsd-howto-ndisulate-windows-drivers/
http://www.freebsd.org/doc/en/books/handbook/network-wireless.html
http://www.freebsd.org/cgi/man.cgi?query=bwi&apropos=0&sektion=4&manpath=FreeBSD+8.0-RELEASE&format=html
http://forums.freebsd.org/showthread.php?t=8375&highlight=bcm4315
johnhollon
May 11th, 2010, 08:32
NEW TO FREEBSD:'BROADCOM BCM4315 DRIVER' ASK FOR HELP
First of all, as a Chinese and do not learn enough, my English is very poor.
And I must learn how to use FreeBsd for some reason. This is my first time to take a post here, if you have any bad feeling of my writing, please be patient.......
After installed, everything of the machine looks like perfect except Broadcom Wireless BCM4315. To install the BCM4315 dirver, in 4 days, I tried every way shown in the forum and other website through google, But I just got nothing to work.
With ngis - I've tried almost every version including official and third drivers from 2004 to 2010, with bcmwl5.inf and bcmwl564.sys, sometimes .ko did nothing, sometimes cause fatal error, and every bcmwl6.inf and bcmwl664 cause fatal error.
With bwi in the ports, it seems did nothing. pciconf always shows none...
With bwi of "http://paradox.lissyara.su/bwi.02c.tar.bz2", cause a fatal error, some infomation is "has 4 cores......"
With bwn(4), can not kldload if_bwn, after kldload ssb, the BCM4315 shows none1 to ssb0, but can not work anymore, and sometiems, after kldload ssb, cause a fatal error.
I'm sure I have kldload every thing for ngis in the ngis way, and kldload firmware for bwi in the bwi way, and firmware bwn in the bwn way.
after all above, I called HP's technology support phone, and the answer is THERE IS NO SIGNED OR CERTIFIED BROADCOM DRIVER FOR UNIX, so they can not give any support to me.
DOES ANYBODY CAN TELL ME HOW TO INSTALL THIS DRIVER?
Though I can get the net through my LAN card, but it is very bad idea, as my work evn is wireless.
My computer is HP 4416s 171. FREEBSD is 8.0 REALESE
My pciconf info are below.
pciconf
none3@pci0:6:0:0: class=0x028000 card=0x1508103c chip=xx431514e4 rev=0x01 hdr=0x00
vender='Broadcom Corporation'
device='Broadcom Wireless b/g (BCM4315/BCM22062000)'
class=network
bar[10]=type Memory, range 64, base 0x92000000, size 16384, enabled
cap 01[40]=powerspec 3 supports D0 D1 D2 D3 current D0
cap 09[58]=vendor (length 120)
cap 05[e8]=MSI supports 1 message, 64bit
cap 10[d0]=PCI-Express 1 endpoint max data 128(128) link x1(x1)
kpedersen
May 11th, 2010, 11:16
I have the same wifi chip on my Dell Mini 9,
I did get it running flawlessly using ndisgen and the windows xp 32-bit drivers.
I just kept trying the Dell Wireless drivers found here
http://sourceforge.net/apps/mediawiki/ndiswrapper/index.php?title=Category:WORKS
IIRC at least one of them worked.
Its a right pain though, I wish I exported the driver from my preinstalled windows before i obliterated it.
I think my exact one was...
http://ftp.us.dell.com/network/R197390.EXE
johnhollon
May 13th, 2010, 17:42
I can not install BCM4315 driver in my hp 4416s 171...
I think there is no way to fix the problem except using ndis. And after tried every windows driver, I just got faild...
Will anybody share the *_SYS.ko file, fit AMD64 Freebsd 8.0-release?
Thanks a lot!
unsobill
May 14th, 2010, 01:13
guys follow instuctions from my post 174 on page 7 - it should work with 4315 and i386
its basically simple bcmwl5_sys.ko driver that loads on the startup - i get lots of trash in my tty1 so i have to switch to tty2 to work but at least wireless works !!! keep pounding it - you will find solution - i spent whole week to get it working, i know how u feel
p.s
by the way 7.2 works without any issues with ndis and 4315 driver
selven
May 21st, 2010, 13:07
any idea if development for this driver is still going on and if there's any repository where i could get some source and manage to have try at this?
foo_daemon
June 2nd, 2010, 02:26
Using 9-current: the bwi0 driver loaded properly for my BCM4311 (dell 1390 wlan card), but was frequently causing kernel panics in the 'taskq' function when I did an AP scan or tried to join a specific ssid. NDIS-derived driver is stable and works: how long has AP scanning been working on NDIS? I am very pleased with this =)
bluetick
June 7th, 2010, 16:07
I have a Dell netbook 1012 with the BCM4315, I've got the card working, but after a few hours it will hang/crash. Unloading/reloading the kernel driver does not work. The computer must be turned off, not rebooted, to reset the card.
The ndis driver will work, but must be loaded after the system is running, loading at boot time will cause a panic. This is with 8.1-prerelease.
SaveTheRbtz
June 16th, 2010, 06:59
I have a Dell netbook 1012 with the BCM4315, I've got the card working, but after a few hours it will hang/crash. Unloading/reloading the kernel driver does not work. The computer must be turned off, not rebooted, to reset the card.
The ndis driver will work, but must be loaded after the system is running, loading at boot time will cause a panic. This is with 8.1-prerelease.
You can try turning off DMA:
hw.bwn.usedma=0
in loader.conf
lebanon
August 30th, 2010, 11:45
I have a Dell netbook 1012 with the BCM4315, I've got the card working, but after a few hours it will hang/crash. Unloading/reloading the kernel driver does not work. The computer must be turned off, not rebooted, to reset the card.
The ndis driver will work, but must be loaded after the system is running, loading at boot time will cause a panic. This is with 8.1-prerelease.
I have a HP ProBook 4510s (http://www.nix.ru/autocatalog/hp/hp_compaq_notebook/hp_ProBook_4510s_VC429EA_ACB_T5870_2.00_3072_320_7 200_DVDRW_HD4330_WiFi_BT_cam_Linux_15.6_2.57_89575 .html).
Using ndis driver results panic on load system.
Sent a request to Mailing list "freebsd-stable" - Broadcom 4315 not working (http://docs.freebsd.org/cgi/mid.cgi?4C7AC69A.2080001).
Help run WiFi BCM4315.
wblock@
August 30th, 2010, 14:46
My 4312/4315 wants DMA disabled in /boot/loader.conf
hw.bwn.usedma=0
lebanon
August 30th, 2010, 15:28
My 4312/4315 wants DMA disabled in /boot/loader.conf
hw.bwn.usedma=0
OK.
cat /boot/loader.conf
if_bwn_load="YES"
hw.bwn.usedma=0
reboot
kldload bwn_v4_lp_ucode.ko
ifconfig wlan0 create wlandev bwn0
ifconfig wlan0 up
cat /var/log/messages
Aug 30 18:25:10 kernel: bwn0: firmware version (rev 478 patch 104 date 0x8701 time 0x657)
Aug 30 18:25:10 kernel: wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost
Aug 30 18:25:16 kernel: bwn0: status of RF switch is changed to OFF
Aug 30 18:25:16 kernel: bwn0: please turns on the RF switch
Aug 30 18:25:17 kernel: bwn0: status of RF switch is changed to ON
Aug 30 18:25:18 kernel: bwn0: status of RF switch is changed to OFF
Aug 30 18:25:18 kernel: bwn0: please turns on the RF switch
Aug 30 18:25:19 kernel: bwn0: status of RF switch is changed to ON
Aug 30 18:25:28 kernel: bwn0: status of RF switch is changed to OFF
Aug 30 18:25:28 kernel: bwn0: please turns on the RF switch
Aug 30 18:25:30 kernel: bwn0: status of RF switch is changed to ON
Aug 30 18:25:31 kernel: bwn0: status of RF switch is changed to OFF
Aug 30 18:25:31 kernel: bwn0: please turns on the RF switch
Aug 30 18:25:33 kernel: bwn0: status of RF switch is changed to ON
wblock@
August 30th, 2010, 15:44
That "wireless switch" message only shows on mine when I turn the wireless switch off. Maybe the switch is stuck?
lebanon
August 30th, 2010, 15:53
I can click on the switch
be printed to the console, for example, "switch ON"
After this, it is automatically transferred to OFF, and so on
The lamp on the switch is always burning
DutchDaemon
August 30th, 2010, 15:57
lebanon, use the proper formatting tags. Stay away from fonts, indent, etc.
http://forums.freebsd.org/showthread.php?t=8816
Deuce
August 31st, 2010, 20:30
Trying to get ndis working with my Dell 1505 (BCM4321) card in my D820 laptop using WEP on FreeBSD 8.1-RELEASE #0 GENERIC i386.
> pciconf -v
-snip-
ndis0@pci0:12:0:0: class=0x028000 card=0x000a1028 chip=0x432814e4 rev=0x03 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'Broadcom 432AGN 802.11a/b/g/draft-n Wi-Fi Solution (BCM4321KFBG)'
class = network
-snip-
I have no problems generating the module and loading it appears to "work":
ndis0: <Dell Wireless 1505 Draft 802.11n WLAN Mini-Card> mem 0xecffc000-0xecffffff,0xe0000000-0xe00fffff irq 17 at device 0.0 on pci12
ndis0: [ITHREAD]
ndis0: NDIS API version: 5.1
I configure my wlan device with: ifconfig wlan0 create wlandev ndis0 ssid XXXX wepmode on weptxkey 1 wepkey 0xXXXXXXXXXX which leaves ifconfig output having:\
ndis0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:19:7e:5b:d8:06
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:19:7e:5b:d8:06
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid Hurd channel 1 (2412 MHz 11b)
country US authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit
txpower 0 bmiss 7 scanvalid 60 bintval 0
I bring it up and it becomes:
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:19:7e:5b:d8:06
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: associated
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:19:7e:5b:d8:06
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid Hurd channel 1 (2412 MHz 11g)
country US authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit
txpower 0 bmiss 7 mcastrate 6 mgmtrate 6 scanvalid 60 protmode CTS
bintval 0
With ndis0 associated but wlan0 with "no carrier". I thought that the radio may be off, but sysctl dev.ndis.0 shows:
dev.ndis.0.%desc: Dell Wireless 1505 Draft 802.11n WLAN Mini-Card
dev.ndis.0.%driver: ndis
dev.ndis.0.%location: slot=0 function=0 handle=\_SB_.PCI0.RP02.PXS2
dev.ndis.0.%pnpinfo: vendor=0x14e4 device=0x4328 subvendor=0x1028 subdevice=0x000a class=0x028000
dev.ndis.0.%parent: pci12
dev.ndis.0.RoamDelta: 1
dev.ndis.0.MPC: 1
dev.ndis.0.PowerSaveMode: 2
dev.ndis.0.PLCPHeader: 0
dev.ndis.0.frag: 2346
dev.ndis.0.rts: 2347
dev.ndis.0.NetworkAddress:
dev.ndis.0.antdiv: -1
dev.ndis.0.FrameBursting: 0
dev.ndis.0.Afterburner: 0
dev.ndis.0.ledbh0: -1
dev.ndis.0.ledbh1: -1
dev.ndis.0.ledbh2: -1
dev.ndis.0.ledbh3: -1
dev.ndis.0.leddc: 0xa0000
dev.ndis.0.Interference_Mode: -1
dev.ndis.0.ccx_rm: 1
dev.ndis.0.ccx_rm_limit: 300
dev.ndis.0.EFCEnable: 0
dev.ndis.0.Country: BE
dev.ndis.0.Chanspec: 11
dev.ndis.0.WME: -1
dev.ndis.0.LOM: 0
dev.ndis.0.IBSSAllowed: 1
dev.ndis.0.ssid_auto_promote: 0
dev.ndis.0.RadioState: 0
dev.ndis.0.WZCCoexist: 0
dev.ndis.0.Managed: 1
dev.ndis.0.vlan_mode: 0
dev.ndis.0.BTCoexist: 1
dev.ndis.0.abcap: 1
dev.ndis.0.AssocRoamPref: 1
dev.ndis.0.RoamTrigger: 0
dev.ndis.0.11HNetworks: 1
dev.ndis.0.IBSSMode: 0
dev.ndis.0.IBSSGProtection: 2
dev.ndis.0.LegacyMode: 2
dev.ndis.0.band: 0
dev.ndis.0.BandPref: 0
dev.ndis.0.RateA: 0
dev.ndis.0.Rate: 0
dev.ndis.0.ApCompatMode: 0
dev.ndis.0.BandwidthCap: 2
dev.ndis.0.1028000A: Dell Wireless 1505 Draft 802.11n WLAN Mini-Card
dev.ndis.0.Environment: 1
dev.ndis.0.NdisVersion: 0x00050001
dev.ndis.0.BusType: 5
dev.ndis.0.InterruptNumber: 17
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.LegacyProbe: 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.IBSSLink: UNSET
dev.ndis.0.PwrOut: UNSET
dev.ndis.0.BadFramePreempt: UNSET
dev.ndis.0.scan_channel_time: UNSET
dev.ndis.0.scan_unassoc_time: UNSET
dev.ndis.0.scan_home_time: UNSET
dev.ndis.0.scan_passive_time: UNSET
dev.ndis.0.scan_passes: UNSET
dev.ndis.0.EnableAutoConnect: UNSET
Which, since the inf file says a RadioState of zero is enabled suggests to me that the radio is on. I've also tried fiddling with the wireless which, but that just seems to attach/detach the bluetooth and there is no affect on the wireless.
At no point does the WiFi light illuminate.
Any suggestions?
lebanon
September 4th, 2010, 07:43
Deuce,
Click on switch WiFi On/Off
ifconfig wlan0 down
ifconfig wlan0 up
If status: no carrier, then again:
click on switch WiFi On/Off
ifconfig wlan0 down
ifconfig wlan0 up
everypot
September 9th, 2010, 22:30
It could have saved so much effort if they did it earlier.
http://thread.gmane.org/gmane.linux.kernel.wireless.general/55418
Broadcom would like to announce the initial release of a fully-open
Linux driver for it's latest generation of 11n chipsets. The driver,
while still a work in progress, is released as full source and uses the
native mac80211 stack. It supports multiple current chips (BCM4313,
BCM43224, BCM43225) as well as providing a framework for supporting
additional chips in the future, including mac80211-aware embedded chips.
The README and TODO files included with the sources provide more
details about the current feature set, known issues, and plans for
improving the driver.
The driver is currently available in staging-next git tree, available at:
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-next-2.6.git
in the drivers/staging/brcm80211 directory.
---
Henry Ptasinski
hermes
September 10th, 2010, 09:59
I’m not yet sure if this is good or bad news. I mean – what do we gain? A Linux driver, no free documentation. Broadcom will sit back and see no requirement for any further action. After all, we got a Linux driver!
I don’t think this will have any impact on Broadcom WLAN support in OSes other than Linux. Maybe the developers can extract *some* information out of the source code, but that’s about it.
wblock@
September 10th, 2010, 14:12
I don’t think this will have any impact on Broadcom WLAN support in OSes other than Linux. Maybe the developers can extract *some* information out of the source code, but that’s about it.
Being able to see how a vendor's code makes their hardware work is extremely useful to developers, and developers are the ones who create and maintain FreeBSD drivers.
nekoexmachina
September 17th, 2010, 07:18
bwn driver now works with bcm4315 (BCM4315/BCM22062000, class=0x028000 card=0x317d103c chip=0x431514e4 rev=0x01 hdr=0x00) on my hp 530 laptop.
Everything is okay (running for ~20mins, installing needed ports).
Speed is awesome, too.
edit: trouble -- scan is not working.
ifconfig wlan0 scan just hangs for unlimited time.
NIX87
November 1st, 2010, 02:30
bwn driver now works with bcm4315 (BCM4315/BCM22062000, class=0x028000 card=0x317d103c chip=0x431514e4 rev=0x01 hdr=0x00) on my hp 530 laptop.
Everything is okay (running for ~20mins, installing needed ports).
Speed is awesome, too.
edit: trouble -- scan is not working.
ifconfig wlan0 scan just hangs for unlimited time.
scan is working try wlan0 up list scan
skmpz
November 2nd, 2010, 22:55
device = 'Broadcom Wireless B/G (BCM4315/BCM22062000)'
Anyone managed to get it working? I tried but nothing..
bsd# cat /var/log/messages | grep bwn
Nov 2 21:04:14 bsd kernel: siba_bwn0: <Broadcom BCM4312 802.11b/g Wireless> mem 0xf69fc000-0xf69fffff irq 17 at device 0.0 on pci12
Nov 2 21:04:14 bsd kernel: bwn0 on siba_bwn0
Nov 2 21:04:14 bsd kernel: bwn0: WLAN (chipid 0x4312 rev 15) PHY (analog 6 type 5 rev 1) RADIO (manuf 0x17f ver 0x2062 rev 2)
Nov 2 21:04:14 bsd kernel: bwn0: PIO
Nov 2 21:04:14 bsd kernel: bwn0: Using 1 MSI messages
Nov 2 21:04:14 bsd kernel: bwn0: [FILTER]
Nov 2 21:05:39 bsd kernel: bwn_v4_lp_ucode15: could not load firmware image, error 2
Nov 2 21:05:39 bsd kernel: bwn0: the fw file(bwn_v4_lp_ucode15) not found
Nov 2 21:05:39 bsd kernel: bwn-open_v4_lp_ucode15: could not load firmware image, error 2
Nov 2 21:05:39 bsd kernel: bwn0: the fw file(bwn-open_v4_lp_ucode15) not found
Nov 2 21:09:37 bsd kernel: bwn_v4_lp_ucode15: could not load firmware image, error 2
Nov 2 21:09:37 bsd kernel: bwn0: the fw file(bwn_v4_lp_ucode15) not found
Nov 2 21:09:37 bsd kernel: bwn-open_v4_lp_ucode15: could not load firmware image, error 2
Nov 2 21:09:37 bsd kernel: bwn0: the fw file(bwn-open_v4_lp_ucode15) not found
NIX87
November 3rd, 2010, 14:37
bsd# cat /var/log/messages | grep bwn
Nov 2 21:04:14 bsd kernel: siba_bwn0: <Broadcom BCM4312 802.11b/g Wireless> mem 0xf69fc000-0xf69fffff irq 17 at device 0.0 on pci12
Nov 2 21:04:14 bsd kernel: bwn0 on siba_bwn0
Nov 2 21:04:14 bsd kernel: bwn0: WLAN (chipid 0x4312 rev 15) PHY (analog 6 type 5 rev 1) RADIO (manuf 0x17f ver 0x2062 rev 2)
Nov 2 21:04:14 bsd kernel: bwn0: PIO
Nov 2 21:04:14 bsd kernel: bwn0: Using 1 MSI messages
Nov 2 21:04:14 bsd kernel: bwn0: [FILTER]
Nov 2 21:05:39 bsd kernel: bwn_v4_lp_ucode15: could not load firmware image, error 2
Nov 2 21:05:39 bsd kernel: bwn0: the fw file(bwn_v4_lp_ucode15) not found
Nov 2 21:05:39 bsd kernel: bwn-open_v4_lp_ucode15: could not load firmware image, error 2
Nov 2 21:05:39 bsd kernel: bwn0: the fw file(bwn-open_v4_lp_ucode15) not found
Nov 2 21:09:37 bsd kernel: bwn_v4_lp_ucode15: could not load firmware image, error 2
Nov 2 21:09:37 bsd kernel: bwn0: the fw file(bwn_v4_lp_ucode15) not found
Nov 2 21:09:37 bsd kernel: bwn-open_v4_lp_ucode15: could not load firmware image, error 2
Nov 2 21:09:37 bsd kernel: bwn0: the fw file(bwn-open_v4_lp_ucode15) not found
driver tell you can't find the modules
modules is installed ?
if yes load them on kldload.
modules are in /boot/modules
& driver works without hw.bwn.usedma=0
The driver tells you it can't find the modules. Are the modules installed? If yes, load them with kldload. The modules are in /boot/modules, and the driver works without hw.bwn.usedma=0.
skmpz
November 3rd, 2010, 16:42
Everything is installed.. I'm trying to connect to an open network and so my wpa_complicant.conf is
network={
ssid="the network i'm trying"
}
I've installed bwn and modules and loaded..
Then I do /etc/rc.d/netif start and:
The bwn0 status is associated and the wlan0 has the ssid of the network and locks on the correct channel but status: no carrier
Sorry for not pasting everything but I'm on another system right now..
NIX87
November 3rd, 2010, 17:59
If X11 (KDE Gnome or etc) is installed use the wifimgr
cd /usr/ports/net-mgmt/wifimgr && make && make install
and this in /etc/rc.conf
network_interfaces="AUTO"
wpa_supplicant_enable="YES"
wlans_bwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
and in /boot/defaults/loader.conf [ NO! see below - Mod. ]
bwn_v4_lp_ucode_load="YES"
Then reboot and logon in X11 and run wifimgr
All is working ;)
NIX87
November 3rd, 2010, 18:29
Forgot ... in /boot/default/loader.conf [ NO! see below - Mod. ]
if_bwn_load="YES"
skmpz
November 3rd, 2010, 18:57
I had all these things except wifimgr... I installed it and everything worked.. Thanx
DutchDaemon
November 3rd, 2010, 19:25
DO NOT EDIT /boot/defaults/loader.conf ! Override /boot/defaults/loader.conf using /boot/loader.conf, or your changes will be wiped out on the next install/upgrade.
And please write proper posts (http://forums.freebsd.org/showthread.php?t=11799) instead of this unformatted mess. Thanks.
kpedersen
November 4th, 2010, 00:13
bwn requires a firmware to be loaded.
/boot/loader.conf
if_bwn_load="YES"
bwn_v4_ucode_load="YES"
You get the firmware from the net/bwn-firmware port (I think).
DutchDaemon
November 4th, 2010, 01:01
There's net/bwn-firmware-kmod, if that's what you mean.
Radek
November 6th, 2010, 12:22
I hope it's ok I'm writing here.
I have also this WiFi card in my notebook:
siba_bwn0@pci0:3:0:0: class=0x028000 card=0x1371103c chip=0x431214e4 rev=0x02 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM4310 UART (Wireless Ethernet Adapter)'
class = network
I tried to use the bwi-firmware-kmod driver but it didn't worked at all. Then I found this post and compiled the bwn-firmware-kmod instead.
I also added
if_bwn_load="YES" to the /boot/loader.conf. Now it seems to work and the card is being detected but I cannot see any networks.
I executes: ifconfig wlan0 scan but it doesn't return any results. Also the network manager in KDE cannot see anything.
What can I try to do to connect to my network. By the way, I also tried to add my WLAN manually in KDE but still no results.
Regards,
Radek
richardpl
November 6th, 2010, 18:21
If you ever bothered to search forum you would find this command:
ifconfig wlan0 list scan
This one is being asked all the time but it appears people don't want to read ifconfig manual page.
Also make sure that radio is turned on.
Radek
November 6th, 2010, 19:36
If you ever bothered to search forum you would find this command:
ifconfig wlan0 list scan
This one is being asked all the time but it appears people don't want to read ifconfig manual page.
Also make sure that radio is turned on.
Sorry but this one I have already found too (forget to mention). Radio is also on.
richardpl
November 7th, 2010, 00:15
Anything displayed in console?
Radek
November 7th, 2010, 13:25
No, as I wrote before, no output at all.
richardpl
November 8th, 2010, 09:09
Did you mentioned that bwn firmware is loaded?
Show output of kldstat.
And output of:
dmesg |grep -C15 bwn
Radek
November 8th, 2010, 09:27
Did you mentioned that bwn firmware is loaded?
I followed these instruction from bwn and added if_bwn_load="YES" to the /boot/loader.conf so I suppose it should be.
Unfortunately I don't know how to do this:
To compile this driver into the kernel, place the following lines in your
kernel configuration file:
device siba_bwn
device bwn
device wlan
device wlan_amrr
device firmware
So I choose the alternative way.
Did you mentioned that bwn firmware is loaded?
Show output of kldstat.
Id Refs Address Size Name
1 127 0xffffffff80100000 dc1600 kernel
2 1 0xffffffff80ec2000 1bb0 splash_pcx.ko
3 1 0xffffffff80ec4000 71a0 vesa.ko
4 2 0xffffffff80ed4000 ee88 ntfs.ko
5 1 0xffffffff80ee3000 19eee0 zfs.ko
6 2 0xffffffff81082000 3790 opensolaris.ko
7 1 0xffffffff81086000 194c8 geom_eli.ko
8 2 0xffffffff810a0000 2a248 crypto.ko
9 3 0xffffffff810cb000 dc40 zlib.ko
10 1 0xffffffff810d9000 1e650 geom_journal.ko
11 1 0xffffffff810f8000 21068 geom_mirror.ko
12 1 0xffffffff8111a000 3208 geom_uzip.ko
13 1 0xffffffff8111e000 41398 if_bwn.ko
14 2 0xffffffff81160000 ca80 siba_bwn.ko
15 1 0xffffffff8116d000 e710 if_ipw.ko
16 1 0xffffffff8117c000 130b8 if_iwi.ko
17 1 0xffffffff81190000 12258 if_wpi.ko
18 4 0xffffffff811a3000 751d0 sound.ko
19 1 0xffffffff81219000 13eb0 snd_uaudio.ko
20 1 0xffffffff8122d000 1dfa8 if_iwn.ko
21 1 0xffffffff8124b000 5638 cuse4bsd.ko
22 1 0xffffffff81251000 12970 pwc.ko
23 1 0xffffffff81264000 adc8 mmc.ko
24 1 0xffffffff8126f000 4048 mmcsd.ko
25 1 0xffffffff81274000 fdc0 ahci.ko
26 1 0xffffffff81284000 a468 siis.ko
27 1 0xffffffff8128f000 8130 sdhci.ko
28 1 0xffffffff81298000 5218 scd.ko
29 5 0xffffffff8129e000 6be0 libiconv.ko
30 1 0xffffffff812a5000 1fd8 libmchain.ko
31 1 0xffffffff812a7000 1008 cd9660_iconv.ko
32 1 0xffffffff812a9000 1028 msdosfs_iconv.ko
33 1 0xffffffff812ab000 fd8 ntfs_iconv.ko
34 2 0xffffffff812ac000 98c0 udf.ko
35 1 0xffffffff812b6000 fc0 udf_iconv.ko
36 1 0xffffffff812b7000 b150 tmpfs.ko
37 1 0xffffffff812c3000 dc2e60 nvidia.ko
38 3 0xffffffff82086000 40e60 linux.ko
39 1 0xffffffff82222000 39d0 linprocfs.ko
40 1 0xffffffff82226000 4ab8 if_lagg.ko
41 1 0xffffffff8222b000 141c6 snd_hda.ko
42 1 0xffffffff82240000 1fbe nullfs.ko
And output of:
dmesg |grep -C15 bwn
ahci0: <NVIDIA MCP65 AHCI SATA controller> port 0x30f8-0x30ff,0x30ec-0x30ef,0x30f0-0x30f7,0x30e8-0x30eb,0x30d0-0x30df mem 0xf2484000-0xf2485fff irq 23 at device 10.0 on pci0
ahci0: [ITHREAD]
ahci0: AHCI v1.10 with 4 3Gbps ports, Port Multiplier supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: [ITHREAD]
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich1: [ITHREAD]
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich2: [ITHREAD]
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich3: [ITHREAD]
pcib2: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci1: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 12.0 on pci0
pci3: <ACPI PCI bus> on pcib3
siba_bwn0: <Broadcom BCM4312 802.11a/b/g Wireless> mem 0xf2000000-0xf2003fff irq 16 at device 0.0 on pci3
siba_bwn0: unsupported coreid (USB 1.1 Host)
bwn0 on siba_bwn0
bwn0: WLAN (chipid 0x4311 rev 13) PHY (analog 4 type 2 rev 9) RADIO (manuf 0x17f ver 0x2050 rev 2)
bwn0: DMA (64 bits)
bwn0: Using 1 MSI messages
bwn0: [FILTER]
pcib4: <ACPI PCI-PCI bridge> at device 13.0 on pci0
pci5: <ACPI PCI bus> on pcib4
vgapci0: <VGA-compatible display> port 0x4000-0x407f mem 0xce000000-0xceffffff,0xd0000000-0xdfffffff,0xcc000000-0xcdffffff irq 19 at device 0.0 on pci5
nvidia0: <GeForce 8400M GS> on vgapci0
vgapci0: child nvidia0 requested pci_enable_busmaster
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
nvidia0: [ITHREAD]
pcib5: <ACPI PCI-PCI bridge> at device 14.0 on pci0
pci9: <ACPI PCI bus> on pcib5
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz0: _CRT value is absurd, ignored (-273.2C)
atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
--
uhub1: 10 ports with 10 removable, self powered
(probe0:ata0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:ata0:0:0:0): CAM status: SCSI Status Error
(probe0:ata0:0:0:0): SCSI status: Check Condition
(probe0:ata0:0:0:0): SCSI sense: NOT READY asc:3a,1 (Medium not present - tray closed)
cd0 at ata0 bus 0 scbus4 target 0 lun 0
cd0: <Slimtype DVD A DS8A1H WH66> Removable CD-ROM SCSI-0 device
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
ugen1.2: <SuYin> at usbus1
Trying to mount root from ufs:/dev/label/rootfs0
WARNING: / was not properly dismounted
WARNING: /var was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: TMPFS is considered to be a highly experimental feature in FreeBSD.
bwn_v4_ucode13: could not load firmware image, error 2
bwn0: the fw file(bwn_v4_ucode13) not found
bwn-open_v4_ucode13: could not load firmware image, error 2
bwn0: the fw file(bwn-open_v4_ucode13) not found
wlan0: Ethernet address: 00:1b:24:bf:02:88
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn_v4_ucode13: could not load firmware image, error 2
bwn0: the fw file(bwn_v4_ucode13) not found
bwn-open_v4_ucode13: could not load firmware image, error 2
bwn0: the fw file(bwn-open_v4_ucode13) not found
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
hdac0: <NVidia MCP65 High Definition Audio Controller> mem 0xf2480000-0xf2483fff irq 21 at device 7.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
hdac0: HDA Codec #0: Conexant CX20549 (Venice)
fwohci0: <1394 Open Host Controller Interface> mem 0xbff60000-0xbff607ff irq 9 at device 5.0 on pci7
fwohci0: [ITHREAD]
fwohci0: OHCI version 0.0 (ROM=0)
fwohci0: invalid OHCI version
fwohci0: fwohci_init failed with err=6
device_attach: fwohci0 attach returned 5
pcm0: <HDA Conexant CX20549 (Venice) PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm1: <HDA Conexant CX20549 (Venice) PCM #1 Digital> at cad 0 nid 1 on hdac0
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
bwn0: need multicast update callback
richardpl
November 8th, 2010, 12:17
You do not care what is written in console. Does those ring a bell?
bwn_v4_ucode13: could not load firmware image, error 2
bwn0: the fw file(bwn_v4_ucode13) not found
bwn-open_v4_ucode13: could not load firmware image, error 2
bwn0: the fw file(bwn-open_v4_ucode13) not found
bwn_v4_ucode13: could not load firmware image, error 2
bwn0: the fw file(bwn_v4_ucode13) not found
bwn-open_v4_ucode13: could not load firmware image, error 2
bwn0: the fw file(bwn-open_v4_ucode13) not found
You did not read manual page bwn (carefully). Does this ring a bell?
This driver requires firmware to be loaded before it will work. The
ports/net/bwn-firmware-kmod port needs to be installed before ifconfig(8)
will work. Most cases you need to use bwn_v4_ucode module but if you are
a LP (low power) PHY user please uses bwn_v4_lp_ucode module.
Output of kldstat does not show firmware for bwn loaded.
Radek
November 8th, 2010, 13:00
Is there any reason you are so impolite to me? !
You did not read manual page bwn (carefully). Does this ring a bell?
This driver requires firmware to be loaded before it will work. The
ports/net/bwn-firmware-kmod port needs to be installed before ifconfig(8)
will work. Most cases you need to use bwn_v4_ucode module but if you are
a LP (low power) PHY user please uses bwn_v4_lp_ucode module.
Output of kldstat does not show firmware for bwn loaded.
I have read the man page for bwn (and if you would read what I wrote before you would know that) and I compiled the firmware as stated in the manual and I configured everything as stated in the manual and didn't get any error message so I didn't supposed that it didn't work.
bwn_v4_ucode13: could not load firmware image, error 2
bwn0: the fw file(bwn_v4_ucode13) not found
Sorry didn't saw that. But even if, instead playing a big hero/guru here and telling me what everything I did wrong, maybe it would be much more polite and helpful for me and probably lot of other user if you could explain me what should I do or how do it right?
Radek
November 8th, 2010, 13:54
Ok, I loaded these module manually and restarted network. It works then but what can I do to load it automatically with the system start?
richardpl
November 8th, 2010, 14:07
Read loader.conf.
If I'm lazy like you are, I would never take look at this thread (or forum in general).
Nothing personal.
Radek
November 8th, 2010, 14:35
Read loader.conf.
If I'm lazy like you are, I would never take look at this thread (or forum in general).
Nothing personal.
You are so arrogant that it almost unbelievable.
Nothing personal
DutchDaemon
November 8th, 2010, 15:53
You're both going to stop this now. Or it will get personal.
Radek
November 8th, 2010, 16:54
You're both going to stop this now. Or it will get personal.
Of course we do. No matter how, but he helped me a lot so I said "thank you" and it solved fro me. ;)
Nollo
November 11th, 2010, 15:20
My card is not supported by bwi/bwn, do you know if someone is working on new driver based on http://www.broadcom.com/support/802.11/linux_sta.php ?
Here is my pciconf
hostb0@pci0:0:0:0: class=0x060000 card=0x04411028 chip=0x00448086 rev=0x18 hdr=0x00
vendor = 'Intel Corporation'
class = bridge
subclass = HOST-PCI
pcib1@pci0:0:1:0: class=0x060400 card=0x04411028 chip=0x00458086 rev=0x18 hdr=0x01
vendor = 'Intel Corporation'
class = bridge
subclass = PCI-PCI
none0@pci0:0:22:0: class=0x078000 card=0x04411028 chip=0x3b648086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
class = simple comms
ehci0@pci0:0:26:0: class=0x0c0320 card=0x04411028 chip=0x3b3c8086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
class = serial bus
subclass = USB
none1@pci0:0:27:0: class=0x040300 card=0x04411028 chip=0x3b568086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
class = multimedia
subclass = HDA
pcib2@pci0:0:28:0: class=0x060400 card=0x04411028 chip=0x3b428086 rev=0x06 hdr=0x01
vendor = 'Intel Corporation'
class = bridge
subclass = PCI-PCI
pcib3@pci0:0:28:1: class=0x060400 card=0x04411028 chip=0x3b448086 rev=0x06 hdr=0x01
vendor = 'Intel Corporation'
class = bridge
subclass = PCI-PCI
pcib4@pci0:0:28:2: class=0x060400 card=0x04411028 chip=0x3b468086 rev=0x06 hdr=0x01
vendor = 'Intel Corporation'
class = bridge
subclass = PCI-PCI
pcib5@pci0:0:28:4: class=0x060400 card=0x04411028 chip=0x3b4a8086 rev=0x06 hdr=0x01
vendor = 'Intel Corporation'
class = bridge
subclass = PCI-PCI
ehci1@pci0:0:29:0: class=0x0c0320 card=0x04411028 chip=0x3b348086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
class = serial bus
subclass = USB
pcib6@pci0:0:30:0: class=0x060401 card=0x04411028 chip=0x24488086 rev=0xa6 hdr=0x01
vendor = 'Intel Corporation'
device = '82801 Family (ICH2/3/4/5/6/7/8/9-M) Hub Interface to PCI Bridge'
class = bridge
subclass = PCI-PCI
isab0@pci0:0:31:0: class=0x060100 card=0x04411028 chip=0x3b0b8086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
class = bridge
subclass = PCI-ISA
atapci0@pci0:0:31:2: class=0x010601 card=0x04411028 chip=0x3b2f8086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
device = 'IBEX AHCI Controller(6Port)'
class = mass storage
subclass = SATA
none2@pci0:0:31:3: class=0x0c0500 card=0x04411028 chip=0x3b308086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
class = serial bus
subclass = SMBus
none3@pci0:0:31:6: class=0x118000 card=0x04411028 chip=0x3b328086 rev=0x06 hdr=0x00
vendor = 'Intel Corporation'
class = dasp
vgapci0@pci0:1:0:0: class=0x030000 card=0x04411028 chip=0x0a7510de rev=0xa2 hdr=0x00
vendor = 'NVIDIA Corporation'
class = display
subclass = VGA
none4@pci0:1:0:1: class=0x040300 card=0x04411028 chip=0x0be310de rev=0xa1 hdr=0x00
vendor = 'NVIDIA Corporation'
class = multimedia
subclass = HDA
none5@pci0:18:0:0: class=0x028000 card=0x00101028 chip=0x472714e4 rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
class = network
re0@pci0:19:0:0: class=0x020000 card=0x04411028 chip=0x816810ec rev=0x03 hdr=0x00
vendor = 'Realtek Semiconductor'
device = 'Gigabit Ethernet NIC(NDIS 6.0) (RTL8168/8111/8111c)'
class = network
subclass = ethernet
singing_sky
December 7th, 2010, 05:42
I've got my BCM4312 worked finally!!
This is my dmesg message..
firmware_register: cannot register image bwn_v4_lp_b0g0initvals5, firmware table full!
module_register_init: MOD_LOAD (bwn_v4_lp_ucode_fw, 0xc1181e70, 0) error 6
siba_bwn0: <Broadcom BCM4312 802.11b/g Wireless> mem 0x9b000000-0x9b003fff irq 18 at device 0.0 on pci3
bwn0 on siba_bwn0
bwn0: WLAN (chipid 0x4312 rev 15) PHY (analog 6 type 5 rev 1) RADIO (manuf 0x17f ver 0x2062 rev 2)
bwn0: DMA (64 bits)
bwn0: Using 1 MSI messages
bwn0: [FILTER]
bwn_v4_lp_ucode15: could not load firmware image, error 2
bwn0: the fw file(bwn_v4_lp_ucode15) not found
bwn-open_v4_lp_ucode15: could not load firmware image, error 2
bwn0: the fw file(bwn-open_v4_lp_ucode15) not found
and notice such one line:firmware_register: cannot register image bwn_v4_lp_b0g0initvals5, firmware table full!
module_register_init: MOD_LOAD (bwn_v4_lp_ucode_fw, 0xc1181e70, 0) error 6
and then i enlager the firmware table size by modifying /sys/kern/subr_firmware.c
#define FIRMWARE_MAX 30
increase the number 30 to a higer value. i changed it to 60
and then rebuild the kernel.
then it work!!!
Seeker
December 7th, 2010, 17:56
I'm using:
FreeBSD 8.2-PRERELEASE #0
My chip is BCM4321
I get:
siba_bwn0: <Unknown> mem 0xf1ffc000-0xf1ffffff,0xf0000000-0xf00fffff irq 17 at device 0.0 on pci12
siba_bwn0: warn: multiple PCI(E) cores
siba_bwn0: unsupported coreid (USB 1.1 Host)
richardpl
December 7th, 2010, 22:04
If if_bwn is loaded and bwn0 doesn't appear, bwn(4) does not support your card (yet).
Seeker
December 7th, 2010, 22:50
That is a case with me. ;)
I guess I'll have to wait with ndisulator.
richardpl
December 7th, 2010, 22:58
NDISulator on 8.2 have already got important changes: usable amd64 support being one of them.
Because you use wpa_supplicant, having scan result from ifconfig is not important right now.
Seeker
December 7th, 2010, 23:11
Yes, I did found commit of LAST stable_ndis5 (just before merge) and am currently using it.
Thou, out in caffe, where WPA isn't needed as WiFi is open for guests.
Works also at home with my encrypted WPA AP.
;)
cahimira
December 14th, 2010, 03:20
Hi!,
I have problems with my Broadcom card.
My installation is:
* OS: FreeBSD 8.1-RELEASE
* Wifi card: BCM4309
* CPU: PowerPC (POWERBOOK G4)
NOTE: the wifi card work fine in the same machine (powerbook g4) with UBUNTU and MACOS X (but I am a FreeBSD fan).
Here is info about my card:
# pciconf -lvcb
none0@pci1:0:18:0: class=0x028000 card=0x004e106b chip=0x432014e4 rev=0x02 hdr=0x00
vendor = 'Broadcom Corporation'
device = '802.11b/g Wireless LAN Controller (BCM4309)'
class = network
bar [10] = type Memory, range 32, base 0x80084000, size 8192, enabled
cap 01[40] = powerspec 2 supports D0 D1 D2 D3 current D0
[TEST #1: GENERIC kernel]
# kldload bwn_v4_lp_ucode
firmware_register: cannot register image bwn_v4_lp_lp0initvals15, firmware table full!
module_register_init: MOD_LOAD (bwn_v4_lp_ucode_fw, 0xd1be040c, 0) error 6
Same results with: bwn_v4_ucode and bwi_v3_ucode
[TEST #2: CUSTOM KERNEL BWI]
1- I edit "/sys/kern/subr_firmware.c" and change constant "FIRMWARE_MAX" from 30 to 60.
2- Then I boot with the custom kernel.
3- Load modules
# kldload bwi_v3_ucode
# kldload if_bwi
bwi0: <Broadcom BCM4306 802.11b/g Wireless Lan> mem 0x80084000-0x80085fff irq 52 at device 18.0 on pci1
bwi0: [ITHREAD]
bwi0: BBP: id 0x4306, rev 0x2, pkg 0
bwi0: MAC: rev 4
bwi0: PHY: type 2, rev 1, ver 1
bwi0: RF: manu 0x17f, type 0x2050, rev 2
bwi0: invalid antenna gain in sprom
bwi0: WARNING: using obsoleted if_watchdog interface
# kldstat
Id Refs Address Size Name
1 13 0x100000 843180 kernel
2 1 0xd1bdf000 29000 bwi_v3_ucode.ko
3 1 0xd1c08000 33000 if_bwi.ko
4 2 0xd1c3b000 61000 wlan.ko
# pciconf -lvcb
bwi0@pci1:0:18:0: class=0x028000 card=0x004e106b chip=0x432014e4 rev=0x02 hdr=0x00
vendor = 'Broadcom Corporation'
device = '802.11b/g Wireless LAN Controller (BCM4309)'
class = network
bar [10] = type Memory, range 32, base 0x80084000, size 8192, enabled
cap 01[40] = powerspec 2 supports D0 D1 D2 D3 current D0
# ifconfig bwi0
bwi0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:0a:95:f1:ed:65
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
Interface created and linked to driver, fine!
4- Create wlandev interface
# ifconfig wlan0 create wlandev bwi0
wlan0: Ethernet address: 00:0a:95:f1:ed:65
# ifconfig wlan0
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:0a:95:f1:ed:65
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 1 (2412 Mhz 11b)
country US authmode OPEN privacy OFF txpower 0 bmiss 7 scanvalid 60
bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 1
bintval 0
All working fine!
5- UP wlandev interface
# ifconfig wlan0 up
bwi0: firmware rev 0x0127, patch level 0x000e
RESULT: my notebook halt/crash , without show any messages...
[TEST #3: CUSTOM KERNEL BWN]
1- Same of TEST #2
2- Same of TEST #2
3- Load modules
# kldload bwn_v4_lp_ucode
# kldload if_bwn
siba_bwi0: <Broadcom BCM4306 802.11b/g Wireless Lan> mem 0x80084000-0x80085fff irq 52 at device 18.0 on pci1
siba_bwi0: warn: multiple 802.11 core
RESULT: interface not created :-( (same result with bwn_v4_ucode)
NOTE: if I try to load "if_bwi.ko" or "if_bwn.ko" in boot time (/boot/loader.conf) , I get a "KLD file XXXXX is missing dependencies" boot message.
richardpl
December 14th, 2010, 11:36
Then your only solution currrently is ndis
cahimira
December 15th, 2010, 02:58
ndis is not supported in POWERPC :-(
tingo
January 16th, 2011, 21:39
Hi, just confirming that the BCM4309 doesn't work with if_bwn and current net/bwn-firmware-kmod from ports. Details: the machine is a Mac PowerBook G4, currently running FreeBSD 8.1-release:
root@powerbook-g4# uname -a
FreeBSD powerbook-g4.kg4.no 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Sun Jul 18 11:09:21 UTC 2010
root@xserve.lan.xcllnt.net:/usr/obj/usr/src/sys/GENERIC powerpc
hardware:
root@powerbook-g4# pciconf -lv | grep -A 3 bwn
siba_bwn0@pci1:0:18:0: class=0x028000 card=0x004e106b chip=0x432014e4 rev=0x03 hdr=0x00
vendor = 'Broadcom Corporation'
device = '802.11b/g Wireless LAN Controller (BCM4309)'
class = network
relevant ports:
root@powerbook-g4# pkg_info | grep b[4w][3n]
b43-fwcutter-012 Extracts firmware for Broadcom Wireless adapters
bwn-firmware-kmod-0.1.0 Broadcom AirForce IEEE 802.11 Firmware Kernel Module
Loading the modules work, but when I do ifconfig wlan up
I get this in /var/log/messages:
Jan 16 19:42:45 powerbook-g4 kernel: bwn_v4_ucode5: could not load firmware image, error 2
Jan 16 19:42:45 powerbook-g4 kernel: bwn0: the fw file(bwn_v4_ucode5) not found
Jan 16 19:42:45 powerbook-g4 kernel: bwn-open_v4_ucode5: could not load firmware image, error 2
Jan 16 19:42:45 powerbook-g4 kernel: bwn0: the fw file(bwn-open_v4_ucode5) not found
If anyone is working on a port which includes that firmware, I will be happy to test the port. :-)
wblock@
January 17th, 2011, 07:20
Hi, just confirming that the BCM4309 doesn't work with if_bwn and current net/bwn-firmware-kmod from ports. Details: the machine is a Mac PowerBook G4, currently running FreeBSD 8.1-release:
Back in June, Weongyo Jeong was nice enough to help me with a Dell Truemobile 1300, which pciconf said was a 4309:
siba_bwn0@pci0:2:3:0: class=0x028000 card=0x00011028 chip=0x432014e4 rev=0x02 hdr=0x00
vendor = 'Broadcom Corporation'
device = '802.11b/g Wireless LAN Controller (BCM4309)'
class = network
That card only worked with a patched version of bwi and net/bwi-firmware-kmod. I don't know if the patches have been committed to 8-stable or even -current, and unfortunately no longer have the card or a mini-PCI slot in which to try it.
emc2
May 27th, 2011, 01:57
Is anyone interested in/already working on getting these drivers to work with BCM 4322 chipsets (the kind that come with MacBooks)? I'm potentially interested in taking this on as a side-project, but I'm not familiar with these drivers.
Seeker
May 27th, 2011, 08:25
I have BCM 4321 and will gladly test your code.
adrian@
May 30th, 2011, 02:56
.. if you guys have wireless stack related questions and wish to work on fixing up this driver, don't forget to ask the freebsd-wireless developers. :-)
emc2
June 10th, 2011, 03:36
I've never done any work with FreeBSD wireless drivers, so I was testing the waters to see if someone with more experience might be interested.
In any case, I know there's a Linux driver, which seems to be C code that calls into a closed-source .o file. Disassembling closed-source drivers to figure things out *is* something I've done before.
KNOStic
June 15th, 2011, 01:49
@emc2:
This would be fantastic if you can take up the gauntlet. I'd been hoping Weongyo would have been able to do so, but the PHYS-N nature of those radios seemed insurmountable. I looked at the Linux drivers published by Broadcom but ended up lost in all that penguin stuff. :)
Seeker
June 15th, 2011, 12:34
Ideally, person doing this, would be one from linux world, that already wrote drivers for linux, at least once and now has transferred to BSD and is prepared to write drivers for FreeBSD.
emc2
June 16th, 2011, 00:34
I've been out of FreeBSD for a while, and I haven't done any work on wireless drivers since 2006. However, I did help out a group with porting a driver to linux on a handheld device by disassembling the windows drivers and figuring out how they worked.
I don't have alot of free time, but I could try to do the same here. I have both the broadcom linux driver, and at least from what I've seen so far, it looks promising (ie, every single function and global variable has a name). It would be best if I could get in contact with someone to get more information on the ins and outs of the drivers.
emc2
June 27th, 2011, 19:57
I've been looking more at the Linux driver. The closed source .o file only has a handful of undefined symbols in it, about half of which are basic C functions (memcpy, strlen, etc.). My plan was/is to to reverse-compile the .o to get information which could be used to extend the bwn driver. But I wonder how hard it would be to write a wrapper around the .o that could plug into the FreeBSD kernel, as a way to get functionality in the mean time (and maybe to get some info about how the driver works via DDB)?
Seeker
June 27th, 2011, 20:07
Don't forget to pester rice eater!
;)
richardpl
June 27th, 2011, 21:38
I've been looking more at the Linux driver. The closed source .o file only has a handful of undefined symbols in it, about half of which are basic C functions (memcpy, strlen, etc.). My plan was/is to to reverse-compile the .o to get information which could be used to extend the bwn driver. But I wonder how hard it would be to write a wrapper around the .o that could plug into the FreeBSD kernel, as a way to get functionality in the mean time (and maybe to get some info about how the driver works via DDB)?
Didn't Linux guys do it already? Why not just use Linux code? It is already available.
emc2
June 28th, 2011, 21:08
Didn't Linux guys do it already? Why not just use Linux code? It is already available.
Can the FreeBSD kernel support Linux network driver interfaces and kernel APIs directly? (I'd be rather surprised if it can)
DutchDaemon
June 28th, 2011, 21:42
No, there's only Linux emulation.
richardpl
June 28th, 2011, 23:22
I mean make use of, e.g. and not use linux code directly.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.
0