wpa_supplicant works on raspbian but not on Arch Linux ARM

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

wpa_supplicant works on raspbian but not on Arch Linux ARM

Postby maggie2 » Sat Mar 21, 2015 10:33 pm

When I booted into raspbian-wheezy I am able to successfully use wpa_supplicant with my 8192cu usb wifi but when I boot into Arch Linux ARM, I cannot. I tried using both the included 8192cu driver and the dkms-8192cu package but neither works on my up to date system.

On Arch Linux ARM for RPi:
$this->bbcode_second_pass_code('', '$ sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/example.conf
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
wlan0: Failed to initialize driver interface')

If I look at ps aux | grep wpa there is nothing running.

If I pull out my Arch Linux ARM SD card and pop in a raspbian wheezy card I just made for testing purposes and repeat the same commands it works so the hardware seems fine.
$this->bbcode_second_pass_code('', '
$ sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/example.conf
rfkill: Cannot open RFKILL control device
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument')

Those are different warning messages that do not keep wpa_supplicant from running
$this->bbcode_second_pass_code('', '$ ps aux |grep wpa
root 2433 0.0 0.5 5656 2456 ? Ss 19:45 0:00 wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/example.conf
')

Further, I can now connect to it with wpa_cli and connect to my router.

What can I do to get to the bottom of this? I do not want to run raspbian :)
Last edited by WarheadsSE on Sun Mar 22, 2015 4:26 pm, edited 1 time in total.
Reason: Proper name of Arch Linux ARM
maggie2
 
Posts: 22
Joined: Mon Mar 16, 2015 8:32 pm

Re: wpa_supplicant works on raspbian but not on Arch ARM

Postby maggie2 » Sat Mar 21, 2015 11:03 pm

The plot thickens. If I compare the modinfo lines for each distro they are nearly identical. Does that rule out the driver itself?

raspbian: https://gist.github.com/gituser6/6877258d4eda17712351
arch arm: https://gist.github.com/gituser6/22ab1588036c8750cc02
maggie2
 
Posts: 22
Joined: Mon Mar 16, 2015 8:32 pm

Re: wpa_supplicant works on raspbian but not on Arch ARM

Postby moonman » Sun Mar 22, 2015 12:04 am

You have those backwards. (arch vs rasp)

The driver is no problem. You can use wifi-menu and netctl or NetworkManager instead of manually messing with configs (unless you want to). Likely it is your configuration. Also the driver does not support cfg80211 (nl80211) AFAIK.

Keep in mind our packages are way newer (sometimes years ahead of those in raspbian). Defaults change. Debian might have introduced patches and so on.
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: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: wpa_supplicant works on raspbian but not on Arch ARM

Postby dbannon » Sun Mar 22, 2015 12:48 am

have you installed wpa_actiond ?

I found it was necessary some year ago amd have automaticly installed it since then. Have no issues with wifi.

David
dbannon
 
Posts: 6
Joined: Sun Mar 22, 2015 12:12 am

Re: wpa_supplicant works on raspbian but not on Arch ARM

Postby maggie2 » Sun Mar 22, 2015 10:38 am

I pulled down wpa_actiond but no change :cry:
maggie2
 
Posts: 22
Joined: Mon Mar 16, 2015 8:32 pm

Re: wpa_supplicant works on raspbian but not on Arch Linux A

Postby maggie2 » Sun Mar 22, 2015 5:51 pm

Graysky2 posted the answer to this problem in github issue #1143 but that issue is now locked. Thank you graysky. The problem is the current version of wpa_supplicant is broken but version 1.0 works fine.

$this->bbcode_second_pass_quote('graysky', '
')I am following your thread on rpi forums. What version of wpa_supplicant does Raspbian use? Arch ARM is using 2.3 currently. That could be to blame for the differences if the versions are different. Please find out and consider compiling the same version on Arch ARM for a true apples-to-apples comparison.

To build,browse to arch packages and find wpa_supplicant. Then click "view changes" and pull the last known good version 1.0-xxx build.

The patch you need is here.


Thank you for the reply too moonman.
maggie2
 
Posts: 22
Joined: Mon Mar 16, 2015 8:32 pm

Re: wpa_supplicant works on raspbian but not on Arch Linux A

Postby graysky » Sun Mar 22, 2015 6:00 pm

You're welcome, glad it's working for you now. Will you open a bug report upstream? I'm sure other Arch ARM users are or will be needing support from the 8192cu driver and wpa_sup.
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: wpa_supplicant works on raspbian but not on Arch Linux A

Postby dbannon » Mon Mar 23, 2015 5:42 am

Hi graysky2, for the record, I have two RasPi s running here with the 8192cu interface and what I believe is the current wpa_supplicant. Working fine !

David
dbannon
 
Posts: 6
Joined: Sun Mar 22, 2015 12:12 am

Re: wpa_supplicant works on raspbian but not on Arch Linux A

Postby graysky » Mon Mar 23, 2015 6:48 pm

Interesting... can both you and maggie post the output of lsusb?
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: wpa_supplicant works on raspbian but not on Arch Linux A

Postby maggie2 » Mon Mar 23, 2015 9:57 pm

$this->bbcode_second_pass_code('', '% lsusb
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter')
maggie2
 
Posts: 22
Joined: Mon Mar 16, 2015 8:32 pm

Next

Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 8 guests