我在树莓派2中配置无线棒时遇到了很多问题
匿名-a:
Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux
在dmesg中,我们发现
[ 3.509177] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[ 3.630499] usb 1-1.4: New USB device found, idVendor=0846, idProduct=9043
[ 3.639452] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.649011] usb 1-1.4: Product: WNA1000Mv2
[ 3.655215] usb 1-1.4: Manufacturer: Realtek
[ 3.661455] usb 1-1.4: SerialNumber: 00e04c000001
我正在运行驱动程序(lsmod)
Module Size Used by
8192cu 528429 0
并且USB被识别(lsusb)
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0846:9043 NetGear, Inc.
我的界面和wpa_supplicant.conf文件如下所示
cat / etc / network / interfaces:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
auto wlan0
猫/etc/wpa_supplicant/wpa_supplicant.conf
ap_scan=0
ctrl_interface=DIR=/var/run/wpa_supplicant
GROUP=netdev
update_config=1
network={
ssid="o2-WLAN45"
psk="************"
scan_ssid=1
#Protocal type can be: RSN(for WP2) and WPA(for WPA1)
proto=RSN
key_mgmt=WPA-PSK
#Pairwise can be CMMP or TKIP(for WPA2 or WPA1)
pairwise=CCMP
#Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP)
auth_alg=OPEN
}
奇怪的是wlan0甚至没有显示在iwconfig中:
lo no wireless extensions.
eth0 no wireless extensions.
我已经在这里阅读过类似的条目,但是它们要么无效,要么不适用于我的问题。所以我通过ifup遇到的错误是
须藤ifup wlan0:
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
wpa_supplicant: /sbin/wpa_cli daemon failed to start
run-parts: /etc/network/if-up.d/wpasupplicant exited with return code 1
通过GUI,它找不到适配器,并且状态如下:
我希望有人可以帮助我,因为我花了太多时间...
interfaces
文件的正确位置是/etc/network/interfaces
,不是/etc/networks/interfaces
。
pairwise=CMMP
。没有CMMP
配对,是CCMP
。也许那是wpa_supplicant
导致崩溃的原因?