您的位置:首页 > 其它

rhel6.6的内核源码安装与BCM4322无线网卡驱动的安装

2015-04-08 13:31 639 查看
实验机子为台式机无任何网络

kernel version:uname -rm -->2.6.32-504.el6.i686.i686

redhat-release:rhel 6.6

无线网卡 -->

      BRCM                     PCI                PCI                      Dell

  Product Name   Vendor ID         Device ID            Product ID

       4322               Dualband    0x14e4 0x432b       Dell 1510

*************************************************************************************************************************************************************************************************

内核安装编译:

下载对应的内核源码kernel-‘uname -r’.src.rpm包到u盘

1.将u盘挂载好后,执行rpm -ivh xxxx.src.rpm,会自动在/root/目录下生成rpmbuild文件夹

2.cd /root/rpmbuild/SPECS/,执行rpmbuild -bp --target=i686 xx.specs(target内容根据自己机器而定)

若出现error:缺少依赖-->在http://mirror.centos.org/下载对应的package并手动安装,有网络的可在线安装

3.选择在/home/下进行安装编译,执行cp -rf /root/rpmbuild/ /home/ ,rm -rf /root/rpmbuild/(注意根分区太小后面安装编译内核会出现空间不够),使用mv会出现错误

  再执行 cd /home/rpmbuild/BUILD/kernel-xxx/linux-xxx/

4.make mrproper   -->remove all gernerated files+config+various backup,

5.make menuconfig -->配置内核,生成.config文件(配置详解http://blog.csdn.net/xuyuefei1988/article/details/8635539)

(简单自定义配置可以cd /usr/src/redhat/BUILD/kernel-xxx/linux-xxx/configs,再cp kernel-xxx.config ../.config,注意是../.config,

也可复制当前系统上的/boot/config-版本-平台到/usr/src/linux/.config覆盖这个文件)

6.make --> 编译内核

7.make modules -->编译

8.make modules_install --> 安装后/lib/modules/目录下就会生成一个以版本号命名的一个文件模块

9.make install -->安装完之后会在/boot/目录下生成一个内核文件vmlinuz-3.13.2、还有几个跟你当前编译的版本一样的文件

10.vim /boot/grub/grub.conf -->修改默认启动的内核(把default值改成0,就为默认启动,编译成功后默认为1)

**************************************************************************************************************************************************************************************************

无线网卡驱动安装

1.lspci | grep Wireless -->查看无线网卡的产品号

2.无线网卡驱动下载:http://www.broadcom.com/support/802.11/linux_sta.php

3.查看readme文件

其中If you try to build this module but get an error message that looks likethis:make: *** /lib/modules/"release"/build: No such file or directory. Stop.

Then you do not have the proper packages installed,since installing the proper packages will create /lib/modules/"release"/build on your system.

而其实/lib/modules/"release"/build -->(link链接到)/usr/src/kernels/'uname -r'/

4.mkdir hybrid_wl

5.cd hybrid_wl

6.tar xzf <path>/hybrid-v35-nodebug-pcoem-portsrc.tar.gz or

  <path>/hybrid-v35_64-nodebug-pcoem-portsrc.tar.gz

7.make clean   (optional)

8. make -->会生成wl.ko文件

  出现error,执行make API=CFG80211或者make API=WEXT(虽然readme上不推荐但是这个管用)

9.make install

10.readme中

There are several other drivers (besides this one) that can drive Broadcom 802.11 chips. These include b43, brcmsmac, bcma and ssb. They willconflict with this driver and

need to be uninstalled before this drivercan be installed.  Any previous revisions of the wl driver also need tobe removed.

查看除编译好驱动外包含的驱动:lsmod  | grep "brcmsmac\|b43\|ssb\|bcma\|wl"

11.移除出现会冲突的驱动:

# rmmod b43

# rmmod brcmsmac

# rmmod ssb

# rmmod bcma

# rmmod wl

12.再拉入黑名单禁止其加载:

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

# echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf

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

# echo "blacklist brcmsmac" >> /etc/modprobe.d/blacklist.conf

13.modprobe lib80211 -->add a security module before using the wl module

14.modprobe cfg80211 -->If your using the cfg80211 version of the driver, then cfg80211 needs to beloaded

15.insmod wl.ko

若出现错误查看 readme

16.iwconfig查看无线设备


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  rhel 博通无线网卡