检查网卡驱动:
[paul@localhost ~]$ lspci | grep Network 09:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b /g/n (rev 01)
安装依赖:
#e17
yum install kernel-abi-whitelists yum install redhat-lsb -y yum install kernel-devel.x86_64 -y yum install kernel-headers.x86_64 yum install rpm-build
建立rpmbuild目录 :
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
下载对应驱动:
wget http://elrepo.org/linux/elrepo/el7/SRPMS/wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm
编译:
#cp to rpmbuild/SOURCES/下 cp hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz ~/rpmbuild/SOURCES/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz #~/rpmbuild/RPMS文件夹下生成rpm文件 rpmbuild --rebuild --target=`uname -m` ~/wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm #安装rpmbuild/RPMS/下kmod-wl包 sudo rpm -Uvh ~/rpmbuild/RPMS/x86_64/kmod-wl-6_30_223_271-5.el7.local.x86_64.rpm sudo modprobe wl #加载驱动至内核 rm -rf rpmbuild #删除包
标签:BCM43142,30,271,wl,网卡,rpmbuild,64,linux,rpm From: https://www.cnblogs.com/cokelike/p/16638056.html