博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CentOS 7无线网卡驱动解决方法
阅读量:6838 次
发布时间:2019-06-26

本文共 6299 字,大约阅读时间需要 20 分钟。

centOS7 BCM43142无线网卡驱动:

解决方法:http://elrepo.org/tiki/wl-kmod

Please note: The current Broadcom closed-source Linux drivers when built according to the instructions provided here have provided functional wireless capability to some users, but have failed for other users.
Broadcom Corp. provides closed-source IEEE 802.11a/b/g/n Linux drivers for use with Broadcom's BCM4311, BCM4312, BCM4313, BCM4321, BCM4322, BCM4352, BCM43142, BCM43224, BCM43225, BCM43227 and BCM43228 wireless chipsets. We (ELRepo) cannot create and redistribute binary RPMS for these drivers due to the Broadcom licensing restrictions (i.e., liability issues). However, we do make available no-source SRPMS (.nosrc.rpm) which contain the framework required to build the binaries, but lack the proprietary code and are not subject to Broadcom's licensing restrictions.
These no-source SRPMS can be used by the end user to build kABI-compatible binary drivers for local use. These kABI-compatible binaries should be usable after future kernel updates, so there is no need to recompile them for each new kernel. Please note that the nosrc.rpm package does not build kmod-wl for kernel-xen and kmod-wl cannot be built on a system running kernel-xen.
To build a kmod-wl binary, you will need to (1) configure a build tree, (2) download the wl-kmod*nosrc.rpm for your EL release, (3) download the closed-source tarball from Broadcom for your architecture (i.e., 32-bit vs 64-bit) into the build tree and (4) initiate the kmod-wl build. For convenience, the kernel development package for the running kernel will be used in the build process, as opposed to our normal policy of building against an older kernel development package.
The kmod-wl package can be built on any system running the same EL release/architecture as the target system. If you are building on the target system and lack network connectivity, then the downloads can be made onto a USB flash drive and copied onto your system.
Below are the detailed instructions on how to build the binary packages. If you are already familiar with using rpmbuild to build packages, then this process should only take you 5-10 minutes to complete.

Build and install kmod-wl for EL5/6/7

Please note ( EL7.0 to EL7.1 updating ):
   kmod-wl built under EL7.0 will not provide wireless connectivity under EL7.1 kernels. ( Likewise, kmod-wl built under EL7.1 will not provide wireless connectivity under EL7.0 kernels. )
   You will need to build the updated wl-kmod srpm (see below) and install/update the resulting kmod-wl after updating to EL7.1.
   To simplify kmod-wl rebuilding/installation prior to EL7.1 updating, carry out steps 1 through 4 (see below) while you have network connectivity.
   If you have already updated to EL7.1 and have lost network connectivity, then boot the previous EL7.0 kernel, carry out steps 1 through 4 (see below) and then boot the EL7.1 kernel.
1) Install needed tools/packages:

   1a) EL5:
     # yum groupinstall 'Development Tools'
     # yum install redhat-lsb
     * Install appropriate kernel*devel
       - For 32-bit:     # yum install kernel-devel-$(uname -r|sed 's/PAE//') kernel-PAE-devel-$(uname -r|sed 's/PAE//')
       - For 64-bit:     # yum install kernel-devel-$(uname -r)
   1b) EL6:
     # yum groupinstall 'Development Tools'
     # yum install redhat-lsb kernel-abi-whitelists
     # yum install kernel-devel-$(uname -r)
       EL6 Note: Due to a bug in redhat-rpm-config-9.0.3-42.el6, a modification is required to fix the
       kabi-whitelist target in /usr/lib/rpm/redhat/find-requires.ksyms before you build kmod-wl.
       Please run as root (as a single copy/paste):
       [[ $(rpm -q redhat-rpm-config|grep 9.0.3-42|wc -l) -gt 0 ]] && sed -i \
       's@/lib/modules/kabi/kabi_whitelist@/lib/modules/kabi-current/kabi_whitelist@g' \
       /usr/lib/rpm/redhat/find-requires.ksyms
   1c) EL7:
     # yum group install 'Development Tools'
     # yum install redhat-lsb kernel-abi-whitelists
     # yum install kernel-devel-$(uname -r)
       EL7.0 Note: Due to a bug in redhat-rpm-config-9.1.0-63.el7, a modification is required to fix the
       kabi-whitelist target in /usr/lib/rpm/redhat/find-requires.ksyms before you build kmod-wl.
       Please run as root (as a single copy/paste):
       [[ $(rpm -q redhat-rpm-config|grep 9.1.0-63|wc -l) -gt 0 ]] && sed -i \
       's@/lib/modules/kabi/kabi_whitelist@/lib/modules/kabi-rhel70/kabi_whitelist@g' \
       /usr/lib/rpm/redhat/find-requires.ksyms
       The above modification is not needed for EL7.1 or later.

2) As a regular user (not as root), configure a build tree and minimal .rpmmacros:

   $ mkdir -p ~/rpmbuild/{BUILD,RPMS,SPECS,SOURCES,SRPMS}
    $ echo -e "%_topdir $(echo $HOME)/rpmbuild\n%dist .el$(lsb_release -s -r|cut -d"." -f1).local" >> ~/.rpmmacros

3) Download wl-kmod*nosrc.rpm

   For EL5:
   For EL6:
   For EL7:

4) Download the Broadcom driver matching your architecture (i.e., 32-bit vs 64-bit):

   from:  
   to:      ~/rpmbuild/SOURCES/

5) Build kmod-wl as a regular user (not as root):

    $ rpmbuild --rebuild --target=`uname -m` --define 'packager <your-name>' /<path-to-nosrc.rpm>/wl-kmod*nosrc.rpm
   ...
    Wrote: /home/<user>/rpmbuild/RPMS/x86_64/kmod-wl-<version>.x86_64.rpm
   ...
   + exit 0
     (Note: The rpmbuild option --target=`uname -m` is only required for EL5 32-bit builds.)

   Note: The above build may not yield a fully functional binary driver for certain older Broadcom hardware under EL 6.  
   If an EL 6 driver built using the above instructions does not appear to be fully functional, then try building it using the Wireless Extensions API:
    $ rpmbuild --rebuild --define 'packager <your-name>' --define 'apiwext 1' /<path-to-nosrc.rpm>/wl-kmod*el6.elrepo.nosrc.rpm
   Assuming you have already installed a faulty kmod-wl, then be sure to uninstall it (i.e., # rpm -e kmod-wl) before installing the new kmod-wl.

6) If ndiswrapper is installed and is no longer needed, then remove it:

     # yum remove \*ndiswrapper\*

7) Install kmod-wl:

    # rpm -Uvh /path-to-rpm/kmod-wl*rpm
   OR
    # yum --nogpgcheck localinstall /path-to-rpm/kmod-wl*rpm

8) Reboot or to start wireless now:

   8a) EL5:
     * Works immediately after installation without intervention
   8b) EL6:
     # modprobe -r b43 b43legacy ssb wl lib80211
     # modprobe -r bcma (Note: needed for EL 6.4 and later)
     # modprobe lib80211_crypt_tkip
     # modprobe wl
   8c) EL7:
     # modprobe wl

9) Store kmod-wl*rpm for safe keeping
10) Optional - Remove the build tree:

   $ rm -rf ~/rpmbuild

转载于:https://my.oschina.net/websec/blog/390216

你可能感兴趣的文章
MBProgressHUD使用
查看>>
例说DNS递归/迭代名称解析原理
查看>>
逐步展示
查看>>
台湾一老师演讲词值得中国人深思
查看>>
看2014视频三国杀
查看>>
微信“封杀”网易云音乐,真的错了吗?
查看>>
支付宝架构师:从工程师到架构师的成长之路
查看>>
android系统如何自适应屏幕大小
查看>>
十周第二次课(5月28日)
查看>>
推荐系统之信息茧房问题
查看>>
maven参数
查看>>
predis连接redis sentinel的问题处理
查看>>
js写码良好习惯
查看>>
shmall参数设置不当引起数据库启动时报out of memory报错
查看>>
Linux查看性能的命令介绍
查看>>
Web模糊测试工具Powerfuzzer
查看>>
spring boot 新手错误
查看>>
Python-常用模块
查看>>
sudo详解
查看>>
Log4j学习汇总—–配置详解
查看>>