Compat 无线驱动程序 Centrino N-2230

Compat 无线驱动程序 Centrino N-2230

我正在使用 Linux,在安装 Compat Wireless 驱动程序时遇到了麻烦

硬件:英特尔迅驰 N-2230

操作系统:Linux Mint 64 位(内核 13.08-通用)

我点击了这个链接 http://www.mathyvanhoef.com/2012/09/compat-wireless-injection-patch-for.html

输出:

apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-3.8.0-19-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
charles-W55xEU compat-wireless-2010-10-16 # cd ~
charles-W55xEU ~ # dir
adt-bundle-linux-x86_64-20130917.zip  Desktop  known_hosts_backup
charles-W55xEU ~ # wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.2-1-snp.tar.bz2
--2013-10-29 10:28:23--  http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.2-1-snp.tar.bz2
Resolving www.orbit-lab.org (www.orbit-lab.org)... 128.6.192.131
Connecting to www.orbit-lab.org (www.orbit-lab.org)|128.6.192.131|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4443700 (4,2M) [application/x-bzip2]
Saving to: ‘compat-wireless-3.6.2-1-snp.tar.bz2’

100%[======================================>] 4 443 700   13,5KB/s   in 11m 3s 

2013-10-29 10:39:27 (6,55 KB/s) - ‘compat-wireless-3.6.2-1-snp.tar.bz2’ saved [4443700/4443700]

charles-W55xEU ~ # tar -xf compat-wireless-3.6.2-1-snp.tar.bz2
charles-W55xEU ~ # cd compat-wireless-3.6-rc6-1
bash: cd: compat-wireless-3.6-rc6-1: No such file or directory
charles-W55xEU ~ # dir
adt-bundle-linux-x86_64-20130917.zip  Desktop
compat-wireless-3.6.2-1-snp       known_hosts_backup
compat-wireless-3.6.2-1-snp.tar.bz2
charles-W55xEU ~ # cd compat-wireless-3.6.2-1-snp/
charles-W55xEU compat-wireless-3.6.2-1-snp # dir
code-metrics.txt  defconfigs           linux-next-pending  pending-stable
compat        drivers          MAINTAINERS         README
config.mk     enable-older-kernels     Makefile        scripts
COPYRIGHT     include          net             udev
crap          linux-next-cherry-picks  patches
charles-W55xEU compat-wireless-3.6.2-1-snp # wget http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
--2013-10-29 10:40:52--  http://patches.aircrack-ng.org/mac80211.compat08082009.wl_frag+ack_v1.patch
Resolving patches.aircrack-ng.org (patches.aircrack-ng.org)... 213.186.33.2, 2001:41d0:1:1b00:213:186:33:2
Connecting to patches.aircrack-ng.org (patches.aircrack-ng.org)|213.186.33.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1049 (1,0K) [text/plain]
Saving to: ‘mac80211.compat08082009.wl_frag+ack_v1.patch’

100%[======================================>] 1 049       --.-K/s   in 0s      

2013-10-29 10:40:56 (180 MB/s) - ‘mac80211.compat08082009.wl_frag+ack_v1.patch’ saved [1049/1049]

charles-W55xEU compat-wireless-3.6.2-1-snp # patch -p1 < mac80211.compat08082009.wl_frag+ack_v1.patch
patching file net/mac80211/tx.c
Hunk #1 succeeded at 792 (offset 115 lines).


charles-W55xEU compat-wireless-3.6.2-1-snp # wget -Ocompatwireless_chan_qos_frag.patch http://pastie.textmate.org/pastes/4882675/download
--2013-10-29 10:43:18--  http://pastie.textmate.org/pastes/4882675/download
Resolving pastie.textmate.org (pastie.textmate.org)... 178.79.137.125
Connecting to pastie.textmate.org (pastie.textmate.org)|178.79.137.125|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://pastie.org/pastes/4882675/download [following]
--2013-10-29 10:43:20--  http://pastie.org/pastes/4882675/download
Resolving pastie.org (pastie.org)... 96.126.119.119
Connecting to pastie.org (pastie.org)|96.126.119.119|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2036 (2,0K) [application/octet-stream]
Saving to: ‘compatwireless_chan_qos_frag.patch’

100%[======================================>] 2 036       --.-K/s   in 0,001s  

2013-10-29 10:43:21 (3,35 MB/s) - ‘compatwireless_chan_qos_frag.patch’ saved [2036/2036]

charles-W55xEU compat-wireless-3.6.2-1-snp # patch -p1 < compatwireless_chan_qos_frag.patch
patching file drivers/net/wireless/rtl818x/rtl8187/dev.c
patching file net/mac80211/tx.c
Hunk #1 succeeded at 1495 (offset 8 lines).
patching file net/wireless/chan.c
charles-W55xEU compat-wireless-3.6.2-1-snp # make
./scripts/gen-compat-autoconf.sh /root/compat-wireless-3.6.2-1-snp/.config /root/compat-wireless-3.6.2-1-snp/config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.8.0-19-generic/build M=/root/compat-wireless-3.6.2-1-snp modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-19-generic'
  CC [M]  /root/compat-wireless-3.6.2-1-snp/compat/main.o
  LD [M]  /root/compat-wireless-3.6.2-1-snp/compat/compat.o
  CC [M]  /root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.o
In file included from /root/compat-wireless-3.6.2-1-snp/include/linux/bcma/bcma.h:8:0,
                 from /root/compat-wireless-3.6.2-1-snp/drivers/bcma/bcma_private.h:8,
                 from /root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:8:
/root/compat-wireless-3.6.2-1-snp/include/linux/bcma/bcma_driver_pci.h:217:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bcma_core_pci_init’
In file included from /root/compat-wireless-3.6.2-1-snp/include/linux/bcma/bcma.h:10:0,
                 from /root/compat-wireless-3.6.2-1-snp/drivers/bcma/bcma_private.h:8,
                 from /root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:8:
/root/compat-wireless-3.6.2-1-snp/include/linux/bcma/bcma_driver_gmac_cmn.h:95:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bcma_core_gmac_cmn_init’
In file included from /root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:8:0:
/root/compat-wireless-3.6.2-1-snp/drivers/bcma/bcma_private.h:25:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bcma_bus_register’
/root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:152:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bcma_bus_register’
/root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:17:21: warning: ‘bcma_bus_next_num’ defined but not used [-Wunused-variable]
/root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:93:12: warning: ‘bcma_register_cores’ defined but not used [-Wunused-function]
make[3]: *** [/root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.o] Error 1
make[2]: *** [/root/compat-wireless-3.6.2-1-snp/drivers/bcma] Error 2
make[1]: *** [_module_/root/compat-wireless-3.6.2-1-snp] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic'
make: *** [modules] Error 2
charles-W55xEU compat-wireless-3.6.2-1-snp # make install
Warning:
You may or may not need to update your initframfs, you should if
any of the modules installed are part of your initramfs. To add
support for your distribution to do this automatically send a
patch against ./scripts/update-initramfs. If your distribution does not require this
send a patch against the '/usr/bin/lsb_release -i -s': LinuxMint
tag for your distribution to avoid this warning.

make -C /lib/modules/3.8.0-19-generic/build M=/root/compat-wireless-3.6.2-1-snp modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-19-generic'
  CC [M]  /root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.o
In file included from /root/compat-wireless-3.6.2-1-snp/include/linux/bcma/bcma.h:8:0,
                 from /root/compat-wireless-3.6.2-1-snp/drivers/bcma/bcma_private.h:8,
                 from /root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:8:
/root/compat-wireless-3.6.2-1-snp/include/linux/bcma/bcma_driver_pci.h:217:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bcma_core_pci_init’
In file included from /root/compat-wireless-3.6.2-1-snp/include/linux/bcma/bcma.h:10:0,
                 from /root/compat-wireless-3.6.2-1-snp/drivers/bcma/bcma_private.h:8,
                 from /root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:8:
/root/compat-wireless-3.6.2-1-snp/include/linux/bcma/bcma_driver_gmac_cmn.h:95:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bcma_core_gmac_cmn_init’
In file included from /root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:8:0:
/root/compat-wireless-3.6.2-1-snp/drivers/bcma/bcma_private.h:25:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bcma_bus_register’
/root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:152:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bcma_bus_register’
/root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:17:21: warning: ‘bcma_bus_next_num’ defined but not used [-Wunused-variable]
/root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.c:93:12: warning: ‘bcma_register_cores’ defined but not used [-Wunused-function]
make[3]: *** [/root/compat-wireless-3.6.2-1-snp/drivers/bcma/main.o] Error 1
make[2]: *** [/root/compat-wireless-3.6.2-1-snp/drivers/bcma] Error 2
make[1]: *** [_module_/root/compat-wireless-3.6.2-1-snp] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic'
make: *** [modules] Error 2
charles-W55xEU compat-wireless-3.6.2-1-snp # 

它一直出现错误,与其他网站一样,我也遇到了同样的错误???

我迷路了,需要帮助

答案1

您需要安装所谓的 backports。

我搜索了该网站维基百科,关键词为 Intel Centrino N-2230。搜索结果将我引导至此网页,其中指出:

Linux 驱动程序 iwlwifi(在反向移植中)。

因此我们需要安装 backport。您需要下载这个文件,然后转到您所在的目录,并发出以下命令:

 tar xvfz backports-20131025.tar.gz
 cd backports-20131025
 make defconfig-iwlwifi
 make
 sudo make install
 sudo rmmod iwlwifi
 sudo modprobe iwlwifi

如果此时仍然不起作用,则意味着您没有合适的固件。

 sudo apt-get install linux-firmware
 sudo rmmod iwlwifi
 sudo modprobe iwlwifi

现在它应该可以工作了。如果不行,请发布错误消息。

答案2

您可能需要尝试卸载/重新安装 aircrack-ng;

apt-get autoremove aircrack-ng

使用以下方式更新 ssl devel 文件; apt-get install libssl-dev

现在从以下位置下载并安装最新源http://aircrack-ng.org/

wget http://download.aircrack-ng.org/aircrack-ng-1.2-beta1.tar.gz

tar xf aircrack-ng-1.2-beta1.tar.gz

cd 进入目录后make运行make install

重新开始

现在看看是否airmon-ng start wlan0有效,或者只是airmon-ng

如果没有,那么我建议在 Kali/BT live dvd 上尝试一下,因为它应该可以开箱即用。

相关内容