PDA

View Full Version : BCM43142 very frustrating



CodeMonkey
2014-12-10, 16:20
Hi all, I tried to get wireless setup on Kali a while ago and gave up. I'm revisiting the issue and I'm still getting no dice. I will try to provide as much info as possible. I'm fairly new to Linux, I've used Ubuntu for a decent amount of time, but I am by no means very well informed yet. Any help would be HUGELY appreciated.

I'm on a Lenovo Z510 running a Broadcom 43142 card.

I'm currently running Kali live so I can just restart if I royally screw up anything while attempting to make the wireless run

"uname -r" gives "3.14-kali1-686-pae" (32-bit)

Each time I boot live, I immediately run "sudo apt-get update && upgrade", so please don't assume I have downloaded any other packages and please specify if I do need others. That is the only thing I know for certain I need to do on a fresh start. Everything else I have downloaded has been extra in trying to make a certain solution work.

"lspci | grep BCM" recognizes the wireless card as the network controller

"iwconfig" gives me no wireless extensions for lo or eth0

I have unblocked wifi with "rfkill unblock wifi"

At the top right where internet connections appear, there is no option for wireless whatsoever

I have tried these links to get help (issues encountered when attempting each will be listed below each link):

http://thedubiousdisc.wordpress.com/2013/10/13/making-bcm43142-wireless-driver-work-on-debian/

- linux-headers-generic returns no package to install
- "sudo dpkg -i wireless-bcm43142-dkms_6.20.55.19-1_amd64.deb" returns an error and the package is not processed at all

http://www.chokepoint.net/2014/04/installing-broadcom-bcm43142-drivers-on.html

- running "sudo ./bcm43142_drivers.sh" I get a FATAL error : module wl not found

http://superuser.com/questions/775365/kali-linux-not-detecting-wireless-network-in-dual-boot

- another issue with wl. I don't really understand why wl isn't available or what it's main purpose is.

I have spent the past couple days trying to get this to work. I have exhausted the extent of my Linux knowledge and google resources. This is my last resort to make this frustrating card work. I will be monitoring the post and gladly run any tests necessary to make this work.

I'm really excited to learn about all Kali has to offer, but this issue is becoming very offputting. But, as usual, PICNIC. Thanks, everyone.

darkshadowman
2014-12-11, 13:07
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


9. modprobe lib80211
10. modprobe cfg80211
11. insmod wl.ko
12. depmod
13. modprobe wl
and now should be operational.
if in step 3 you get some error then use
patch -p0 < makefile.patch

miebozor
2015-06-01, 08:00
Hello Kali community !

I use french version of Kali on a x64 DELL INSPIRON 5520 with 256GB SSD disk.

step 3 worked properly with 'patch -p0 < makefile.patch'
'make' form step 6 returns:

KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: entrant dans le répertoire « /usr/src/linux-headers-3.18.0-kali3-amd64 »
CFG80211 API is prefered for this kernel version
Using CFG80211 API
CC [M] /root/broadcom-wl/src/wl/sys/wl_linux.o
/root/broadcom-wl/src/wl/sys/wl_linux.c: In function ‘wl_alloc_linux_if’:
/root/broadcom-wl/src/wl/sys/wl_linux.c:1353:64: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
/root/broadcom-wl/src/wl/sys/wl_linux.c:1353:8: error: ‘alloc_netdev’ undeclared (first use in this function)
/root/broadcom-wl/src/wl/sys/wl_linux.c:1353:8: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [/root/broadcom-wl/src/wl/sys/wl_linux.o] Erreur 1
make[3]: *** [_module_/root/broadcom-wl] Erreur 2
make[2]: *** [sub-make] Erreur 2
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-3.18.0-kali3-amd64 »
make: *** [all] Erreur 2

'lsmod' returns:

Module Size Used by
rfcomm 57954 0
ecb 12737 0
bnep 17428 0
btusb 30039 0
bluetooth 391914 5 bnep,btusb,rfcomm
fuse 87579 3
nfnetlink_log 17241 0
nfnetlink 13040 1 nfnetlink_log
mmc_block 34991 0
binfmt_misc 16942 1
joydev 17108 0
loop 26605 0
dm_crypt 22731 0
rtsx_usb_sdmmc 25280 0
uvcvideo 79102 0
mmc_core 106417 2 mmc_block,rtsx_usb_sdmmc
rtsx_usb_ms 16899 0
videobuf2_vmalloc 12816 1 uvcvideo
videobuf2_memops 12519 1 videobuf2_vmalloc
memstick 13696 1 rtsx_usb_ms
videobuf2_core 43776 1 uvcvideo
v4l2_common 12995 1 videobuf2_core
videodev 135070 3 uvcvideo,v4l2_common,videobuf2_core
media 18305 2 uvcvideo,videodev
rtsx_usb 17541 2 rtsx_usb_sdmmc,rtsx_usb_ms
snd_hda_codec_hdmi 49264 1
snd_hda_codec_conexant 21937 1
snd_hda_codec_generic 63082 1 snd_hda_codec_conexant
iTCO_wdt 12831 0
iTCO_vendor_support 12649 1 iTCO_wdt
dell_wmi 12477 0
sparse_keymap 12760 1 dell_wmi
x86_pkg_temp_thermal 12951 0
intel_powerclamp 17159 0
intel_rapl 17344 0
coretemp 12820 0
dell_laptop 13036 0
rfkill 18902 3 bluetooth,dell_laptop
dcdbas 13256 1 dell_laptop
lpc_ich 20768 0
kvm 414355 0
mfd_core 12601 2 lpc_ich,rtsx_usb
evdev 17489 19
psmouse 103371 0
serio_raw 12849 0
ac 12715 0
i2c_i801 16964 0
battery 13356 0
snd_hda_intel 26387 3
snd_hda_controller 26846 1 snd_hda_intel
snd_hda_codec 108294 5 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_ codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 17244 1 snd_hda_codec
snd_pcm 88786 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd _hda_controller
fglrx 8679112 125
snd_timer 26606 1 snd_pcm
snd 69333 14 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_cod ec_conexant,snd_pcm,snd_hda_codec_generic,snd_hda_ codec,snd_hda_intel
soundcore 13026 2 snd,snd_hda_codec
mei_me 17987 0
wmi 17339 1 dell_wmi
mei 75235 1 mei_me
i915 943949 11
video 18144 1 i915
drm_kms_helper 81088 1 i915
drm 259436 13 i915,drm_kms_helper
i2c_algo_bit 12751 1 i915
i2c_core 50145 7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,v4l2 _common,videodev
button 12988 2 i915,fglrx
processor 28221 0
thermal_sys 32286 4 video,intel_powerclamp,processor,x86_pkg_temp_ther mal
ext4 490614 1
crc16 12343 2 ext4,bluetooth
mbcache 17171 1 ext4
jbd2 82464 1 ext4
dm_mod 93340 1 dm_crypt
sg 29919 0
sd_mod 43575 4
crct10dif_pclmul 13348 0
crc32_pclmul 12915 0
crc32c_intel 21809 0
ghash_clmulni_intel 12978 0
aesni_intel 167997 0
aes_x86_64 16719 1 aesni_intel
lrw 12757 1 aesni_intel
gf128mul 12970 1 lrw
glue_helper 12690 1 aesni_intel
ablk_helper 12572 1 aesni_intel
cryptd 18656 3 ghash_clmulni_intel,aesni_intel,ablk_helper
ahci 29152 3
libahci 27202 1 ahci
libata 177633 2 ahci,libahci
scsi_mod 199895 3 sg,libata,sd_mod
ehci_pci 12512 0
ehci_hcd 69703 1 ehci_pci
xhci_pci 12675 0
xhci_hcd 152537 1 xhci_pci
usbcore 199549 7 btusb,uvcvideo,rtsx_usb,ehci_hcd,ehci_pci,xhci_hcd ,xhci_pci
usb_common 12561 1 usbcore
r8169 77384 0
mii 12675 1 r8169

and 'lspci | grep BCM43142' returns:
08:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)

Thank you for your response. Any suggestion, any idea would be truly considered as pure internet gold.
Kind Regards,

Miebozor

OCD&DEV=Me.Neurotic
2015-06-16, 12:48
Hi, The issue you have, has a solution and it can be found here: http://tecknologikk.blogspot.nl/2014/06/bcm43227-wl-module-on-kali-linux-107.html

I had the same finding and after some digging the solution presented itself via google :) ( it is a kernel issue and was patched by various developers of distro's). the below deb file that you can download does the trick..
Have a read below please as there is more info on the the how and why of the installation of the debian package.

so to make this thread more nested: your issue is also mentioned here (on this forum) https://forums.kali.org/showthread.php?25082-Broadcom-BCM43142
and from there you'll find the above answer. so in short: download the deb file ( it will work as Kali is a debian based distro) and then (quote from site)

(https://launchpad.net/ubuntu/+archive/primary/+files/bcmwl-kernel-source_6.30.223.248%2Bbdcom-0ubuntu2_amd64.deb)

If you download a deb package, all you have to do is run sudo dpkg -i name_of_package_you_got_from_links_above.deb

Y4kuzi
2015-06-27, 13:29
That didn't really work for me. I can see all available connections but I can't connect to any of them, it just gets "stuck" on connecting.
No matter which network I choose, it just refuses to connect. And when it does connect (very rarely), it is very unstable and drops very often.