PDA

View Full Version : Problem with wireless when booting Kali from a live persistence USB on a macbook air



Bazalia
2017-02-20, 15:41
I have installed kali 2016.2 on a USB and followed the official guide (http://docs.kali.org/downloading/kali-linux-live-usb-persistence) to make it persistent.

I installed rEFInd on my macbook air to make it easier to boot from my kali USB stick.

The problem is that the wireless did not work. (Network adapter is Broadcom BCM4360)

I googled the matter and tried this guide this (https://gist.github.com/speeddragon/2d4ea420a8a53407cb8218fa28c2a74b) but I had two problems:

Running 'modprobe wl' returns 'Module wl not found in directory /lib/modules/4.6.0-kali11-amd64'.
Running 'dpkg -i linux-headers-4.6.0-kali1-amd64_4.6.4-1kali1_amd64.deb' requires linux-compiler-gcc-5 which is not available from simple apt install.


However, I noticed that uname -r gives me 4.6.0 but the only headers I can install are 4.9.0. Not sure if this is part of the problem but it is worth noting.

_defalt
2017-02-20, 20:06
Can you show the output of rfkill list all?

Bazalia
2017-02-21, 05:16
'rfkill list all' outputs


0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no

_defalt
2017-02-21, 18:21
It seems there are no drivers present in /lib/firmware. Which wifi adapter you are using? When you were installing kali-linux did installer ask you to load missing firmwares?

Bazalia
2017-02-22, 06:03
My macbook has Broadcom BCM4360 network adapter (not sure if this is what you were looking for).

No I don't remember the installer asking me to load missing firmwares, could it be because I setup the live USB on another machine that did not have wireless?

_defalt
2017-02-22, 13:04
Get the required firmwares for your wifi adapter and copy them in /lib/firmware.

Bazalia
2017-02-22, 16:21
I googled it and found that my wifi adapter's drivers should be installed by 'sudo apt install broadcom-sta-dkms'

But when I installed broadcom-sta-dkms I got this as part of the output:


Preparing to unpack .../0-dkms_2.3-2_all.deb ...
Unpacking dkms (2.3-2) ...
Selecting previously unselected package broadcom-sta-dkms.
Preparing to unpack .../1-broadcom-sta-dkms_6.30.223.271-5_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.271-5) ...
Selecting previously unselected package linux-compiler-gcc-6-x86.
Preparing to unpack .../2-linux-compiler-gcc-6-x86_4.9.10-1kali1_amd64.deb ...
Unpacking linux-compiler-gcc-6-x86 (4.9.10-1kali1) ...
Selecting previously unselected package linux-headers-4.9.0-kali2-common.
Preparing to unpack .../3-linux-headers-4.9.0-kali2-common_4.9.10-1kali1_all.deb ...
Unpacking linux-headers-4.9.0-kali2-common (4.9.10-1kali1) ...
Selecting previously unselected package linux-kbuild-4.9.
Preparing to unpack .../4-linux-kbuild-4.9_4.9.10-1kali1_amd64.deb ...
Unpacking linux-kbuild-4.9 (4.9.10-1kali1) ...
Selecting previously unselected package linux-headers-4.9.0-kali2-amd64.
Preparing to unpack .../5-linux-headers-4.9.0-kali2-amd64_4.9.10-1kali1_amd64.deb ...
Unpacking linux-headers-4.9.0-kali2-amd64 (4.9.10-1kali1) ...
Selecting previously unselected package linux-headers-amd64.
Preparing to unpack .../6-linux-headers-amd64_4.9+79+kali1_amd64.deb ...
Unpacking linux-headers-amd64 (4.9+79+kali1) ...
Setting up linux-compiler-gcc-6-x86 (4.9.10-1kali1) ...
Setting up dkms (2.3-2) ...
Setting up linux-kbuild-4.9 (4.9.10-1kali1) ...
Setting up linux-headers-4.9.0-kali2-common (4.9.10-1kali1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up broadcom-sta-dkms (6.30.223.271-5) ...
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 4.6.0-kali1-amd64 4.9.0-kali2-amd64
Module build for kernel 4.6.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Building initial module for 4.9.0-kali2-amd64
Done.

wl:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-kali2-amd64/updates/dkms/

depmod.....

Warning: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.

DKMS: install completed.
Setting up linux-headers-4.9.0-kali2-amd64 (4.9.10-1kali1) ...
Setting up linux-headers-amd64 (4.9+79+kali1) ...


And running modprobe wl outputs:


modprobe: FATAL: Module wl not found in directory /lib/modules/4.6.0-kali1-amd64


So I think the driver is being installed for 4.9.0-kali but it should be installed for 4.6.0-kali. It doesn't install it for 4.6.0-kali because it can't find those headers in the kali repositories.

bwana
2017-03-03, 07:07
I am having the SAME issue. ifconfig does not even show the interface but lspci does show:


03:00.0 Network controller: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter (rev 03)

among the firmwares in /lib/firmware/brcm I do see


brcmfmac43602-pcie.bin


sudo apt install broadcom-sta-dkms

gives



Reading package lists... Done
Building dependency tree
Reading state information... Done
broadcom-sta-dkms is already the newest version (6.30.223.271-5).
0 upgraded, 0 newly installed, 0 to remove and 1791 not upgraded.

How do I get Kali linux 2016.2 to use the wireless card in this macbook ?