Thursday, May 14, 2015

[Centos] How to install Broadcom BCM43142 wifi driver on Centos 6.6

Last night, I just installed Centos 6.6 on my Dell Inspirion 15R 5520. Everything works fine except the wireless device. So here is the steps:

Step 1

[root@blackhat /]# yum groupinstall "Development Tools" 

Step 2

[root@blackhat /]# yum install gcc* compact-* install kernel-devel-$(uname -r) kernel-headers redhat-lsb kernel-abi-whitelists
 

Step 3 : create new directory

[root@blackhat /]# mkdir bcm43142 
[root@blackhat /]# cd bcm43142 

Step 4 : Download the driver from Broadcom official website (https://www.broadcom.com/support/802.11/linux_sta.php) and untar the file


32 bit driver
wget https://www.broadcom.com/docs/linux_sta/hybrid-v35-nodebug-pcoem-6_30_223_248.tar.gz

64 bit driver
[root@blackhat bcm43142]# wget https://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz

Untar the downloaded file
[root@blackhat bcm43142]# tar -xzvf hybrid-v35_64-nodebug-pcoem-6_30_223_248.tar.gz
 

Step 5 : Build the driver

[root@blackhat bcm43142]# make

* When the build completes, it will produce a wl.ko file in the top level directory.

Step 6 : Insmod the driver

[root@blackhat bcm43142]# modprobe lib80211
[root@blackhat bcm43142]# modprobe cfg80211
[root@blackhat bcm43142]# insmod wl.ko

Step 7 : load the wireless device at boot time

[root@blackhat bcm43142]# cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless 
[root@blackhat bcm43142]# depmod -a

That's it, hope it'll help others

REFERENCE
https://www.broadcom.com/docs/linux_sta/README_6.30.223.248.txt

14 comments:

  1. I am having issue at step > # insmod wl.ko
    having Dell Inspiron 5520 with CentOS7 and Broadcom BCM43142. Even I had reference but every time got failed.

    ReplyDelete
    Replies
    1. Hi;
      i have this problem!
      Please, help me :'(

      Delete
    2. I also have a Dell Inspiron (14) with CentOS7 and I'm trying to solve this.

      Delete
  2. Hey, I had tried alot. This blog is savior and only the ray of hope to get installed Wireless driver. I had tried since 3 Years, None distro of Linux helped me to establish the Wireless driver. Previous comment was also mine.
    I have following configuration :

    Dell Inspiron 15R (5520) : Broadcom BCM43142.
    Please please help me once, I'm newbie for Linux, I want to learn Linux but this issue always pool-back me to windows. Now, I'm getting learning something, I had taken reference manual : https://www.broadcom.com/docs/linux_sta/README_6.30.223.248.txt and visited various blogs and forum. None of them helped me. Thanks alot Jazli.

    ReplyDelete
    Replies
    1. Thank you for visiting and drop comments to my blog

      Delete
  3. Thanks Man it worked for me
    i have Dell Vostro 2520 with Centos 7

    Thankx once again

    ReplyDelete
  4. hi
    i don't have any internet connection in centos so i can't run the command as yum install gcc* compact-* install kernel-devel-$(uname -r) kernel-headers redhat-lsb kernel-abi-whitelists

    Any solutions for this one?

    ReplyDelete
  5. abdossamad rahnemania connect another computer lan cable .share internet.

    ReplyDelete
  6. 终于看到这篇文章,谢谢!

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. Doesn't work for me, throws an error after make command. I'm using Oracle Linux 7.6, below are the logs from command line.

    [root@localhost bcm43142]# make
    KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
    make: *** /lib/modules/4.14.35-1902.3.1.el7uek.x86_64/build: No such file or directory. Stop.
    make: *** [all] Error 2
    [root@localhost bcm43142]#

    ReplyDelete