Broadcom WiFi

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.
 
nekoexmachina said:
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.
[cmd=]ifconfig wlan0 scan[/cmd] just hangs for unlimited time.

scan is working try wlan0 up list scan
 
Code:
device = 'Broadcom Wireless B/G (BCM4315/BCM22062000)'

Anyone managed to get it working? I tried but nothing..
Code:
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
 
Code:
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(8). The modules are in /boot/modules, and the driver works without hw.bwn.usedma=0.
 
Everything is installed.. I'm trying to connect to an open network and so my wpa_complicant.conf is
Code:
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..
 
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

Code:
network_interfaces="AUTO"
wpa_supplicant_enable="YES"
wlans_bwn0="wlan0"
ifconfig_wlan0="WPA DHCP"

and in /boot/defaults/loader.conf [ NO! see below - Mod. ]
Code:
bwn_v4_lp_ucode_load="YES"

Then reboot and logon in X11 and run wifimgr

All is working ;)
 
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 instead of this unformatted mess. Thanks.
 
bwn(4) requires a firmware to be loaded.

/boot/loader.conf
Code:
if_bwn_load="YES"
bwn_v4_ucode_load="YES"

You get the firmware from the net/bwn-firmware port (I think).
 
I hope it's ok I'm writing here.

I have also this WiFi card in my notebook:

Code:
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
Code:
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:
Code:
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
 
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(8) manual page.

Also make sure that radio is turned on.
 
richardpl said:
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(8) 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 said:
Did you mentioned that bwn(4) firmware is loaded?

I followed these instruction from bwn(4) and added
Code:
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.

richardpl said:
Did you mentioned that bwn(4) firmware is loaded?
Show output of kldstat(8).

Code:
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

richardpl said:
And output of:
$ dmesg |grep -C15 bwn

Code:
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
 
You do not care what is written in console. Does those ring a bell?

Code:
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(4) (carefully). Does this ring a bell?
Code:
    [b]This driver requires firmware to be loaded before it will work[/b].  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(8) does not show firmware for bwn(4) loaded.
 
Is there any reason you are so impolite to me? !

richardpl said:
You did not read manual page bwn(4) (carefully). Does this ring a bell?
Code:
    [b]This driver requires firmware to be loaded before it will work[/b].  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(8) does not show firmware for bwn(4) 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.

richardpl said:
Code:
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?
 
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?
 
DutchDaemon said:
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. ;)
 
Back
Top