Install Broadcom Wireless BCM43142 Driver on Red Hat Enterprise Linux

Build and install kmod-wl for Broadcom Wireless Adapter Driver

Check your Wireless network adapter details
#####################################
[root@localhost ~]# lspci
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3)
00:1c.1 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #2 (rev e3)
00:1c.2 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
08:00.0 Network controller: Broadcom Limited BCM43142 802.11b/g/n (rev 01)
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 08)

Now Start the Driver installation process for Network Controller: Broadcom Limited BCM43142

Install the required tools/packages
############################
[root@localhost ~]# yum install kernel-headers kernel-devel gcc -y
[root@localhost ~]# yum install redhat-lsb kernel-abi-whitelists -y

Install Development Tools
#######################
[root@localhost ~]# yum group install 'Development Tools'

Install Kernel package
####################
[root@localhost ~]# yum install kernel-devel-$(uname -r) -y
Loaded plugins: langpacks
Package kernel-devel-3.10.0-693.el7.x86_64 already installed and latest version
Nothing to do

As a regular user, configure a build tree and minimal .rpmmacros
Now switch to normal user
##########################
[root@localhost ~]# su - shashank
[shashank@localhost ~]$ mkdir -p ~/rpmbuild/{BUILD,RPMS,SPECS,SOURCES,SRPMS}

[shashank@localhost ~]$ echo -e "%_topdir $(echo $HOME)/rpmbuild\n%dist .el$(lsb_release -s -r|cut -d"." -f1).local" >> ~/.rpmmacros
[shashank@localhost ~]$ ls -ll ~/.
./             .bash_profile  .config/       .local/     
../            .bashrc        .esd_auth      .mozilla/   
.bash_logout   .cache/        .ICEauthority  .rpmmacros

Download wl-kmod*nosrc.rpm
##########################
[shashank@localhost ~]$ wget http://elrepo.org/linux/elrepo/el7/SRPMS/wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm
[shashank@localhost ~]$ ls
Desktop    Music     rpmbuild   wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm

Move wl-kmod*nosrc.rpm to rpmbuild/SOURCES
##########################################
[shashank@localhost ~]$ mv wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm ~/rpmbuild/SOURCES/
[shashank@localhost ~]$ cd ~/rpmbuild/SOURCES
[shashank@localhost SOURCES]$ ls
hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm

Now Download the Broadcom Driver
###############################
Go to the link and download driver as mentioned
http://www.broadcom.com/support/802.11 (scroll down to "Linux® STA 64-bit driver")

[root@localhost ~]# cd Downloads/
[root@localhost Downloads]# ls
hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz

Move the driver file to rpmbuild/SOURCES
####################################
[root@localhost Downloads]# mv hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz /home/shashank/Downloads/

[root@localhost ~]# su - shashank
[shashank@localhost ~]# cd Downloads
[shashank@localhost Downloads]$ mv hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz ~/rpmbuild/SOURCES/

[shashank@localhost Downloads]$ cd ~/rpmbuild/SOURCES/
[shashank@localhost SOURCES]$ ls
hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm

Note: You should have these 2 above files to move further

Now Build kmod-wl rpm as the normal user (switched to shashank as above)
###############################################################
[shashank@localhost SOURCES]$ rpmbuild --rebuild --define 'packager shashank' wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm wl-kmod*nosrc.rpm
Installing wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm
.......................................................
Wrote: /home/shashank/rpmbuild/RPMS/x86_64/kmod-wl-6_30_223_271-5.el7.local.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.fppu7b
+ umask 022
+ cd /home/shashank/rpmbuild/BUILD
+ cd wl-kmod-6_30_223_271
+ /usr/bin/rm -rf /home/shashank/rpmbuild/BUILDROOT/wl-kmod-6_30_223_271-5.el7.elrepo.x86_64
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.hKt1bv
+ umask 022
+ cd /home/shashank/rpmbuild/BUILD
+ rm -rf wl-kmod-6_30_223_271
+ exit 0

Note: After the above output the new kmod-wl rpm has been built

Switch to root user and check the kmod-wl rpm file
###############################################
[root@localhost ]# cd /home/shashank/rpmbuild/RPMS/
[root@localhost RPMS]# ls
x86_64
[root@localhost RPMS]# cd x86_64/
[root@localhost x86_64]# ls
kmod-wl-6_30_223_271-5.el7.local.x86_64.rpm

Now install the new kmod-wl rpm from root
#####################################
[root@localhost x86_64]# yum --nogpgcheck localinstall kmod-wl-6_30_223_271-5.el7.local.x86_64.rpm
Loaded plugins: langpacks
Examining kmod-wl-6_30_223_271-5.el7.local.x86_64.rpm: kmod-wl-6_30_223_271-5.el7.local.x86_64
Marking kmod-wl-6_30_223_271-5.el7.local.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package kmod-wl.x86_64 0:6_30_223_271-5.el7.local will be installed
............................................................................
Installed:
  kmod-wl.x86_64 0:6_30_223_271-5.el7.local                                 
Complete!

Now Reboot or you can Start wireless now as below
###########################################
[root@localhost x86_64]# modprobe wl

Now check your wifi card details
############################
[root@localhost x86_64]# ifconfig
..........................................
wlo1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 96:d6:4a:ea:f7:7b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 130
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 18

######################################################################
You are done with Kmod Driver installation for Broadcom Wireless and Now connect your Wifi


Comments

Popular posts from this blog

DevOps Interview Questions

Calico Certified Operator: AWS Expert Questions & Answers

CKAD Certification Exam Preparation Guide and Tips