1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make Broadcom BCM43142 wireless card work in Kali ?

Discussion in 'Hardware Compatibility List' started by biits, Feb 12, 2014.

  1. biits

    biits New Member

    Joined:
    Feb 12, 2014
    Messages:
    2
    Likes Received:
    1
    Hi all,
    I have Dell Inspiron 3421 which has "dell 1704 wireless b/g/n(shown in windows) " card.It's manufacturer is broadcom and chipset is bcm43142, I searched through the forum but couldn't find any thread/post related to this card. Besides I tried the google but almost all of them are intended for Ubuntu 13.04 and 12 . I also tried some of them which seems appropriate to me.But they didn't work.Can anyone please costs some time to help me out?

    Thanks to all.
     
    #1
  2. kali75

    kali75 Member

    Joined:
    Aug 11, 2013
    Messages:
    199
    Likes Received:
    19
  3. YucKy

    YucKy New Member

    Joined:
    Feb 13, 2014
    Messages:
    1
    Likes Received:
    0
    Same problem and my laptop is Dell Inspiron 5525. The solution above doesn't work for me... I still can't see my wl extention in iwconfig. and I'm not sure if eth0 shown in ifconfig is the wlan device. I have a RealTek and a BCM43142 in the laptop and they can be detected in Windows. Hope someone can give me a hand, I've already spent 3days trying to make it work..
     
    #3
  4. biits

    biits New Member

    Joined:
    Feb 12, 2014
    Messages:
    2
    Likes Received:
    1
    Thank you "kali75" for your time.Although the links didn't work for me because the "link to the patch file" was dead.However after this I googled and have found the following solution working for me.I'm telling it here because if someone suffered for bcm43142 like me on kali 3.12 amd 64 then it may solve their problem.
    a.First make sure you've all updates: (apt-update, headers for build essentials etc) although "apt-get dist upgrade"=> NOT necessary.To do this
    Code:
    apt-get update
    apt-get upgrade
    apt-get install build-essential linux-headers-$(uname -r)
    apt-get update
    apt-get upgrade
    apt-get dist-upgrade 
    dist-upgrade (i didn't do it,you can if you want)
    b. THEN you can follow the instructions here:
    Type in the console
    #git clone https://github.com/akrasic/broadcom-wl.git
    #cd broadcom-wl
    Then,type the following commands(of course without numbers)
    Unpacking and patching:
    1. #tar xzf hybrid-v35_64-nodebug-pcoem-6_30_223_141.tar.gz
    2. #patch -p1 < linux-recent.patch
    3. #patch -p1 < makefile.patch
    4. #patch -p1 < wlan.patch
    5. #patch -p1 < license.patch
    building and installation:
    6. #make
    after no.6 command you'll see wl.ko in the working directory
    7. #make install
    Blacklisting conflicting drivers and insertion of wl.ko
    8.#lsmod | grep "brcmsmac\|b43\|ssb\|bcma
    If any of the above drivers are loaded ,unload and blacklist all of them. wl won't work with these drivers.
    example:
    Unloading drivers:
    # rmmod b43
    # rmmod brcmsmac
    # rmmod ssb
    # rmmod bcma
    Blacklisting
    # echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
    # echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf
    # echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf
    # echo "blacklist brcmsmac" >> /etc/modprobe.d/blacklist.conf

    Loading modules automation
    Go to /etc
    open "modules" and edit it like this:



    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules that should be loaded
    # at boot time, one per line. Lines beginning with "#" are ignored.
    # Parameters can be specified after the module name.

    loop
    cfg80211
    lib80211
    wl
    exit
    quit
    cancel



    After editing follow here:
    Inserting modules:

    #modprobe lib80211
    #modprobe cfg80211
    #insmod wl.ko

    Let's see if it works:
    #lsmod|grep -i "wl"
    #modprobe wl
    c.While executing no. 2 command you may recieve error or inconsistency, ignore and skip those(see the attachments).
    Hope it works.I collected all info from these two helpful links:
    http://forums.opensuse.org/showthread.php/494525-Enable-Broadcom-BCM43142-in-OpenSuse-13-1
    http://www.broadcom.com/docs/linux_sta/README.txt
    Screenshots:
    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

    wlan1 is my card.
     
    #4
    Fishman likes this.
  5. dwish

    dwish New Member

    Joined:
    Mar 13, 2014
    Messages:
    2
    Likes Received:
    0
    Hi Blits, I have been looking around for a fix for BC43142 for days with no avail. I really hope this guide gets it sorted, however i get stuck at step 6 :

    after i issue the make command i get the error below, any ideas ?
    Code:
    KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
    make[1]: Entering directory `/lib/modules/3.12-kali1-amd64/build'
    make[1]: *** No targets specified and no makefile found.  Stop.
    make[1]: Leaving directory `/lib/modules/3.12-kali1-amd64/build'
    make: *** [all] Error 2
    
     
    #5
  6. crbass

    crbass New Member

    Joined:
    Mar 20, 2014
    Messages:
    1
    Likes Received:
    0
    Worked like a charm for me on my Vostro 3560, thnks biits!

    dwish, did the patching finished OK?

    Here's my output after make, notice it goes to "/usr/src/linux-headers-3.12-kali1-amd64" and not "/lib/modules/3.12-kali1-amd64/build"

    Code:
    root@kali:~/broadcom-wl# make
    KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
    make[1]: Entering directory `/usr/src/linux-headers-3.12-kali1-amd64'
    CFG80211 API is prefered for this kernel version
    Using CFG80211 API
      LD      /root/broadcom-wl/built-in.o
      CC [M]  /root/broadcom-wl/src/shared/linux_osl.o
      CC [M]  /root/broadcom-wl/src/wl/sys/wl_linux.o
      CC [M]  /root/broadcom-wl/src/wl/sys/wl_iw.o
      CC [M]  /root/broadcom-wl/src/wl/sys/wl_cfg80211_hybrid.o
      LD [M]  /root/broadcom-wl/wl.o
      Building modules, stage 2.
    CFG80211 API is prefered for this kernel version
    Using CFG80211 API
      MODPOST 1 modules
      CC      /root/broadcom-wl/wl.mod.o
      LD [M]  /root/broadcom-wl/wl.ko
    make[1]: Leaving directory `/usr/src/linux-headers-3.12-kali1-amd64'
     
    #6
  7. dwish

    dwish New Member

    Joined:
    Mar 13, 2014
    Messages:
    2
    Likes Received:
    0
    Yea thanks bud, seems like it was due to me having an older kernel version & then upgrading & patching everything, i reloaded with the newest distro and this guide worked like a charm, still have a couple of issues with airmon-ng though
     
    #7
  8. El GaGa

    El GaGa New Member

    Joined:
    Apr 13, 2014
    Messages:
    1
    Likes Received:
    0
    Hey all, I am new in Kali Linux, and wanting to use my built in broadcom wireless adapter on Kali Linux which i installed on a VMware workstation, I followed the instructions until i reached number 3. and i am promped to choose the flle to patch, any help ?

    root@kali:~/broadcom-wl# patch -p1 < makefile.patch
    can't find file to patch at input line 3
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |--- Makefile 2013-08-01 08:52:22.000000000 +0200
    |+++ Makefile.new 2014-01-17 02:10:17.071500195 +0100
    --------------------------
    File to patch:
     
    #8
  9. kalinlinux

    kalinlinux New Member

    Joined:
    Apr 19, 2014
    Messages:
    1
    Likes Received:
    1
    It works thanks so much for the help!

    For the error in the above post replace
    patch -p1 < makefile.patch
    with
    patch -p0 < makefile.patch
    otherwise follow the instructions.

    However each time i restart to get the wifi working i have to type:
    cd broadcom-wl
    /broadcom-wl# insmod wl.ko
     
    #9
    Last edited: Apr 19, 2014
    Fishman likes this.
  10. Fishman

    Fishman New Member

    Joined:
    May 8, 2014
    Messages:
    1
    Likes Received:
    0
    HI,
    Thanks a lot for nice piece of advice ;-)
    This method helped me to run BCM4352!!!
    Unfortunately I can not push it to monitor mode:
    Code:
    root@kali:~# airmon-ng start wlan0
    Found 3 processes that could cause trouble.
    If airodump-ng, aireplay-ng or airtun-ng stops working after
    a short period of time, you may want to kill (some of) them!
    -e
    PID    Name
    2816    NetworkManager
    2955    dhclient
    3840    wpa_supplicant
    
    Interface    Chipset        Driver
    
    wlan0        Broadcom    wl - [phy0]mon0: ERROR while getting interface flags: No such device
    
                    (monitor mode enabled on mon0)
    
    root@kali:~#
    Any idea how to fix it?
    Thanks in advance!
     
    #10
  11. ktk

    ktk New Member

    Joined:
    May 26, 2014
    Messages:
    1
    Likes Received:
    0
    My chipset and drivers and linux version:
    Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)
    Subsystem: Dell Wireless 1704 802.11n + BT 4.0
    Kernel driver in use: wl
    uname -a : Linux kali 3.12-kali1-amd64 #1 SMP Debian 3.12.6-2kali1 (2014-01-06) x86_64 GNU/Linux
    Kudos : Thank you "biits", your method at least gave me a working WiF.

    Problems: But i hit a snag right after, much more like "fishman". my excitation was short lived when i found that i cannot put it to monitor mode. but hey, did you know there exist an official way to put broadcom chips to monitor mode?
    Solution:
    "Fishman" why don't you try out the command below at terminal, it is official way for broadcom chips to enable monitor mode:
    Code:
    echo 1 > /proc/brcm_monitor0 
    but it'd likely generate this error as it did to me:
    "bash: echo: write error: Input/output error"
    please bear with me to solve this...
    After exhaustive research on google, i found this one method copy and pasted again and again over every other forum but it's kind of confusing. I did what i could to my understanding and it worked.
    1. Download official STA (wl) drivers from broadcom http://www.broadcom.com/support/802.11/linux_sta.php
    (i could not make them work before, the "make" command would generate errors , that's why i used "biits" method above in first. but there is a patch that makes it work)
    2. download this patch http://ix.io/9DV
    3. inside the directory where you unzipped the drivers from link at step 1, there is directory src , change directory to src/wl/sys where "wl_linux.c_ file exists.
    4. create empty file in this directory
    Code:
    nano wl_linux.patch
    5.copy entire code downloaded in step 2 to this file, save it and apply patch using code:
    Code:
     patch < wl_linux.patch
    6. now go back to parent directory where you unzipped the drivers. run command "make" this might still generate errors but different from before. if you look inside the directory a file named "wl.ko" will be generated, if you see it, then your drivers are ready.
    7. remove old drivers with command:
    Code:
    rmmod wl
    and put in this command to use your shiny new drivers
    Code:
    insmod ./wl.ko
    Now apply command
    Code:
    echo 1 > /proc/brcm_monitor0 
    and check the value for confirmation using command:
    Code:
    cat  /proc/brcm_monitor0 
    this will create a new monitor interface "prism0"

    check using
    Code:
    ariodump-ng prism0
    at this point it should be working, but dont get ahead of you, there are still host of problems waiting for you to find them.
    my drivers failed the injection test, as described on aircrack-ng site [find the site yourself] so forget using aricrack-ng or reaver too.
    I thought perhaps it would allow me at least to create a fake router, but all in vain after airbase-ng also oppossed me
    Code:
    airbase-ng prism0
    it starts a fake router but, i get this error:
    "Error: Got channel -1, expected a value > 0."

    and there is no way around it, the error is produced by function "wi_get_channel(_wi_in)" in airbase-ng.c [again find the file yourself if you wanto peek into it], to my understanding its again a problem offered by drivers. I suppose, "-1" is value returned by any function when it's not successful. and for some reasons my drivers are not allowing this function to get the channel frequency.


    Now, folks, who is going to help me? i doubt there is any work around for this. but still fingers crossed.
     
    #11
    Last edited: May 27, 2014
  12. Snowchamp

    Snowchamp New Member

    Joined:
    Jun 16, 2014
    Messages:
    1
    Likes Received:
    0
    So I just did what ktk described with my Lenovo Thinkpad Edge E545(BCM43142) and..... ta da! It worked. :)
    but now i've also got the problem he described as well... I can access Monitor mode but when i try aireplay-ng --test
    it loses all the packages.

    Hope someone can help me with this
     
    #12
  13. shabba

    shabba New Member

    Joined:
    Jun 26, 2014
    Messages:
    2
    Likes Received:
    0
    hey i have the same problem dwish had i cant figure out how to fix that and im new to kali linux and have just been having trouble figuring this out any help please? and im talking about step #6 is where i get stuck in this is the exact respond i get

    Code:
    KBUILD_NOPEDANTIC=1 make -C /lib/modules/'uname -r' /build M='pwd'
    make: *** /lib/modules/3.14-kalil=amd64/build: No such file or directory. Stop.
    make: *** [all] Error 2
     
    #13
    Last edited: Jun 27, 2014
  14. Master

    Master New Member

    Joined:
    Jun 29, 2014
    Messages:
    1
    Likes Received:
    0
    hi every one
    i have same problem as shabba in kali kernel 3.14 amd64
    how we can fix this ?
     
    #14
  15. shabba

    shabba New Member

    Joined:
    Jun 26, 2014
    Messages:
    2
    Likes Received:
    0
    Hey I fixed it sorta I just decided to dual boot kali with my windows 8.1 and it worked because it get programmed into the laptop so it can read everything as soon as I finished I typed the ifconfig command the very second I finished without adding anything without updating without anything and wlan0 was there just make sure if you do dual boot to be sure to back everything up on an external drive or the a cloud or something and if you do here are the issues I had that kept pissing me off make sure you turn secure boot off and and turn UEFI off change that to CSM (legacy) and make sure the flash drive you use is FAT32 because linux can't work with NTSF and use the Yumi multiboot creator program it writes and does everything for you on flash drive all the files it needs and everything or burn it to a blank DVD it's up to you I used the flash drive and when you install it the first time when you need to partition the hard drive do live install and the second time do graphical install (GUI) or text-mode install and follow the steps from the kali linux page on how to dual boot with windows google it any more questions just ask me and btw check out unixandlinux.com or something like that it's like a q&a for for this stuff for any issues you run into hope this helps out
     
    #15
    Last edited: Jun 29, 2014
  16. lostpassword

    lostpassword New Member

    Joined:
    Sep 14, 2014
    Messages:
    1
    Likes Received:
    0
    Hello!
    I've recently bought Lenovo G500 notebook with Broadcom BCM43142 wireless adapter. I've spent a few days looking for the driver - no luck.
    I ended up with installing the last version of broadcom-sta-dkms (broadcom-sta-dkms_6.30.223.248-1_all.deb):
    1. I've added all Kali repositories to /etc/apt/sources.list:
    deb http://http.kali.org/ /kali main contrib non-free
    deb http://http.kali.org/ /wheezy main contrib non-free
    deb http://http.kali.org/kali kali-dev main contrib non-free
    deb http://http.kali.org/kali kali-dev main/debian-installer
    deb-src http://http.kali.org/kali kali-dev main contrib non-free
    deb http://http.kali.org/kali kali main contrib non-free
    deb http://http.kali.org/kali kali main/debian-installer
    deb-src http://http.kali.org/kali kali main contrib non-free
    deb http://security.kali.org/kali-security kali/updates main contrib non-free
    deb-src http://security.kali.org/kali-security kali/updates main contrib non-free​
    2. I've installed "broadcom-sta-dkms" package
    Now it has version 6.30.223.248-1, not 5.100.82.112-8, which is installed from default repository.
    After the reboot I've noticed my precious wifi0 adapter in the list. Hooray! :D
    P.S. I've tried many different things, so I'm not sure whether this approach will do on the clean system. But you can try if you want - it would be interesting to know the result. ;)
     
    #16
  17. cgerlee

    cgerlee New Member

    Joined:
    Oct 28, 2014
    Messages:
    1
    Likes Received:
    0
    Thank you kali75 and biits, after relative operations, it's work on Kali 1.0.9 now with ASUS China S200E(Euro. X202E) bcm43142, thank you so much.
     
    #17
  18. blbokeb

    blbokeb Member

    Joined:
    Mar 20, 2018
    Messages:
    33
    Likes Received:
    0

Share This Page