não pode editar / proc / brcm_monitor0

0

Estou executando o Ubuntu 16.10 em um Macbook air cujo aeroporto usa o Broadcom BCM4360. Eu estou usando o driver wl agora e está funcionando, mas não consigo colocar o dispositivo no modo monitor. Eu li que devo adicionar um 1 para o arquivo / proc / brcm_monitor0 mas isso faz com que meu sistema trave. Eu apreciaria qualquer ajuda. obrigado

Obrigado @Liso, pela ajuda. Mas eu recebo esse erro ao tentar compilar:

KBUILD_NOPEDANTIC=1 make -C /lib/modules/'uname -r'/build M='pwd'
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-27-generic'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  LD      /home/chris/broadcom/hybrid/built-in.o
  CC [M]  /home/chris/broadcom/hybrid/src/shared/linux_osl.o
  CC [M]  /home/chris/broadcom/hybrid/src/wl/sys/wl_linux.o
/home/chris/broadcom/hybrid/src/wl/sys/wl_linux.c: In function ‘wl_alloc_linux_if’:
/home/chris/broadcom/hybrid/src/wl/sys/wl_linux.c:1348:64: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
  dev = alloc_netdev(sizeof(priv_link_t), intf_name, ether_setup);
                                                                ^
/home/chris/broadcom/hybrid/src/wl/sys/wl_linux.c:1348:8: error: ‘alloc_netdev’ undeclared (first use in this function)
  dev = alloc_netdev(sizeof(priv_link_t), intf_name, ether_setup);
        ^~~~~~~~~~~~
/home/chris/broadcom/hybrid/src/wl/sys/wl_linux.c:1348:8: note: each undeclared identifier is reported only once for each function it appears in
/home/chris/broadcom/hybrid/src/wl/sys/wl_linux.c: In function ‘wl_dump_ver’:
/home/chris/broadcom/hybrid/src/wl/sys/wl_linux.c:2041:3: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
   ^~~~~~~~
/home/chris/broadcom/hybrid/src/wl/sys/wl_linux.c:2041:13: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   __DATE__, __TIME__, EPI_VERSION_STR);
             ^~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:289: recipe for target '/home/chris/broadcom/hybrid/src/wl/sys/wl_linux.o' failed
make[2]: *** [/home/chris/broadcom/hybrid/src/wl/sys/wl_linux.o] Error 1
Makefile:1489: recipe for target '_module_/home/chris/broadcom/hybrid' failed
make[1]: *** [_module_/home/chris/broadcom/hybrid] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-27-generic'
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
    
por Chris 26.11.2016 / 05:32

1 resposta

0

Siga as instruções abaixo desta resposta

  1. Download driver source (6.30.223.141) from Broadcom
    wget http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_141.tar.gz
    tar xvzf hybrid-v35_64-nodebug-pcoem-6_30_223_141.tar.gz
     
  1. DO NOT APPLY LINUX 3.10 UBUNTU PATCH. Apply http://ix.io/9DV patch only.
    wget http://ix.io/9DV
    cd hybrid
    patch -i ../9DV -p1
     
  1. Compile the driver.

    make
    
     
  1. Testando o driver.

    sudo rmmod wl
    sudo insmod ./wl.ko
    
  2.   
  3. Ativar modo de monitor.

    sudo bash -c "echo 1 > /proc/brcm_monitor0"
    
  4.   

fonte:    link

    
por Liso 26.11.2016 / 10:23

Tags