centos 7 安装无线网卡驱动

https://elrepo.org/tiki/wl-kmod   官方文档地址


网卡型号:BCM43224


安装依赖包(EL6/EL7):(个人亲测有效 ,有不对的地方请指出谢谢)

 


     # yum groupinstall 'Development Tools'


     # yum install redhat-lsb kernel-abi-whitelists


     # yum install kernel-devel-$(uname -r)


 


用普通用户重新编译包:



   $ 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) 下载包地址




   For EL6: http://elrepo.org/linux/elrepo/el6/SRPMS/wl-kmod-6_30_223_271-3.el6.elrepo.nosrc.rpm (external link)


   For EL7: http://elrepo.org/linux/elrepo/el7/SRPMS/wl-kmod-6_30_223_271-4.el7.elrepo.nosrc.rpm (external link)






4) : 下载源码包放置到 ~/rpmbuild/SOURCES/




   from:   http://www.broadcom.com/support/802.11 (external link) (scroll down to "Linux® STA 32-bit (or 64-bit) drivers")


   to:      ~/rpmbuild/SOURCES/






5)重新编译RPM包使用普通用户




   $ rpmbuild --rebuild --define 'packager <当前普通用户的名字>' /下载RPM包路径/wl-kmod*nosrc.rpm
   






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




     # yum remove \*ndiswrapper\*






7)  根据重新编译的提示找到重新生成RPM包的位置,并安装


   # rpm -Uvh /path-to-rpm/kmod-wl*rpm


8) 重启系统


   8a) 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


   8b) EL7:


     # modprobe wl






9) Store kmod-wl*rpm for safe keeping




10) Optional - Remove the build tree:




   $ rm -rf ~/rpmbuild


你可能感兴趣的:(linux问题)