Centos7.7 install bcm43142 (Broadcom) wireless network card driver
Reference link:
http://elrepo.org/tiki/wl-kmod
https://www.cnblogs.com/mrway/p/9416246.html
First install environment dependencies
yum group install 'Development Tools' yum install redhat-lsb kernel-abi-whitelists yum install kernel-devel-$(uname -r)
Create a rpm environment using a common user account
$ 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
Download wl-kmod * nosrc.rpm
For EL6: http://elrepo.org/linux/elrepo/el6/SRPMS/wl-kmod-6_30_223_271-3.el6.elrepo.nosrc.rpm
For EL7: http://elrepo.org/linux/elrepo/el7/SRPMS/wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm
Download the driver of Broadcom wireless network card, download 32-bit and 64-bit according to your personal situation, and after downloading, put the driver into the directory created above ~ / rpmbuild / SOURSES /
Use a normal user to run the command to build the installation package (must not use the root user)
$ rpmbuild --rebuild --target=`uname -m` /<path-to-nosrc.rpm>/wl-kmod*nosrc.rpm
...
+ exit = 0
Note: If there is no user in this step, you can create a new one according to the prompted user name.
Note: If the content of unpacking archive failed ... is prompted, it may be that the rpmbuild was not run as a normal user when it was created, or the sudo command was used when copying, and the directory and copy files can be re-used as a normal user.
If ndiswrapper has been installed, remove it
# yum remove \*ndiswrapper\*
Install the generated package, the generated package is generally in the folder generated above ~ / rpmbuild / RPMS /
rpm -Uvh /path-to-rpm/kmod-wl*rpm
Restart the computer or run the following command to take effect immediately
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
Note: If there is still no Wifi display after restarting, or the required key not available is displayed during the Star command, please turn off the secure boot (SECURE BOOT) in the BIOS and try again.
Delete the rpmbuild folder according to your needs
rm -rf ~/rpmbuild
DONE!