| View previous topic :: View next topic |
| Author |
Message |
Matthijs iRex Employee

Joined: 18 Jul 2006 Posts: 948 Location: Eindhoven
|
Posted: Tue Mar 06, 2007 9:08 am Post subject: Quick hack to WPA support in 2.9 |
|
|
Hello all,
In 2.9 the low-level access to WPA(2) is enabled and working, there is just no GUI.
If you have the SHELL script execution package installed you can start a wireless WPA connection like so:
| Code: | | wireless.sh start MY_WPA_SSID wpa "Very secret passphrase" |
I'm sure that using this information, some clever person can create a modified wireless.sh that will turn the WEP GUI option into WPA on the lower level.
I realize this will spark discussions about "when will it be officially supported". The answer is "I don't know". There are a lot of higher priority changes, which are equally little work. There are also higher priority changes on the list that are a LOT of work.
So, please try to be happy with this workaround for now and refrain from shouting please
Matthijs |
|
| Back to top |
|
 |
BACbKA
Joined: 19 Dec 2006 Posts: 109 Location: Israel
|
Posted: Tue Mar 06, 2007 11:00 am Post subject: |
|
|
Matthijs, thank you very much for this info. Although I personally am afraid of the shell access prior to the unbricking feature, it's really a great thing to know that the feature is there and available for those who are more plucky  |
|
| Back to top |
|
 |
narve
Joined: 17 Oct 2006 Posts: 94
|
Posted: Tue Mar 06, 2007 11:06 am Post subject: |
|
|
Great!!!! Thanks, I've been waiting for this, now I can also connect at work.
Too bad the computer transfer functionality you added was what I feared and not what I wanted, but it is still a lot better than using USB cable. _________________ -n |
|
| Back to top |
|
 |
narve
Joined: 17 Oct 2006 Posts: 94
|
Posted: Thu Mar 08, 2007 11:38 am Post subject: |
|
|
This doesn't work for me, I get this error:
network = {...}
ioctl[siocsiwpmksa]: Invalid argument
wpa configuration error
selected interface 'wlan0'
ok
deepsleep etc.
any ideas? _________________ -n |
|
| Back to top |
|
 |
Matthijs iRex Employee

Joined: 18 Jul 2006 Posts: 948 Location: Eindhoven
|
Posted: Thu Mar 08, 2007 1:17 pm Post subject: |
|
|
Are you sure you're on the 2.9 kernel?
root@ereader:~# uname -a
Linux ereader 2.4.19-rmk7-pxa2-irex1 #2900 Mon Mar 5 13:47:36 CET 2007 armv5tel unknown
edit Ah, now I get that same error message. You can ignore that one
For me WPA and WPA2 work, but you might have some setup that is not supported. If you want to dive into the WPA supplicant configuration, be my guest... |
|
| Back to top |
|
 |
Matthijs iRex Employee

Joined: 18 Jul 2006 Posts: 948 Location: Eindhoven
|
Posted: Thu Mar 08, 2007 1:23 pm Post subject: |
|
|
| If I use an incorrect passphrase, I also get "wpa configuration error" |
|
| Back to top |
|
 |
narve
Joined: 17 Oct 2006 Posts: 94
|
Posted: Thu Mar 08, 2007 1:36 pm Post subject: |
|
|
| Matthijs wrote: | Are you sure you're on the 2.9 kernel?
root@ereader:~# uname -a
Linux ereader 2.4.19-rmk7-pxa2-irex1 #2900 Mon Mar 5 13:47:36 CET 2007 armv5tel unknown
edit Ah, now I get that same error message. You can ignore that one
For me WPA and WPA2 work, but you might have some setup that is not supported. If you want to dive into the WPA supplicant configuration, be my guest... |
Hm, the password is correct, but there could be a configuration problem. I'll check further. Thanks for helping out. _________________ -n |
|
| Back to top |
|
 |
noptix
Joined: 05 Sep 2006 Posts: 11
|
Posted: Fri Mar 09, 2007 12:56 am Post subject: |
|
|
Hi,
this hack does not work for me to. I tripple checked everything. Did even start to produce my own wpa_supplicant.conf
But I do always get: "ioctl[siocsiwpmksa]: Invalid argument"
Is there any way to enable logging, so I can check which argument is invalid?
Anyway, thanks for your good work on this wonderfull device.
noptix |
|
| Back to top |
|
 |
Matthijs iRex Employee

Joined: 18 Jul 2006 Posts: 948 Location: Eindhoven
|
Posted: Fri Mar 09, 2007 9:30 am Post subject: |
|
|
| noptix wrote: | But I do always get: "ioctl[siocsiwpmksa]: Invalid argument"
|
That is not an error message, it is a warning you can ignore. I see it too when my connection is setup correctly. This IOCTL is unavailable in the iLiad driver, but not needed for working WPA(2).
What I have here is a Linksys WRT54GL router, which works both with WPA and WPA2. |
|
| Back to top |
|
 |
Matthijs iRex Employee

Joined: 18 Jul 2006 Posts: 948 Location: Eindhoven
|
Posted: Fri Mar 09, 2007 9:40 am Post subject: |
|
|
| If you add "-d" or even "-dd" to the call to wpa_supplicant, it will output a lot more debugging. |
|
| Back to top |
|
 |
Matthijs iRex Employee

Joined: 18 Jul 2006 Posts: 948 Location: Eindhoven
|
Posted: Tue Mar 20, 2007 2:21 pm Post subject: |
|
|
Is there anyone who actually got this working? Otherwise we probably need to reconsider releasing this the next version (if it only works in our lab and not in the 'real' world)...
Any feedback appreciated. |
|
| Back to top |
|
 |
noptix
Joined: 05 Sep 2006 Posts: 11
|
Posted: Wed Mar 21, 2007 11:51 am Post subject: |
|
|
Hi Matthijs,
I did not get it to work yet. I modified wireless.sh and added the -dd, then i gave it more time to connect. It always stopped saying: "Daemonizing..." (or similar). After that i gave up cause it is to hard for me to work with the terminal on the iliad (slow display updates) and i do not have a dropbear installed. Perhaps I'll find some time this evening or tomorrow to get a dropbear and look into it again. I hope I'll find the problem.
Thanks for your work.
noptix |
|
| Back to top |
|
 |
narve
Joined: 17 Oct 2006 Posts: 94
|
Posted: Wed Mar 21, 2007 3:24 pm Post subject: |
|
|
| Matthijs wrote: | Is there anyone who actually got this working? Otherwise we probably need to reconsider releasing this the next version (if it only works in our lab and not in the 'real' world)...
Any feedback appreciated. |
I didn't get it to work. But I will try again with -dd (don't know how, but I guess I find out) -- some more info on how to debug this would be nice. It is a bit tricky because I don't have any available cable spots in the office, and without network I gotta test the network by typing on the screen, which is quite a PITA...
I really would like to have this included in the next version. Right now iLiad wireless is useless everywhere except my home network, which has been downgraded to support my iLiad (!). So I will try this tomorrow and post my results here. _________________ -n |
|
| Back to top |
|
 |
k2r
Joined: 24 Oct 2006 Posts: 22
|
Posted: Wed Mar 21, 2007 9:04 pm Post subject: |
|
|
| Matthijs wrote: | | Is there anyone who actually got this working? | I tried it a while ago with a Fritz!Box 7170, WPA with a text-key. I got an IP-number. |
|
| Back to top |
|
 |
Matthijs iRex Employee

Joined: 18 Jul 2006 Posts: 948 Location: Eindhoven
|
Posted: Thu Mar 22, 2007 8:52 am Post subject: |
|
|
Thanks k2r, that is what I want to hear  |
|
| Back to top |
|
 |
|