PDA

View Full Version : Fix for "Module w1 not found in directory" for USB Persistence Users



juxtaposition1997
2016-05-17, 06:27
I finally installed my wifi correctly after a week of debugging. :)

For some reason even after I "apt-update", "apt-upgrade", "apt dist-upgrade", and rebooted, my kernel was not updated. So, basically I downloaded the old 4.3.0 headers and installed them.

Here is some basic information about my perstistence usb drive and how I installed it:

500 GB Hard Drive (Seagate)
Installed using most recent (2016.1) kali iso from torrent
Drive is persistent
I'm running side by side with Mac OSX El Capitan
I'm using rEFind as my boot manager
I have BCM4360 driver


Tutorial:

Navigate to /etc/apt/list and copy and paste this:


deb http://http.kali.org/kali kali-rolling main contrib non-free
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
deb http://httpredir.debian.org/debian/ jessie main contrib non-free
deb http://old.kali.org/kali moto main non-free contrib

run
apt-get update
Download fromhttp://ftp.tku.edu.tw/kali/pool/main/l/linux/:
"linux-headers-4.3.0-kali1-amd64_4.3.3-5kali4_amd64.deb" and "linux-headers-4.3.0-kali1-common_4.3.3-5kali4_amd64.deb"
Download from http://http.kali.org/kali/pool/main/l/linux-tools/ (http://http.kali.org/kali/pool/main/l/linux-tools/) , "linux-kbuild-4.3_4.3.1-2kali1_amd64.deb"
Download package gdebi package (both gui and main one) through the package manager
Open up gdebi GUI
Install each package listed above using gdebi GUI, starting with the "linux-kbuild" package, followed by the "linux_headers_common", then the "linux_headers"
Ok, here's the important part: DO NOT RUN "apt-update" right after!!!
Instead, run
apt-get install broadcom-sta-dkms
Run
modprobe -r b44 b43 b43legacy ssb brcmsmac
Then finally run
modprobe wl

reboot
And boom! Your wifi should be working!


If you want to see how I installed my live persistence usb, just look for my last post!

Hopes this helps! I'm sure relieved that I finally figured it out :) .
It took me more than 80 hours to figure it out after looking all over google, stackoverfow, reddit, and kali forums :( .

Here's my rambling about my debugging problems if you are interested:
The problem with kali's usb persistence is that the kernel seems to not be able to upgrade, even after "apt-update", "apt-upgrade", "apt dist-upgrade".(when I ran "uname -r" it returned 4.3.0 instead of 4.5.0). Still, when I ran "apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms" I got drivers for 4.5.0... weird...

So, yeah I tried the debian broadcom "wl" tutorial and had no luck

virtum
2016-05-23, 14:01
Thanks a lot for this fix! I had a hard time finding something useful for exactly this situation as well, and your solution worked like a charm!

P.S.: May I suggest though that you change the title of the post to 'wl' instead of 'w1'? I think this is a reason why I didn't come across this earlier...

shimanus
2016-11-14, 23:23
Hi!

First, thank you for the knowledge, I've looking some explanation like this for a long time...
I'm learning Linux now, so I don't have much knowledge...
So, I followed your tutorial, but the files that you mentioned not exist anymore, so I downloaded this files:

linux-kbuild-4.4_4.4.6-1kali1_i386.deb
linux-headers-4.8.0-kali1-common_4.8.5-1kali1_i386.deb
linux-headers-4.8.0-kali1-all-i386_4.8.5-1kali1_i386.deb

I have a Macbook Pro with an i7 processor, and a Broadcom 4360:

After all steps I got

root@kali:/etc/apt# modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/4.6.0-kali1-686-pae


My uname -a is

root@kali:/lib/modules# uname -a
Linux kali 4.6.0-kali1-686-pae #1 SMP Debian 4.6.4-1kali1 (2016-07-21) i686 GNU/Linux


in my modules I have

root@kali:/lib/modules# ls
4.6.0-kali1-686-pae 4.8.0-kali1-686 4.8.0-kali1-686-pae 4.8.0-kali1-rt-686-pae



root@kali:/var/lib/dkms/broadcom-sta/6.30.223.271/source# cat dkms.conf
PACKAGE_NAME="broadcom-sta"
PACKAGE_VERSION="6.30.223.271"
MAKE[0]="make KVER=$kernelver"
BUILT_MODULE_NAME[0]="wl"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"
REMAKE_INITRD="YES"


So when I install the broadcom I have this


root@kali:/var/lib# apt-get install broadcom-sta-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
broadcom-sta-dkms
0 upgraded, 1 newly installed, 0 to remove and 1185 not upgraded.
Need to get 0 B/2,207 kB of archives.
After this operation, 14.5 MB of additional disk space will be used.
Selecting previously unselected package broadcom-sta-dkms.
(Reading database ... 335533 files and directories currently installed.)
Preparing to unpack .../broadcom-sta-dkms_6.30.223.271-4_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.271-4) ...
Setting up broadcom-sta-dkms (6.30.223.271-4) ...
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 4.6.0-kali1-686-pae
Module build for kernel 4.6.0-kali1-686-pae was skipped since the
kernel headers for this kernel does not seem to be installed.


So I ran this:

root@kali:/var/lib# apt-get install broadcom-*
and got this in modprobe wl:

root@kali:/var/lib# modprobe wl
modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='wl'
modprobe: ERROR: could not insert 'wl': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: ERROR: ../libkmod/libkmod-module.c:977 command_do() Error running install command for wl
modprobe: ERROR: could not insert 'wl': Operation not permitted




Could you help me?

ps: Sorry about my English, I'm learning yet too