Error fatal de Modprobe wl: no se encontró el módulo en /lib/modules/kali-4.6.0-amd64../ no se pudo trabajar de forma inalámbrica en BRCM4360 14e4: 43a0

2

Tengo un MacBook Air 2015 11 "con Kali GNU / Rolling 64-bit Gnome versión 3.20.2 y kernel de Linux: Linux 4.6.0 -kali1-amd64, arranque dual junto con macOS y ventanas, modo en vivo con persistencia y he estado intentando instalar los controladores inalámbricos para esta Mac con un chip BRCM4360 (14e4: 43a0).

Lo que he hecho:

Instrucciones seguidas en: (CADA UNA DE ELLAS)

Cómo instalar Broadcom BCM4360 en Debian en MacBook Pro

Debian / wl

y muchas otras gafas. Pero tampoco se pudo resolver con cualquiera.

Es fácil a través de:

apt-get update    
apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms

y

modprobe -r b44 b43 b43legacy ssb brcmsmac

pero siempre que lo intente:

modprobe wl

devoluciones de terminal:

root@kali:~# modprobe wl
modprobe: FATAL: Module wl not found in directory /lib/modules/4.6.0-kali1-amd64

También soy un novato en Linux, kernels, redes y módulos / controladores y demás. La única forma de ejecutar Kali en esta máquina fue mediante el arranque en vivo con persistencia como se menciona en los foros de PENTESTMAC. En realidad, podría hacer que mi controlador inalámbrico funcionara aproximadamente un año antes simplemente siguiendo todos esos pasos en el foro sin ningún problema (a finales de 2016). Pero ahora no funciona en la sección modprobe wl.

Por lo tanto, cualquier ayuda desde cero sería muy apreciada. Han pasado semanas. Vigorosamente SMH.

edit:

Incluso probé este script automatizado en enlace

Pero sigue siendo lo mismo que dio esta salida:

./broadcom-wl-dkms.sh
--2017-07-19 14:11:47--  http://www.broadcm.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
Resolving www.broadcm.com (www.broadcm.com)... 185.26.230.129
Connecting to www.broadcm.com (www.broadcm.com)|185.26.230.129|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz [following]
--2017-07-19 14:11:49--  http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
Resolving www.broadcom.com (www.broadcom.com)... 68.142.68.26, 68.142.70.26
Connecting to www.broadcom.com (www.broadcom.com)|68.142.68.26|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://docs.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz [following]
--2017-07-19 14:11:49--  https://docs.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
Resolving docs.broadcom.com (docs.broadcom.com)... 68.142.70.26, 68.142.68.26
Connecting to docs.broadcom.com (docs.broadcom.com)|68.142.70.26|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 102 [text/html]
Saving to: ‘broadcom.tar.gz’

broadcom.tar.gz     100%[===================>]     102  --.-KB/s    in 0s      

2017-07-19 14:11:51 (77.3 MB/s) - ‘broadcom.tar.gz’ saved [102/102]

./broadcom-wl-dkms.sh: line 15: https://aur.archlinux.org/cgit/aur.git/snapshot/broadcom-wl-dkms.tar.gz: No such file or directory

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
tar (child): broadcom-wl-dkms.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
sed: can't read src/wl/sys/wl_linux.c: No such file or directory
./broadcom-wl-dkms.sh: line 23: 001-null-pointer-fix.patch: No such file or directory
sed: can't read dkms.conf.in: No such file or directory
cp: cannot stat 'src': No such file or directory
cp: cannot stat 'lib': No such file or directory
cp: cannot stat 'Makefile': No such file or directory
chmod: cannot access '/usr/src/broadcom-wl-6.30.223.271/lib/LICENSE.txt': No such file or directory
ln: failed to create symbolic link '/usr/share/licenses/broadcom-wl-dkms/LICENSE': File exists
install: cannot stat 'broadcom-wl-dkms.conf': No such file or directory
dkms.conf: Error! No 'DEST_MODULE_LOCATION' directive specified.
dkms.conf: Error! No 'PACKAGE_NAME' directive specified.
dkms.conf: Error! No 'PACKAGE_VERSION' directive specified.
Error! Bad conf file.
File: /usr/src/broadcom-wl-6.30.223.271/dkms.conf
does not represent a valid dkms.conf file.
rmmod: ERROR: Module b43 is not currently loaded
rmmod: ERROR: Module b43legacy is not currently loaded
rmmod: ERROR: Module ssb is not currently loaded
rmmod: ERROR: Module bcm43xx is not currently loaded
rmmod: ERROR: Module brcm80211 is not currently loaded
rmmod: ERROR: Module brcmfmac is not currently loaded
rmmod: ERROR: Module brcmsmac is not currently loaded
rmmod: ERROR: Module bcma is not currently loaded
rmmod: ERROR: Module wl is not currently loaded
modprobe: FATAL: Module wl not found in directory /lib/modules/4.6.0-kali1-amd64

editar: Sin embargo, pude rehacer el script y obtener los paquetes descargados y extraídos de esta forma:

#!/bin/bash
# Installs the broadcom-wl kernel module with DKMS
# Tested under Fedora 23, will likely work with other versions/distros
# Author: Steven Mirabito <[email protected]>

# Create a work directory
mkdir -p /tmp/broadcom
cd /tmp/broadcom

# Download the module from Broadcom (http://www.broadcom.com/support/?gid=1)
# Remove '_64' from the URL for a 32-bit system
cp ~/Downloads/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz /tmp/broadcom/broadcom.tar.gz

# Download some support files from the Arch package
cp -r ~/Downloads/usr /tmp/broadcom/broadcom-wl-dkms

# Untar the archives
tar -zxvf broadcom.tar.gz

# Patch the module
sed -i -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" src/wl/sys/wl_linux.c
patch -p1 < 001-null-pointer-fix.patch

# Add the module version number to the dkms config file
sed -e "s/@PACKAGE_VERSION@/6.30.223.271/" dkms.conf.in > dkms.conf

# Create the destination directory
mkdir -p /usr/src/broadcom-wl-6.30.223.271

# Move files into place
cp -RL src lib Makefile dkms.conf /usr/src/broadcom-wl-6.30.223.271

# Fix permissions and link the license in the appropriate place
chmod a-x "/usr/src/broadcom-wl-6.30.223.271/lib/LICENSE.txt"
mkdir -p "/usr/share/licenses/broadcom-wl-dkms"
ln -rs "/usr/src/broadcom-wl-6.30.223.271/lib/LICENSE.txt" "/usr/share/licenses/broadcom-wl-dkms/LICENSE"

# Install the modprobe config to blacklist the other Broadcom modules
install -D -m 644 broadcom-wl-dkms.conf "/etc/modprobe.d/broadcom-wl-dkms.conf"

# Install and build the module
dkms install -m broadcom-wl -v 6.30.223.271

# Activate the module
rmmod b43 b43legacy ssb bcm43xx brcm80211 brcmfmac brcmsmac bcma wl
modprobe wl

# Clean up
cd ~
rm -rf /tmp/broadcom

Pero aún así: tan pronto como llegue al parche, devuelve este error:

root@kali:~/Desktop# sudo ./broadcom-wl-dkms.sh
Makefile
lib/
lib/wlc_hybrid.o_shipped
lib/LICENSE.txt
src/
src/include/
src/include/typedefs.h
src/include/linuxver.h
src/include/bcmutils.h
src/include/siutils.h
src/include/packed_section_start.h
src/include/epivers.h
src/include/linux_osl.h
src/include/bcmendian.h
src/include/packed_section_end.h
src/include/pcicfg.h
src/include/bcmdefs.h
src/include/bcmcrypto/
src/include/bcmcrypto/tkhash.h
src/include/wlioctl.h
src/include/osl.h
src/shared/
src/shared/bcmwifi/
src/shared/bcmwifi/include/
src/shared/bcmwifi/include/bcmwifi_channels.h
src/shared/bcmwifi/include/bcmwifi_rates.h
src/shared/linux_osl.c
src/wl/
src/wl/sys/
src/wl/sys/wl_dbg.h
src/wl/sys/wlc_key.h
src/wl/sys/wl_linux.h
src/wl/sys/wl_linux.c
src/wl/sys/wlc_wowl.h
src/wl/sys/wl_iw.c
src/wl/sys/wlc_pub.h
src/wl/sys/wl_iw.h
src/wl/sys/wl_export.h
src/wl/sys/wl_cfg80211_hybrid.h
src/wl/sys/wlc_ethereal.h
src/wl/sys/wl_cfg80211_hybrid.c
src/wl/sys/wlc_utils.h
src/wl/sys/wlc_types.h
src/common/
src/common/include/
src/common/include/proto/
src/common/include/proto/bcmeth.h
src/common/include/proto/ieee80211_radiotap.h
src/common/include/proto/ethernet.h
src/common/include/proto/802.1d.h
src/common/include/proto/bcmip.h
src/common/include/proto/bcmevent.h
src/common/include/proto/802.11.h
src/common/include/proto/wpa.h
./broadcom-wl-dkms.sh: line 22: 001-null-pointer-fix.patch: No such file or directory
sed: can't read dkms.conf.in: No such file or directory
ln: failed to create symbolic link '/usr/share/licenses/broadcom-wl-dkms/LICENSE': File exists
install: cannot stat 'broadcom-wl-dkms.conf': No such file or directory
./broadcom-wl-dkms.sh: line 42: dkms: command not found
rmmod: ERROR: Module b43 is not currently loaded
rmmod: ERROR: Module b43legacy is not currently loaded
rmmod: ERROR: Module ssb is not currently loaded
rmmod: ERROR: Module bcm43xx is not currently loaded
rmmod: ERROR: Module brcm80211 is not currently loaded
rmmod: ERROR: Module brcmfmac is not currently loaded
rmmod: ERROR: Module brcmsmac is not currently loaded
rmmod: ERROR: Module bcma is not currently loaded
rmmod: ERROR: Module wl is not currently loaded
modprobe: FATAL: Module wl not found in directory /lib/modules/4.6.0-kali1-amd64

Lo siento, también soy noob.¿Quizás debo comunicarme con el autor y preguntarle si actualizaría esto a partir de ahora?

editar 3

El script de klanomath se compiló con éxito, pero al intentar recuperar los módulos de conflicto y habilitar wl al final, el terminal devuelve:

root@kali:~# ./install-broadcom.sh
Makefile
lib/
lib/wlc_hybrid.o_shipped
lib/LICENSE.txt
src/
src/include/
src/include/typedefs.h
src/include/linuxver.h
src/include/bcmutils.h
src/include/siutils.h
src/include/packed_section_start.h
src/include/epivers.h
src/include/linux_osl.h
src/include/bcmendian.h
src/include/packed_section_end.h
src/include/pcicfg.h
src/include/bcmdefs.h
src/include/bcmcrypto/
src/include/bcmcrypto/tkhash.h
src/include/wlioctl.h
src/include/osl.h
src/shared/
src/shared/bcmwifi/
src/shared/bcmwifi/include/
src/shared/bcmwifi/include/bcmwifi_channels.h
src/shared/bcmwifi/include/bcmwifi_rates.h
src/shared/linux_osl.c
src/wl/
src/wl/sys/
src/wl/sys/wl_dbg.h
src/wl/sys/wlc_key.h
src/wl/sys/wl_linux.h
src/wl/sys/wl_linux.c
src/wl/sys/wlc_wowl.h
src/wl/sys/wl_iw.c
src/wl/sys/wlc_pub.h
src/wl/sys/wl_iw.h
src/wl/sys/wl_export.h
src/wl/sys/wl_cfg80211_hybrid.h
src/wl/sys/wlc_ethereal.h
src/wl/sys/wl_cfg80211_hybrid.c
src/wl/sys/wlc_utils.h
src/wl/sys/wlc_types.h
src/common/
src/common/include/
src/common/include/proto/
src/common/include/proto/bcmeth.h
src/common/include/proto/ieee80211_radiotap.h
src/common/include/proto/ethernet.h
src/common/include/proto/802.1d.h
src/common/include/proto/bcmip.h
src/common/include/proto/bcmevent.h
src/common/include/proto/802.11.h
src/common/include/proto/wpa.h
broadcom-wl-dkms/
broadcom-wl-dkms/.SRCINFO
broadcom-wl-dkms/.gitignore
broadcom-wl-dkms/001-null-pointer-fix.patch
broadcom-wl-dkms/002-rdtscl.patch
broadcom-wl-dkms/003-linux47.patch
broadcom-wl-dkms/004-linux48.patch
broadcom-wl-dkms/005-debian-fix-kernel-warnings.patch
broadcom-wl-dkms/PKGBUILD
broadcom-wl-dkms/broadcom-wl-dkms.conf
broadcom-wl-dkms/broadcom-wl-dkms.install
broadcom-wl-dkms/dkms.conf.in
ln: failed to create symbolic link '/usr/share/licenses/broadcom-wl-dkms/LICENSE': File exists

Creating symlink /var/lib/dkms/broadcom-wl/6.30.223.271/source ->
                 /usr/src/broadcom-wl-6.30.223.271

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...
applying patch 001-null-pointer-fix.patch...patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 2165 (offset 8 lines).

applying patch 002-rdtscl.patch...patching file src/shared/linux_osl.c

applying patch 003-linux47.patch...patching file src/wl/sys/wl_cfg80211_hybrid.c

applying patch 004-linux48.patch...patching file src/wl/sys/wl_cfg80211_hybrid.c
Hunk #1 succeeded at 2386 (offset -2 lines).
Hunk #2 succeeded at 2496 (offset -2 lines).
Hunk #3 succeeded at 2928 (offset 4 lines).

applying patch 005-debian-fix-kernel-warnings.patch...patching file src/wl/sys/wl_cfg80211_hybrid.c


Building module:
cleaning build area...
make -j4 KERNELRELEASE=4.6.0-kali1-amd64 -C /lib/modules/4.6.0-kali1-amd64/build M=/var/lib/dkms/broadcom-wl/6.30.223.271/build...
cleaning build area...

DKMS: build completed.

wl.ko:
Running module version sanity check.
 - Original module
   - Found /lib/modules/4.6.0-kali1-amd64/kernel/drivers/net/wireless/wl.ko
   - Storing in /var/lib/dkms/broadcom-wl/original_module/4.6.0-kali1-amd64/x86_64/
   - Archiving for uninstallation purposes
 - Installation
   - Installing to /lib/modules/4.6.0-kali1-amd64/kernel/drivers/net/wireless/

depmod....

DKMS: install completed.
rmmod: ERROR: Module b43 is not currently loaded
rmmod: ERROR: Module b43legacy is not currently loaded
rmmod: ERROR: Module ssb is not currently loaded
rmmod: ERROR: Module bcm43xx is not currently loaded
rmmod: ERROR: Module brcm80211 is not currently loaded
rmmod: ERROR: Module brcmfmac is not currently loaded
rmmod: ERROR: Module brcmsmac is not currently loaded
rmmod: ERROR: Module bcma is not currently loaded
rmmod: ERROR: Module wl is not currently loaded
modprobe: ERROR: could not insert 'wl': Exec format error
root@kali:~# 

también la salida dmesg devuelve:

12.767741] wl: disagrees about version of symbol module_layout

en algún lugar en el medio. ¿Es este el elemento que crea el problema?

y el registro de modprobe --force wl bajo dmesg:

[   18.862399] usbcore: registered new interface driver rndis_host
[   18.878990] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[   19.533537] fuse init (API version 7.24)
[  685.317127] wl: disagrees about version of symbol module_layout
[  690.440257] wl: disagrees about version of symbol module_layout
[  965.367764] wl: disagrees about version of symbol module_layout
[ 1244.818590] wl: module_layout: kernel tainted.
[ 1244.818593] Disabling lock debugging due to kernel taint
[ 1244.818597] wl: module license 'MIXED/Proprietary' taints kernel.
[ 1244.820857] wl: Unknown symbol __check_object_size (err 0)
[ 1244.820901] wl: Unknown symbol cfg80211_connect_bss (err 0)
[ 1244.820925] wl: Unknown symbol page_offset_base (err 0)
[ 1244.820964] wl: Unknown symbol vmemmap_base (err 0)

también

insmod: ERROR: could not insert module /lib/modules/4.6.0-kali1-amd64/kernel/drivers/net/wireless/wl.ko: Invalid module format
    
pregunta xXREKTERxX 19.07.2017 - 11:45

2 respuestas

0

Por encima de todas estas respuestas sofisticadas y geeky (respetuosamente), la única solución que funciona es actualizar la distribución. Eso es todo en realidad.

Aunque, las posibilidades de que las personas tropiecen con un problema similar es muy raro, pero de todos modos.

    
respondido por el xXREKTERxX 13.09.2018 - 11:33
0

El siguiente método debería funcionar:

  • Cambie al usuario root en Kali.

  • Elimine todos los restos de sus intentos anteriores de instalar el controlador Broadcom wl.

  • Instala dkms en Kali:

    apt-get update
    apt-get install dkms
    
  • Descargue el controlador Broadcom manualmente en su carpeta de descargas
  • Descargue el parche manualmente en su carpeta de Descargas
  • Cree ( nano ~/install-broadcom.sh , copie y pegue las líneas a continuación, escriba en el disco y salga con ctrl O y ctrl X ) y luego ejecute el script:

    #!/bin/bash
    # Installs the broadcom-wl kernel module with DKMS
    # Tested under Fedora 23, will likely work with other versions/distros
    # Author: Steven Mirabito <[email protected]>
    
    # Create a work directory
    mkdir -p /tmp/broadcom
    cd /tmp/broadcom
    
    # Download the module from Broadcom (http://www.broadcom.com/support/?gid=1) manually to ~/Downloads
    # https://docs.broadcom.com/docs/12358410
    
    # Download some support files from the Arch package manually ~/Downloads
    # https://aur.archlinux.org/cgit/aur.git/snapshot/broadcom-wl-dkms.tar.gz
    
    cp ~/Downloads/broadcom-wl-dkms.tar.gz /tmp/broadcom/
    cp ~/Downloads/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz /tmp/broadcom/broadcom.tar.gz
    
    
    # Untar the archives
    tar -zxvf broadcom.tar.gz
    tar -zxvf broadcom-wl-dkms.tar.gz
    
    # Patch the module
    sed -i -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" src/wl/sys/wl_linux.c
    
    # Add the module version number to the dkms config file
    sed -e "s/@PACKAGE_VERSION@/6.30.223.271/" broadcom-wl-dkms/dkms.conf.in > dkms.conf
    
    # Create the destination directory
    mkdir -p /usr/src/broadcom-wl-6.30.223.271
    
    # Move files into place
    cp -RL src lib Makefile dkms.conf /usr/src/broadcom-wl-6.30.223.271
    
    # Fix permissions and link the license in the appropriate place
    chmod a-x "/usr/src/broadcom-wl-6.30.223.271/lib/LICENSE.txt"
    mkdir -p "/usr/share/licenses/broadcom-wl-dkms"
    ln -rs "/usr/src/broadcom-wl-6.30.223.271/lib/LICENSE.txt" "/usr/share/licenses/broadcom-wl-dkms/LICENSE"
    
    # Install the modprobe config to blacklist the other Broadcom modules
    install -D -m 644 broadcom-wl-dkms/broadcom-wl-dkms.conf "/etc/modprobe.d/broadcom-wl-dkms.conf"
    
    # Install and build the module
    dkms add -m broadcom-wl -v 6.30.223.271
    cp -RL /tmp/broadcom/broadcom-wl-dkms /var/lib/dkms/broadcom-wl/6.30.223.271/source/patches
    dkms install -m broadcom-wl -v 6.30.223.271
    
    # Activate the module
    rmmod b43 b43legacy ssb bcm43xx brcm80211 brcmfmac brcmsmac bcma wl
    modprobe wl
    
    # Clean up
    cd ~
    rm -rf /tmp/broadcom
    

No tengo un chip WLAN en mi VM. Entonces no puedo probar los comandos rmmod ... y modprobe wl . Al menos no recibo un error al ejecutar el último comando ;-).

    
respondido por el klanomath 20.07.2017 - 17:29

Lea otras preguntas en las etiquetas