LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1540|回复: 1

Debian-lenny下配置BCM4312无线网卡

[复制链接]
发表于 2009-5-14 23:13:11 | 显示全部楼层 |阅读模式
Debian-lenny下配置BCM4312无线网卡
2009-05-14

本文方法适用的系统环境:Debian GNU/Linux--lenny, kernel 2.6.26-2-686

可能会用到的软件包:wireless-tools和wpasupplicant(这两个包系统一般会缺省安装),没有使用很多帖子中提到的这个软件: b43-fwcutter。

1、下载官方的驱动程序
下载地址:http://www.broadcom.com/support/802.11/linux_sta.php

2、编译和安装
按照驱动程序包中README.TXT所说的编译和安装

3、加载ieee80211_crypt_tkip

4、设置wpa支持

/etc/network/interfaces文件中加入:
wpa-ssid ssidName
wpa-psk wpaPskKey
============================================

配置文件/etc/network/interfaces的相关内容:

auto eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.x.x
netmask 255.255.255.0
gateway 192.168.x.1
wpa-ssid dlink
wpa-psk xxxx

注:如果是双网卡,并且ip在同一个网段,会出现经典的双网卡路由问题,可以先关掉不用的那个,调通无线后再说。
============================================

驱动程序包中README.TXT文件的相关内容:
On the target machine, setup the source/hybrid/build directory

1.  Create a new directory:                 mkdir hybrid_wl
2.  Go to that directory:                   cd hybrid_wl
3.  Untar the appropriate 32/64 bit file
      to that directory
        32 bit:                             tar -xzf <path>/hybrid-portsrc-x86_32-v5_10_91_9.tar.gz
        64 bit:                             tar -xzf <path>/hybrid-portsrc-x86_64-v5_10_91_9.tar.gz

After untar'ing you should have a src and lib sub directory plus a Linux
2.6 "kbuild" external makefile (Makefile).   The lib sub directory has the pre-built
binary, wlc_hybrid.o_shipped.

You use the standard Linux 2.6 kernel build system as follows to make a Linux loadable
kernel module (LKM):

On the target machine, and cd'ed to the directory that contains the Makefile (fragment)

4.  Cleanup (optional):                  make -C /lib/modules/<2.6.xx.xx>/build M=`pwd` clean
5.  Build the LKM, i.e. wl.ko:           make -C /lib/modules/<2.6.xx.xx>/build M=`pwd`

You should now have a LKM, wl.ko inside this directory.

On this or a machine with the same kernel version, install the driver.

1.  Validate you don't have loaded (or built into the kernel) the Linux community provided
      driver for Broadcom hardware.  This exists in two forms: either "bcm43xx" or a split form
      of "b43" plus "b43legacy".  If these modules were loaded you would either
        a) rmmod bcm43xx or
        b) rmmod b43; rmmod b43legacy
1a. Validate you don't have a older wl.ko driver loaded from previous install.
      If the module exist, remove it and replace with new driver:
        a) rmmod wl.ko
2.  Replacing existing driver with wl.ko just build in step 5 above.
      (most likely path to find wl.ko is: /lib/modules/<kernel_version>/kernel/driver/net/wireless
       or /lib/modules/<kernel_version>/kernel.net/update/)
3.  depmod
4.  modprobe wl

Some kernels come with a pre-installed Broadcom driver that supports Broadcom's 43xx family of
PCIE cards.  If the kernel supports one of those pre-installed driver, you must remove it in order
to install the new driver.  Some of the existing drivers provided by the Linux community that support
Broadcom hardware are b43/b43legacy/bcm43xx.  There is also a ssb driver that is loaded along with
b43.  This ssb driver also must be removed.

If the kernel supports blacklist, you can add those drivers to the blacklist file so that it will
not be loaded on next reboot.
============================================
发表于 2009-5-16 09:44:40 | 显示全部楼层
Thank you for sharing.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表