Broadcom wireless: Difference between revisions
(→Loading the wl kernel module: Rename section "Manual ly", touch-ups, note about unpackaged installations are dangerous.) |
(→Troubleshooting: Gestalt edit, running out of time. My bad.) |
||
Line 80: | Line 80: | ||
== Troubleshooting == | == Troubleshooting == | ||
Various bugs that can be remedied. | |||
=== Device inaccessible after kernel upgrade === | |||
Since the 3.3.1 kernel the '''bcma''' module was introduced. If using a '''brcm80211''' driver be sure it hasn't been [[Kernel_modules#Blacklisting|blacklisted]]. If using a '''b43''' driver be sure the it has been. | |||
=== Device with broadcom-wl driver not working/showing === | |||
Be sure the correct modules are blacklisted and occasionally it may be necessary to blacklist the '''brcm80211''' drivers if accidentally detected before the '''wl''' driver is loaded. Furthermore, update the modules dependencies {{ic|depmod -a}}, verify the wireless interface with {{ic|ip addr}}, kernel upgrades will require an upgrade of the non-[[DKMS]] package. | |||
=== Interfaces swapped with broadcom-wl === | |||
Users of the broadcom-wl driver may find their Ethernet and Wi-Fi interfaces have been swapped. See [[Network configuration#Device names|device naming]] for an answer. | |||
=== Interface is showing but not allowing connections === | |||
Append the following [[kernel parameter]]: | |||
b43.allhwsupport=1 | |||
=== Suppressing console messages === | === Suppressing console messages === | ||
leavebe | |||
=== | === Device BCM43241 non-detected === | ||
This device will not display with either {{ic|lspci}} nor {{ic|lsusb}} there is not a solution. Please remove this section when resolved. |
Revision as of 18:07, 23 February 2015
zh-CN:Broadcom wireless This article details how to install and setup a Broadcom wireless network device.
History
Broadcom has a noted history with its support for Wi-Fi devices regarding GNU/Linux. For a good portion of its initial history, Broadcom devices were either entirely unsupported or required the user to tinker with the firmware. The limited set of wireless devices that were supported were done so by a reverse-engineered driver. The reverse-engineered b43 driver was introduced in the 2.6.24 kernel.
In August 2008, Broadcom released the 802.11 Linux STA driver officially supporting Broadcom wireless devices on GNU/Linux. This is a restrictively licensed driver and it does not work with hidden ESSIDs, but Broadcom promised to work towards a more open approach in the future.
In September 2010, Broadcom released a fully open source driver. The brcm80211 driver was introduced in the 2.6.37 kernel and in the 2.6.39 kernel it was sub-divided into the brcmsmac
and brcmfmac
drivers.
The types of available drivers are:
Driver | Description |
---|---|
brcm80211 | Kernel driver open-source version |
b43 | Kernel driver reverse-engineered version |
broadcom-wl | Broadcom driver restricted-license |
Driver selection
To know what driver(s) are operable on the computer's Broadcom wireless network device, the device ID and chipset name will need to be detected. Cross-reference them with the driver list of supported brcm80211 and b43 devices.
$ lspci -vnn | grep 14e4:
Installation
brcm80211
Included in the kernel, the open source drivers are named brcmsmac for PCI backends and brcmfmac for SDIO/USB backends. Upon boot they should be detected and the driver Kernel_modules#Loading loaded.
b43
Included in the kernel, the reverse-engineered drivers are named b43 and b43legacy (supports the BCM4301 and early BCM4306 chipsets). For these to work the firmware is required to be installed. To avoid possible driver collisions, blacklist the non-used driver.
Install b43-firmwareAUR or b43-firmware-legacyAUR from the AUR.
Low-power support
If the Broadcom wireless model has low-power support, a special firmware can be to be installed to utilize it. It can be detected by doing:
$ lspci | grep Broadcom | grep LP-PHY
For supported models download the necessary firmware and follow these directions (requires b43-fwcutter:
$ curl -LO http://downloads.openwrt.org/sources/broadcom-wl-4.178.10.4.tar.bz2 $ tar xjf broadcom-wl-4.178.10.4.tar.bz2 $ cd broadcom-wl-4.178.10.4/linux # b43-fwcutter -w /lib/firmware wl_apsta.o
broadcom-wl
Install broadcom-wlAUR or its DKMS variant broadcom-wl-dkmsAUR from the AUR for the restrictively licensed driver.
Manually
Install the driver from a download on the Broadcom web page. After this, to avoid driver/module collisions with similar modules, and to make the driver available do:
# rmmod b43 # rmmod ssb # modprobe wl
The wl module should automatically loal lib80211 or lib80211_crypt_tkip otherwise they will have to be manually loaded.
If the driver doesn't work at this point, it may be needed that the dependencies are updated:
# depmod -a
To make the module load at boot, refer to Kernel_modules#Loading loaded. Upon boot to have the driver Kernel_modules#Loading loaded and to blacklist conflicting modules is recommended.
Troubleshooting
Various bugs that can be remedied.
Device inaccessible after kernel upgrade
Since the 3.3.1 kernel the bcma module was introduced. If using a brcm80211 driver be sure it hasn't been blacklisted. If using a b43 driver be sure the it has been.
Device with broadcom-wl driver not working/showing
Be sure the correct modules are blacklisted and occasionally it may be necessary to blacklist the brcm80211 drivers if accidentally detected before the wl driver is loaded. Furthermore, update the modules dependencies depmod -a
, verify the wireless interface with ip addr
, kernel upgrades will require an upgrade of the non-DKMS package.
Interfaces swapped with broadcom-wl
Users of the broadcom-wl driver may find their Ethernet and Wi-Fi interfaces have been swapped. See device naming for an answer.
Interface is showing but not allowing connections
Append the following kernel parameter:
b43.allhwsupport=1
Suppressing console messages
leavebe
Device BCM43241 non-detected
This device will not display with either lspci
nor lsusb
there is not a solution. Please remove this section when resolved.