特殊:Badtitle/NS100:WifiDocs/Driver/bcm43xx:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
 
第1行: 第1行:
{{From|https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx}}
{{From|https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx}}
{{Languages|UbuntuHelp:WifiDocs/Driver/bcm43xx}}
{{Languages|UbuntuHelp:WifiDocs/Driver/bcm43xx}}
== Broadcom bcm43xx Chipset ==
#title WifiDocsDriverbcm43xx   
This page aims at getting your bcm43xx chipset based wireless network card to work in Ubuntu.  
<<Anchor(Top)>>
== Identifying Your Card and Which Driver to Use ==
This page aims at getting your Broadcom BCM43xx based wireless network card working. The proprietary drivers can be activated under the desktop menu '''System / Administration / Hardware Drivers.''' If you experience troubles activating follow the instructions on this page for your particular scenario.  
To see what chipset you have, in a terminal type `lspci`, which lists the PCI devices in your computer. One of the lines of the output might include something like the following:
== Broadcom BCM43xx Chipset (PCI) ==
=== Identifying Your Card/Driver ===
In a terminal the command `lspci` will display information about all PCI devices attached to your computer.  
The following is typical input/output from `lspci` indicating that Ubuntu has found a Broadcom wireless card/chipset and listed its model as BCM4322.
To display only devices manufactured by Broadcom (including wifi cards) suffix the following to `lspci`:
<pre><nowiki>
<pre><nowiki>
04:01.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
~$ lspci -vvnn | grep 14e4
</nowiki></pre>
</nowiki></pre>
This indicates that your computer recognizes one of your pieces of hardware as a network controller based on the bcm4318 chipset. Note that this doesn't mean your card is working properly. To achieve this, you need to install drivers.
'''Note:''' The example output below indicates the model number to be BCM4322 (rev 01).
The newest version of drivers for bcm43xx cards are b43 and b43-legacy. They replace the old bcm43xx driver (named after the chipset), which is now deprecated. To see which driver you need to use, check the table at [http://linuxwireless.org/en/users/Drivers/b43#Known_PCI_devices the LinuxWireless.org's b43 driver page]. Your PCI-ID used to identify your card should be of the form 14e4:43xx and can be obtained by noting the first entry associated with your card when doing `lspci` (in the example above, this is 04:01.0) and doing `lspci -n` which matches that number with the card's PCI-ID (continuing the example, you could also do `lspci -n | grep 04:01.0`):
<pre><nowiki>
<pre><nowiki>
[user@domain ~]$ lspci -n | grep 04:01.0
03:00.0 Network controller [0280]: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b] (rev 01)
04:01.0 0280: 14e4:4318 (rev 02)
</nowiki></pre>
</nowiki></pre>
== Installing Drivers for the bcm43xx Cards ==
[[UbuntuHelp:[Top|Back to top]]]
Ubuntu 9.04 Jaunty Jackalope provides the b43 drivers, but due to copyright reasons not the proprietary firmware which is required to run your card.  
== Installing b43/STA hybrid drivers ==
=== With Alternate Internet Access ===
===== 9.10 (Karmic Koala), 10.04 (Lucid Lynx) =====
If you have some other kind of internet access on your computer, you can download the firmware automatically by simply installing the `b43-fwcutter` package which does the download and setup for you. You will probably need to restart your computer before seeing the results.
Supported models, mostly found on Dell hardware, include:
=== No Alternate Internet Access ===
BCM4311, BCM4312, BCM4313, BCM4321, BCM4322, BCM43224, BCM43225
If you don't have any other means of internet access on your computer, you will have to:
=== Internet Access ===
<ol><li>Install `b43-fwcutter` (without the firmware downloading and being set up) which should be located on the Ubuntu 9.04 install disc (add it as a repository in Synaptic) or from `/var/cache/apt/archives` on an Ubuntu computer with b43 installed.
'''Step 1.'''
</li><li>Obtain</li></ol>
Install the b43/STA hybrid drivers/firmware from the [http://www.ubuntu.com/community/ubuntustory/components restricted repository] using the '''Synaptic Package Manager''' and search for the `bcmwl-kernel-source` package and install or in a terminal use the aptitude or apt-get commands:
 
* [http://downloads.openwrt.org/sources/wl_apsta-3.130.20.0.o] and  
* [http://downloads.openwrt.org/sources/broadcom-wl-4.80.53.0.tar.bz2].
<ol><li>Execute the following necessary commands on the files above manually</li></ol>
 
<pre><nowiki>
<pre><nowiki>
sudo b43-fwcutter -w /lib/firmware wl_apsta-3.130.20.0.o
~$ sudo aptitude update
tar xfvj broadcom-wl-4.80.53.0.tar.bz2
~$ sudo aptitude install bcmwl-kernel-source
sudo b43-fwcutter --unsupported -w /lib/firmware broadcom-wl-4.80.53.0/kmod/wl_apsta_mimo.o
</nowiki></pre>
</nowiki></pre>
Try restarting your computer to verify the installation went correctly.
'''Step 2.'''
If it fails to work after a restart try 'sudo modprobe b43'. Then add the line 'b43' to 'sudo gedit /etc/modules'.
Under the desktop menu '''System > Administration > Hardware Drivers''', the drivers can be activated for use.
== Checking if it Worked ==
'''Note:''' A computer restart may be required before using the wifi card.
You can see if the module is loaded by running `lsmod | grep b43` and if you have a new wireless interface by running `ifconfig`.
==== LiveCD/LiveUSB ====
== Alternative Solutions ==
For temporary use with the [[UbuntuHelp:LiveCD|LiveCD]] and LiveUSB environments, simply use the Synaptic Package Manager to search for and install the bcmwl-kernel-source  package. Refer to Step 1 and Step 2 of the instructions above.
If your drivers still don't work, you can try using the Windows drivers through [[UbuntuHelp:WifiDocs/Driver/Ndiswrapper|ndiswrapper]]. This worked for me on versions older than 9.04 but didn't work for me on 9.04 (although the method above did).
'''Step 3:''' Instead of a computer restart, in a terminal issue the following commands:
There are more resources on other pages. Please select your version:
<pre><nowiki>
* Ubuntu Hardy 8.04 LTS , [[UbuntuHelp:WifiDocs/Driver/bcm43xx/Hardy|WifiDocs/Driver/bcm43xx/Hardy]]
~$ sudo modprobe -r b43 ssb wl
* Ubuntu Dapper 6.06 LTS , [[UbuntuHelp:WifiDocs/Driver/bcm43xx/Dapper|WifiDocs/Driver/bcm43xx/Dapper]]
~$ sudo modprobe wl
</nowiki></pre>
[[UbuntuHelp:[Top|Back to top]]]
=== No Internet Access ===
If you do not have any other means of internet access on your computer, you will have to
install `bcmwl-kernel-source` package from the [http://www.ubuntu.com/community/ubuntustory/components restricted] folder under '''../pool/restricted/b/bcmwl''' on the Ubuntu install media. This may be done in the following manner depending on the installation media used:
==== CDROM/DVD ====
'''Step 1.'''
Install the `bcmwl-kernel-source` package using the '''Synaptic Package Manager'''. First select '''Add CD-ROM''' from the edit menu to enable the install media as a package repository, then click on '''Reload''' to refresh the available packages list, ignore any internet/download errors. Now search for the `bcmwl-kernel-source` package and install.
'''Step 2:'''
Under the desktop menu '''System > Administration > Hardware Drivers''', the drivers can be activated for use.
'''Note:''' A computer restart may be required before using the wifi card.
==== LiveCD/LiveUSB ====
For temporary use with the [[UbuntuHelp:LiveCD|LiveCD]] and LiveUSB environments, simply use the Synaptic Package Manager to search for and install the bcmwl-kernel-source  package. Refer to Step 1 and Step 2 of the CDROM/DVD instructions above.
'''Step 3:''' Instead of a computer restart, in a terminal issue the following commands:
<pre><nowiki>
~$ sudo modprobe -r b43 ssb wl
~$ sudo modprobe wl
</nowiki></pre>
==== USB/Netbooks ====
'''Step 1.'''
Navigate the install media and install the following packages in a terminal:
../pool/main/d/dkms
<pre><nowiki>
:/dkms/$ sudo dpkg -i dkms*
</nowiki></pre>
../pool/main/p/patch
<pre><nowiki>
:/patch/$ sudo dpkg -i patch*
</nowiki></pre>
../pool/main/f/fakeroot
<pre><nowiki>
:/fakeroot/$ sudo dpkg -i fakeroot*
</nowiki></pre>
../pool/restricted/b/bcmwl
<pre><nowiki>
:/bcmwl/$ sudo dpkg -i bcmwl-kernel-source*
</nowiki></pre>
'''Step 2.'''
Under the desktop menu '''System > Administration > Hardware Drivers''', the drivers can be activated for use.
'''Note:''' A computer restart may be required before using the wifi card.
[[UbuntuHelp:[Top|Back to top]]]
== Installing BCM43xx drivers ==
===== 8.04.x (Hardy Heron), 9.04 (Jaunty Jackalope), 9.10 (Karmic Koala), 10.04 (Lucid Lynx) =====
The Ubuntu kernel in versions 8.04.x (Hardy Heron) and higher do provide the b43 drivers, however due to copyright restrictions not the proprietary firmware which is required to run your card. See [http://wireless.kernel.org/en/users/Drivers/b43 here] for a list of known PCI devices and their available modes as well as supported/unsupported chipsets.
The following instructions explain how to extract the required firmware.
=== Internet Access ===
If you have some other kind of internet access on your computer, you can download the firmware by simply installing the `b43-fwcutter` package which does the download and setup for you automatically.
https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx?action=AttachFile&do=get&target=b43-fwcutter.png
To install `b43-fwcutter` issue the following command in a terminal and follow the prompts:
<pre><nowiki>
~$ sudo apt-get install b43-fwcutter
</nowiki></pre>
[[UbuntuHelp:[Top|Back to top]]]
=== No Internet Access ===
If you do not have any other means of internet access on your computer, you will have to
install `b43-fwcutter` and setup manually (without the firmware automatically downloading and being set up). `b43-fwcutter` is located on the Ubuntu install cd under '''../pool/main/b/b43-fwcutter/''' or in the official repositories online.
Double click on the package to install or in a terminal navigate to the folder containing the package and issue the following command:
<pre><nowiki>
:/b43-fwcutter/$ sudo dpkg -i b43-fwcutter*
</nowiki></pre>
'''Note:''' Do not select 'fetch and extract firmware'. Once installed in a terminal type the following to view the b43-fwcutter manual page for further instruction: 
<pre><nowiki>
~$ man b43-fwcutter
</nowiki></pre>
[[UbuntuHelp:[Top|Back to top]]]
== Unsupported cards ==
If you are unable to use the b43 kernel driver or the b43/STA hybrid driver, you will need to go for [[UbuntuHelp:WifiDocs/Driver/Ndiswrapper|ndiswrapper]] - this will allow you to use Microsoft Windows drivers for your card.  
<!> '''You will need to blacklist the b43 kernel driver(s)''' <!>
To do this edit and add the following two lines to '''/etc/modprobe.d/blacklist.conf''':
<pre><nowiki>
blacklist b43
blacklist ssb
</nowiki></pre>
'''Note:''' Once blacklisted the b43 kernel drivers can not be used until these entires are removed.
[[UbuntuHelp:[Top|Back to top]]]
== See Also ==
* Broadcom [http://www.broadcom.com/support/802.11/linux_sta.php b43/STA] linux driver page.
* [http://wireless.kernel.org/en/users/Drivers/b43 b43 Kernel driver] wireless.kernel.org
* Installing Windows drivers with [[UbuntuHelp:WifiDocs/Driver/Ndiswrapper|NdisWrapper]]
* Installing b43-fwcutter without a wired connection: [http://byisk.info/index.php/issues-with-a-broadcom-nic-on-ubuntu-10-4-beta/   Personal Blog]
[[UbuntuHelp:[Top|Back to top]]]
----
----
[[category:CategoryHardware]] [[category:CategoryNetworking]] [[category:CategoryWireless]]
[[category:CategoryHardware]] [[category:CategoryNetworking]] [[category:CategoryWireless]]


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2010年5月20日 (四) 00:55的最新版本

{{#ifexist: :WifiDocs/Driver/bcm43xx/zh | | {{#ifexist: WifiDocs/Driver/bcm43xx/zh | | {{#ifeq: {{#titleparts:WifiDocs/Driver/bcm43xx|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:WifiDocs/Driver/bcm43xx|1|-1|}} | zh | | }}

  1. title WifiDocsDriverbcm43xx

<<Anchor(Top)>> This page aims at getting your Broadcom BCM43xx based wireless network card working. The proprietary drivers can be activated under the desktop menu System / Administration / Hardware Drivers. If you experience troubles activating follow the instructions on this page for your particular scenario.

Broadcom BCM43xx Chipset (PCI)

Identifying Your Card/Driver

In a terminal the command `lspci` will display information about all PCI devices attached to your computer. The following is typical input/output from `lspci` indicating that Ubuntu has found a Broadcom wireless card/chipset and listed its model as BCM4322. To display only devices manufactured by Broadcom (including wifi cards) suffix the following to `lspci`:

~$ lspci -vvnn | grep 14e4

Note: The example output below indicates the model number to be BCM4322 (rev 01).

03:00.0 Network controller [0280]: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b] (rev 01)

[[UbuntuHelp:[Top|Back to top]]]

Installing b43/STA hybrid drivers

9.10 (Karmic Koala), 10.04 (Lucid Lynx)

Supported models, mostly found on Dell hardware, include: BCM4311, BCM4312, BCM4313, BCM4321, BCM4322, BCM43224, BCM43225

Internet Access

Step 1. Install the b43/STA hybrid drivers/firmware from the restricted repository using the Synaptic Package Manager and search for the `bcmwl-kernel-source` package and install or in a terminal use the aptitude or apt-get commands:

~$ sudo aptitude update
~$ sudo aptitude install bcmwl-kernel-source

Step 2. Under the desktop menu System > Administration > Hardware Drivers, the drivers can be activated for use. Note: A computer restart may be required before using the wifi card.

LiveCD/LiveUSB

For temporary use with the LiveCD and LiveUSB environments, simply use the Synaptic Package Manager to search for and install the bcmwl-kernel-source package. Refer to Step 1 and Step 2 of the instructions above. Step 3: Instead of a computer restart, in a terminal issue the following commands:

~$ sudo modprobe -r b43 ssb wl
~$ sudo modprobe wl

[[UbuntuHelp:[Top|Back to top]]]

No Internet Access

If you do not have any other means of internet access on your computer, you will have to install `bcmwl-kernel-source` package from the restricted folder under ../pool/restricted/b/bcmwl on the Ubuntu install media. This may be done in the following manner depending on the installation media used:

CDROM/DVD

Step 1. Install the `bcmwl-kernel-source` package using the Synaptic Package Manager. First select Add CD-ROM from the edit menu to enable the install media as a package repository, then click on Reload to refresh the available packages list, ignore any internet/download errors. Now search for the `bcmwl-kernel-source` package and install. Step 2: Under the desktop menu System > Administration > Hardware Drivers, the drivers can be activated for use. Note: A computer restart may be required before using the wifi card.

LiveCD/LiveUSB

For temporary use with the LiveCD and LiveUSB environments, simply use the Synaptic Package Manager to search for and install the bcmwl-kernel-source package. Refer to Step 1 and Step 2 of the CDROM/DVD instructions above. Step 3: Instead of a computer restart, in a terminal issue the following commands:

~$ sudo modprobe -r b43 ssb wl
~$ sudo modprobe wl

USB/Netbooks

Step 1. Navigate the install media and install the following packages in a terminal: ../pool/main/d/dkms

:/dkms/$ sudo dpkg -i dkms*

../pool/main/p/patch

:/patch/$ sudo dpkg -i patch*

../pool/main/f/fakeroot

:/fakeroot/$ sudo dpkg -i fakeroot*

../pool/restricted/b/bcmwl

:/bcmwl/$ sudo dpkg -i bcmwl-kernel-source*

Step 2. Under the desktop menu System > Administration > Hardware Drivers, the drivers can be activated for use. Note: A computer restart may be required before using the wifi card. [[UbuntuHelp:[Top|Back to top]]]

Installing BCM43xx drivers

8.04.x (Hardy Heron), 9.04 (Jaunty Jackalope), 9.10 (Karmic Koala), 10.04 (Lucid Lynx)

The Ubuntu kernel in versions 8.04.x (Hardy Heron) and higher do provide the b43 drivers, however due to copyright restrictions not the proprietary firmware which is required to run your card. See here for a list of known PCI devices and their available modes as well as supported/unsupported chipsets. The following instructions explain how to extract the required firmware.

Internet Access

If you have some other kind of internet access on your computer, you can download the firmware by simply installing the `b43-fwcutter` package which does the download and setup for you automatically. bcm43xx?action=AttachFile&do=get&target=b43-fwcutter.png To install `b43-fwcutter` issue the following command in a terminal and follow the prompts:

~$ sudo apt-get install b43-fwcutter

[[UbuntuHelp:[Top|Back to top]]]

No Internet Access

If you do not have any other means of internet access on your computer, you will have to install `b43-fwcutter` and setup manually (without the firmware automatically downloading and being set up). `b43-fwcutter` is located on the Ubuntu install cd under ../pool/main/b/b43-fwcutter/ or in the official repositories online. Double click on the package to install or in a terminal navigate to the folder containing the package and issue the following command:

:/b43-fwcutter/$ sudo dpkg -i b43-fwcutter*

Note: Do not select 'fetch and extract firmware'. Once installed in a terminal type the following to view the b43-fwcutter manual page for further instruction:

~$ man b43-fwcutter

[[UbuntuHelp:[Top|Back to top]]]

Unsupported cards

If you are unable to use the b43 kernel driver or the b43/STA hybrid driver, you will need to go for ndiswrapper - this will allow you to use Microsoft Windows drivers for your card. <!> You will need to blacklist the b43 kernel driver(s) <!> To do this edit and add the following two lines to /etc/modprobe.d/blacklist.conf:

blacklist b43
blacklist ssb

Note: Once blacklisted the b43 kernel drivers can not be used until these entires are removed. [[UbuntuHelp:[Top|Back to top]]]

See Also

[[UbuntuHelp:[Top|Back to top]]]