无法编辑 /proc/brcm_monitor0

无法编辑 /proc/brcm_monitor0

我在 Macbook air 上运行 Ubuntu 16.10,其机场使用 Broadcom BCM4360。我现在正在使用 wl 驱动程序,它正在运行,但我无法将设备置于监控模式。我读到我必须在 /proc/brcm_monitor0 文件中添加 1,但这会导致我的系统崩溃。我将不胜感激任何帮助。谢谢


感谢@Liso 的帮助。但我在尝试编译时收到此错误:

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

答案1

按照以下说明进行操作回答

  1. 从 Broadcom 下载驱动程序源 (6.30.223.141)
    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. 不要应用 LINUX 3.10 UBUNTU 补丁。应用http://ix.io/9DV仅限补丁。
    wget http://ix.io/9DV
    cd hybrid
    patch -i ../9DV -p1
  1. 编译驱动程序。

    make
    
  1. 测试驱动程序。

    sudo rmmod wl
    sudo insmod ./wl.ko
    
  2. 启用监控模式。

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

来源: http://aur.archlinux.org/packages/broadcom-wl/?setlang=de&comments=all

相关内容