Broadcom Wireless: Difference between revisions

From SlackWiki
Jump to navigation Jump to search
(A HowTo for installing and configuring Broadcom wireless cards on Slackware)
 
mNo edit summary
Line 4: Line 4:
This tutorial is written for setting up wireless on Slackware on laptops with Broadcom wireless cards. It deals with installing Boradcom's official proprietary '''wl''' driver for Linux that includes support for Broadcom's BCM4311-, BCM4312-, BCM4313-, BCM4321-, BCM4322-, BCM43224-, and BCM43225-, BCM43227- and BCM43228-based hardware.
This tutorial is written for setting up wireless on Slackware on laptops with Broadcom wireless cards. It deals with installing Boradcom's official proprietary '''wl''' driver for Linux that includes support for Broadcom's BCM4311-, BCM4312-, BCM4313-, BCM4321-, BCM4322-, BCM43224-, and BCM43225-, BCM43227- and BCM43228-based hardware.


= Prerequisites =
== Prerequisites ==


This tutorial assumes a full Slackware installation. There should also be a way to transfer files to the target laptop - it can either be a working internet connection using the laptop's ethernet card, '''or''' a different machine with internet access and a USB thumb drive to transfer the files.
This tutorial assumes a full Slackware installation. There should also be a way to transfer files to the target laptop - it can either be a working internet connection using the laptop's ethernet card, '''or''' a different machine with internet access and a USB thumb drive to transfer the files.
The regular user account on the laptop must also be a part of the ''netdev'' group.
The regular user account on the laptop must also be a part of the ''netdev'' group.


= Getting Started =
== Getting Started ==


The first thing is to check if the user is part of the ''netdev'' group :
The first thing is to check if the user is part of the ''netdev'' group :
Line 21: Line 21:
where <code>username</code> is the name of your user account.
where <code>username</code> is the name of your user account.


= Installing the driver =
== Installing the driver ==


Navigate to the slackbuilds.org's [http://slackbuilds.org/result/?search=broadcom-sta&sv= broadcom-sta page] and build the package according to the [http://slackbuilds.org/howto/ instructions] given. Make sure to download the source code relevant to the architecture of your installation (32-bit or 64-bit).
Navigate to the slackbuilds.org's [http://slackbuilds.org/result/?search=broadcom-sta&sv= broadcom-sta page] and build the package according to the [http://slackbuilds.org/howto/ instructions] given. Make sure to download the source code relevant to the architecture of your installation (32-bit or 64-bit).


= Blacklisting the b43 and ssb modules =
== Blacklisting the b43 and ssb modules ==


The Broadcom's <code>wl</code> driver conflicts with the kernel's <code>b43</code> driver, so open up the <code>/etc/modprobe.d/blacklist.conf</code> using the text editor of your choice as <code>root</code> and add the following lines to it :
The Broadcom's <code>wl</code> driver conflicts with the kernel's <code>b43</code> driver, so open up the <code>/etc/modprobe.d/blacklist.conf</code> using the text editor of your choice as <code>root</code> and add the following lines to it :
Line 34: Line 34:
</pre>
</pre>


= Final steps =
== Final steps ==


At this point, reboot your machine. The drivers should be installed and work now. To test this, enter the <code>iwconfig</code> command. you should see an output like this :
At this point, reboot your machine. The drivers should be installed and work now. To test this, enter the <code>iwconfig</code> command. you should see an output like this :
Line 54: Line 54:
You can now either use the <code>iwconfig</code> tool to configure your wireless networks, '''or''' if you prefer to use a GUI, follow the next section for installing Wicd.
You can now either use the <code>iwconfig</code> tool to configure your wireless networks, '''or''' if you prefer to use a GUI, follow the next section for installing Wicd.


= Installing Wicd =
== Installing Wicd ==


To make management of wireless connections easier, we will install [http://wicd.sourceforge.net/ Wicd] network manager that provides a simple configuration GUI and system tray icon.
To make management of wireless connections easier, we will install [http://wicd.sourceforge.net/ Wicd] network manager that provides a simple configuration GUI and system tray icon.
Line 71: Line 71:
</pre>
</pre>


= Wicd usage =
== Wicd usage ==
Start the Wicd daemon :
Start the Wicd daemon :



Revision as of 11:26, 9 September 2011

Introduction

This tutorial is written for setting up wireless on Slackware on laptops with Broadcom wireless cards. It deals with installing Boradcom's official proprietary wl driver for Linux that includes support for Broadcom's BCM4311-, BCM4312-, BCM4313-, BCM4321-, BCM4322-, BCM43224-, and BCM43225-, BCM43227- and BCM43228-based hardware.

Prerequisites

This tutorial assumes a full Slackware installation. There should also be a way to transfer files to the target laptop - it can either be a working internet connection using the laptop's ethernet card, or a different machine with internet access and a USB thumb drive to transfer the files. The regular user account on the laptop must also be a part of the netdev group.

Getting Started

The first thing is to check if the user is part of the netdev group :

groups

If the output does not contain netdev, then as root, enter the following command :

usermod -a -G netdev username

where username is the name of your user account.

Installing the driver

Navigate to the slackbuilds.org's broadcom-sta page and build the package according to the instructions given. Make sure to download the source code relevant to the architecture of your installation (32-bit or 64-bit).

Blacklisting the b43 and ssb modules

The Broadcom's wl driver conflicts with the kernel's b43 driver, so open up the /etc/modprobe.d/blacklist.conf using the text editor of your choice as root and add the following lines to it :

blacklist ssb
blacklist b43

Final steps

At this point, reboot your machine. The drivers should be installed and work now. To test this, enter the iwconfig command. you should see an output like this :

$ iwconfig
lo        no wireless extensions.

eth1      IEEE 802.11  Nickname:"lapto"
          Access Point: Not-Associated   
          Link Quality:5  Signal level:217  Noise level:199
          Rx invalid nwid:0  invalid crypt:31  invalid misc:0

eth0      no wireless extensions.

This output suggests that the drivers installed right and your wireless card is recognized as eth1 by the kernel. Hooray!

You can now either use the iwconfig tool to configure your wireless networks, or if you prefer to use a GUI, follow the next section for installing Wicd.

Installing Wicd

To make management of wireless connections easier, we will install Wicd network manager that provides a simple configuration GUI and system tray icon.

Using slackpkg

If you already have a working internet connection on the laptop (say a wired connection), simply use slackpkg to install wicd :

slackpkg install wicd

Using package tarball

Download the Wicd package for your Slackware version from the extra/ section of your preferred Slackware mirror and install using installpkg. For example, on a 32-bit system, as root :

 wget http://slackware.osuosl.org/slackware-13.37/extra/wicd/wicd-1.7.0-i486-2.txz
 installpkg ./wicd-1.7.0-i486-2.txz

Wicd usage

Start the Wicd daemon :

 /etc/rc.d/rc.wicd start

Once its started, run wicd-client and configure the network to your liking.

Caveat

Wicd by default treats wlan0 as the default wireless interface. Since the interface is eth1 in our case, you might want to correct this in Wicd's Preferences.