iRex Forum Forum Index iRex Forum

 
 FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Quick hack to WPA support in 2.9
Goto page 1, 2  Next
 
Post new topic   Reply to topic    iRex Forum Forum Index -> iRex iLiad Software
View previous topic :: View next topic  
Author Message
Matthijs
iRex Employee
iRex Employee


Joined: 18 Jul 2006
Posts: 948
Location: Eindhoven

PostPosted: Tue Mar 06, 2007 9:08 am    Post subject: Quick hack to WPA support in 2.9 Reply with quote

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 Wink Smile

Matthijs
Back to top
View user's profile Send private message
BACbKA



Joined: 19 Dec 2006
Posts: 109
Location: Israel

PostPosted: Tue Mar 06, 2007 11:00 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Visit poster's website
narve



Joined: 17 Oct 2006
Posts: 94

PostPosted: Tue Mar 06, 2007 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message
narve



Joined: 17 Oct 2006
Posts: 94

PostPosted: Thu Mar 08, 2007 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Matthijs
iRex Employee
iRex Employee


Joined: 18 Jul 2006
Posts: 948
Location: Eindhoven

PostPosted: Thu Mar 08, 2007 1:17 pm    Post subject: Reply with quote

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 Smile

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
View user's profile Send private message
Matthijs
iRex Employee
iRex Employee


Joined: 18 Jul 2006
Posts: 948
Location: Eindhoven

PostPosted: Thu Mar 08, 2007 1:23 pm    Post subject: Reply with quote

If I use an incorrect passphrase, I also get "wpa configuration error"
Back to top
View user's profile Send private message
narve



Joined: 17 Oct 2006
Posts: 94

PostPosted: Thu Mar 08, 2007 1:36 pm    Post subject: Reply with quote

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 Smile

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
View user's profile Send private message
noptix



Joined: 05 Sep 2006
Posts: 11

PostPosted: Fri Mar 09, 2007 12:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Matthijs
iRex Employee
iRex Employee


Joined: 18 Jul 2006
Posts: 948
Location: Eindhoven

PostPosted: Fri Mar 09, 2007 9:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Matthijs
iRex Employee
iRex Employee


Joined: 18 Jul 2006
Posts: 948
Location: Eindhoven

PostPosted: Fri Mar 09, 2007 9:40 am    Post subject: Reply with quote

If you add "-d" or even "-dd" to the call to wpa_supplicant, it will output a lot more debugging.
Back to top
View user's profile Send private message
Matthijs
iRex Employee
iRex Employee


Joined: 18 Jul 2006
Posts: 948
Location: Eindhoven

PostPosted: Tue Mar 20, 2007 2:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
noptix



Joined: 05 Sep 2006
Posts: 11

PostPosted: Wed Mar 21, 2007 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
narve



Joined: 17 Oct 2006
Posts: 94

PostPosted: Wed Mar 21, 2007 3:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
k2r



Joined: 24 Oct 2006
Posts: 22

PostPosted: Wed Mar 21, 2007 9:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Matthijs
iRex Employee
iRex Employee


Joined: 18 Jul 2006
Posts: 948
Location: Eindhoven

PostPosted: Thu Mar 22, 2007 8:52 am    Post subject: Reply with quote

Thanks k2r, that is what I want to hear Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iRex Forum Forum Index -> iRex iLiad Software All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


You can find our complete guidelines here.
Powered by phpBB © 2001, 2005 phpBB Group