centos 安装 Broadcom无线网卡驱动

 

使用命令检测网卡 lspci | grep Network   为“06:00.0  Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev  01)” 官网http://www.broadcom.com/support/802.11/linux_sta.php 下载最新的网卡驱动程序  hybrid-portsrc_x86_32-v5_100_82_38.tar.gz   驱动支持
 
         BRCM            PCI    PCI          Dell 
        Product Name      Vendor ID    Device ID    Product ID 
          -------------     ----------    ---------   ----------- 
          4311 2.4 Ghz        0x14e4    0x4311      Dell 1390 
          4311 Dualband        0x14e4    0x4312      Dell 1490 
          4311 5 Ghz        0x14e4  0x4313       
          4312 2.4 Ghz        0x14e4    0x4315      Dell 1395 
          4313 2.4 Ghz        0x14e4    0x4727     Dell 1501 
          4321 Dualband        0x14e4    0x4328      Dell 1505 
          4321 Dualband        0x14e4    0x4328      Dell 1500 
          4321 2.4 Ghz        0x14e4    0x4329       
          4321 5 Ghz        0x14e4    0x432a       
          4322 Dualband     0x14e4    0x432b      Dell 1510 
          4322 2.4 Ghz      0x14e4     0x432c       
          4322 5 Ghz        0x14e4     0x432d       
          43224 Dualband    0x14e4    0x4353      Dell 1520 
          43225 2.4 Ghz     0x14e4    0x4357       
          43227 2.4 Ghz     0x14e4  0x4358 

          43228 Dualband    0x14e4  0x4359      Dell 1530

使用命令lspci -n | grep 14e4  验证网卡 pci ids 如果含有你的网卡则进行下一步,

# mkdir hybrid_wl 

# cd hybrid_wl 

# tar xzf <path>/hybrid-portsrc_x86-32_v5.100.82.38.tar.gz

当驱动文件解压后 

# make clean   (optional) 
# make

如果是第一安装则下一步

# lsmod  | grep "b43\|ssb\|wl"

如果列出系统自带的驱动则

# rmmod b43 
# rmmod ssb 
# rmmod wl

然后再将现有的驱动程序添加到黑名单中

# echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
# echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf

现在开始载入新的驱动

# modprobe lib80211  
或者
# modprobe ieee80211_crypt_tkip

然后

# insmod wl.ko

等待5秒钟的样子

就可以正确的显示无线网了

如果时间过了很久则使用下面的命令验证是否加载正确的网卡驱动

  # lsmod  | grep "b43\|ssb\|wl"

如果正确执行,则下一步

添加开机启动

# load driver as described above 
# cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless  //其中‘unanme-r’是系统的内核版本
# depmod -a 
 
# echo modeprobe wl >> /etc/rc.local





安装遇到问题解决:


1。src/include/typedefs.h:86: 错误:与 ‘bool’ 类型冲突
解决方法:

跟网上说的一样编辑typedefs.h文件

注释这几行

1
2
3
4
5
/* 
#ifndef TYPEDEF_BOOL 
typedef  unsigned char  bool; 
#endif 
*/


2。

src/wl/sys/wl_linux.c: In function ‘wl_schedule_task’:
src/include/linuxver.h:88: 错误:‘work_func_t’ 重定义
解决方法:

1
2
3
4
5
6
7
8
9
10
11
12
/* 
         if (!(task = MALLOC(wl->osh, sizeof(wl_task_t)))) { 
                         WL_ERROR(("wl%d: wl_schedule_task: out of memory, malloced %d bytes\n", 
                         wl->pub->unit, MALLOCED(wl->osh))); 
   
                 return -ENOMEM; 
        
   
         MY_INIT_WORK(&task->work, (work_func_t)fn); 
         task->context = context; 
   
*/

我把这几行都注释掉了,虽然会出现 “ 警告:此函数中的 ‘task’ 在使用前未初始化”,貌似是没有什么影响。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值