I've been having lots of problems with the configuration of a wireless stick in the raspberry pi 2
uname -a:
Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux
In dmesg we find
[ 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
and I have the driver running (lsmod)
Module Size Used by
8192cu 528429 0
and the usb is being recognized (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.
My interfaces and wpa_supplicant.conf files look like this
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
cat /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
}
The weird thing is that wlan0 does not even show in iwconfig:
lo no wireless extensions.
eth0 no wireless extensions.
I've already read similar entries here but either they didn't work or they didn't apply to my problem. So the error I'm getting by doing ifup is
sudo 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
Through the GUI, it doesn't find an adapter and the status is as follows:
I hope someone can help me because I've spent way too much time with it...
interfaces
file is/etc/network/interfaces
, not/etc/networks/interfaces
.pairwise=CMMP
. There is noCMMP
pairing, it isCCMP
. Perhaps that is what makeswpa_supplicant
crash?wlan0
is there,ip link set wlan0 up
and then try what I suggested here to see if you can at least get a network connection manually (which turns out to be simpler in many cases).