WIFI eduroam + rtl8192cu + PEAP + MSCHAPV2

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

WIFI eduroam + rtl8192cu + PEAP + MSCHAPV2

Postby ericph » Tue Jun 17, 2014 3:04 pm

Hi,

I have been struggling for more than two weeks trying to set up my University Wifi (eduroam ) on my Raspberry Pi. It works perfectly in my home with a basic WPA PSK authentication.

Any help will be very much appreciated!!

Below the details:

  • Img: ArchLinuxARM-2014.06-rpi.img
  • Wifi dongle: Comfast Wireless-N USB Adapter Models: CF-WU7ION (rtl8192cu)


My WPA_Supplicant config file (/etc/wpa_supplicant/wpa_supplicant.conf)
$this->bbcode_second_pass_code('', '

ctrl_interface=/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1
network={
ssid="eduroam"
key_mgmt=WPA-EAP
eap=PEAP
auth_alg=OPEN
identity="xxxxx@uni.ac.uk"
ca_cert="/etc/ssl/certs/mycert.pem"
phase2="auth=MSCHAPV2"
password="mykey"
}
')

I am sure the .pem file is OK, I have tried several available wpa_supplicant configurations with proto = RSN WPA, or with eap= TTLS,... among others. I have tried several eduroam configurations available on forums and google.

In addition I have successfully installed the 8192cu-dkms patch, but eduroam still doesn't work.

The commands I use:
$this->bbcode_second_pass_code('', '
(1) wpa_supplicant -B -i wlan0 -D wext -c /etc/wpa_supplicant/home.conf
(2) dhcpcd wlan0
')

For command (1),
If using nl80211 it shows me the error
$this->bbcode_second_pass_code('', 'Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
wlan0: Failed to initialize driver interface')
I tried then wext and I get these messages: (I ignored them since the same happens in home and it works there):
$this->bbcode_second_pass_code('', '
Successfully initialized wpa_supplicant
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
')

In WPA_CLI the status is SCANNING and I got and address and a uuid. Indeed the eduroam network is available

For command (2),
I got:
$this->bbcode_second_pass_code('', 'dhcpcd[154]: version 6.3.2 starting
dhcpcd[154]: all: IPv6 kernel autoconf disabled
dhcpcd[154]: wlan0: IPv6 autoconf disabled
dhcpcd[154]: wlan0: IPv6 kernel disabled
dhcpcd[154]: wlan0: waiting for carrier
dhcpcd[154]: time out
dhcpcd[154]: exited')

ip link show me:
$this->bbcode_second_pass_code('', '5: wlan0: <NO CARRIER, BROADCAST, MULTICAST, UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen')

As said, I really appreaciate any help!!!
ericph
 
Posts: 3
Joined: Tue Jun 17, 2014 1:37 pm

Re: WIFI eduroam + rtl8192cu + PEAP + MSCHAPV2

Postby moonman » Thu Jun 19, 2014 7:07 am

8192 driver is kind of an odd one. Some people say the in-tree driver works, some say the 8192-dkms works.

Anyway, try this: https://wiki.archlinux.org/index.php/Netctl#Eduroam

Also try the in-tree rtlwifi driver (only available in linux-raspberrypi-latest), you can disable hardware crypto with it which might help.
$this->bbcode_second_pass_code('', 'echo "options rtl8192cu swenc=1" > /etc/modprobe.d/rtl8192cu.conf')
then either reboot or reload the module
(Beware the dkms-8192cu does not have this option)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: WIFI eduroam + rtl8192cu + PEAP + MSCHAPV2

Postby ericph » Fri Jun 20, 2014 11:10 am

Thanks for your reply moonman,

I have tried both configurations on https://wiki.archlinux.org/index.php/Netctl#Eduroam , but none of them worked.

I'll try to install linux-raspberrypi-latest , but I have to do it offline or otherwise from home, so I will do it this weekend and let you know.

Best regards,
ericph
 
Posts: 3
Joined: Tue Jun 17, 2014 1:37 pm

Re: WIFI eduroam + rtl8192cu + PEAP + MSCHAPV2

Postby ericph » Fri Jun 20, 2014 1:10 pm

Hi,
I managed to install linux-raspberrypi-latest offline and set swenc to 1, but it's still not working :( with the same result.

This is what I got :

$this->bbcode_second_pass_code('', '
uname -r
3.15.1-1-ARCH
')

$this->bbcode_second_pass_code('', '
lsmod | grep rtl
rtl8192cu 65953 0
rtl_usb 9990 1 rtl8192cu
rtlwifi 59252 2 rtl_usb,rtl8192cu
rtl8192c_common 46836 1 rtl8192cu
mac80211 501039 3 rtl_usb,rtlwifi,rtl8192cu
')

$this->bbcode_second_pass_code('', '
lsmod | grep 8192
[ 8.755287] rtl8192cu: Chip version 0x10
[ 9.407288] rtl8192cu: MAC address: 00:0f:10:00:2a:08
[ 9.407427] rtl8192cu: Board Type 0
[ 9.411169] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 9.418999] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 9.432852] usbcore: registered new interface driver rtl8192cu
[ 9.683153] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[ 9.687826] rtlwifi: wireless switch is on
[ 31.770234] rtl8192cu: MAC auto ON okay!
[ 31.888510] rtl8192cu: Tx queue select: 0x05
')

I used the same commands and config files as posted initially. After the time out I got:
$this->bbcode_second_pass_code('', '
journalctl -xn
-- Logs begin at Wed 1969-12-31 17:00:05 MST, end at Wed 1969-12-31 17:02:44 MST. --
Dec 31 17:02:41 alarmpi kernel: wlan0: send auth to 12:bd:14:cf:2c:a1 (try 1/3)
Dec 31 17:02:41 alarmpi kernel: wlan0: authenticated
Dec 31 17:02:41 alarmpi kernel: wlan0: associate with 12:bd:14:cf:2c:a1 (try 1/3)
Dec 31 17:02:41 alarmpi kernel: wlan0: RX AssocResp from 12:bd:14:cf:2c:a1 (capab=0x431 status=0 aid=49)
Dec 31 17:02:41 alarmpi kernel: wlan0: associated
Dec 31 17:02:44 alarmpi kernel: wlan0: deauthenticating from 12:bd:14:cf:2c:a1 by local choice (Reason: 3=DEAUTH_LEAVING)
Dec 31 17:02:44 alarmpi kernel: cfg80211: All devices are disconnected, going to restore regulatory settings
Dec 31 17:02:44 alarmpi kernel: cfg80211: Restoring regulatory settings
Dec 31 17:02:44 alarmpi kernel: cfg80211: Kicking the queue
Dec 31 17:02:44 alarmpi kernel: cfg80211: Calling CRDA to update world regulatory domain
')

Any idea?
ericph
 
Posts: 3
Joined: Tue Jun 17, 2014 1:37 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 6 guests