Author Topic: Wpa Under Guyhelm Rom -  (Read 16335 times)

Gondola

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Wpa Under Guyhelm Rom -
« on: July 27, 2005, 05:55:14 pm »
I'd like to set up WPA at home for increased security.  My AP has WPA, I just need to figure out how to set it up under Guyhelm ROM.  

Using the link from this thread: (https://www.oesf.org/forums/index.php?showtopic=13402&pid=85759&st=0&#entry85759)
I was able to download an archive called wpa_stuff.tar.gz which had wpa_supplicant, wpa_cli, and wpa_passphrase, as well as a couple config files.

Trying to run wpa_supplicant manually presents me with this error:
Code: [Select]
# wpa_supplicant
wpa_supplicant: error while loading shared libraries: libdnet.so.0: cannot load shared object file: No such file or directory
I've only been using the Guyhelm ROM a few days; I'm not sure what libraries from other feeds may or may not be compatible.  Help on this matter would be appreciated.

Also, if someone who knows how to configure a WRT54G with Satori firmware with WPA using wpa_supplicant, I'd be grateful for some pointers on setting up the wpa_supplicant.conf file in a secure manner.

Thanks!
[span style=\'font-size:8pt;line-height:100%\']Nokia 770, running latest firmware.
1GB RS-MMC sandisk card
Garmin Etrex Legend GPS/USB Earthmate GPS
Rooted, with an SSH server, VNC viewer, etc.
[/span]

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Wpa Under Guyhelm Rom -
« Reply #1 on: October 21, 2005, 06:01:30 pm »
am new to 6000, so please bear with me.

**edit**

make sure your AP runs in 11b/11g mode, this will probably slow it down for g users, but otherwise you'll not get a connection

sadly, there's no linux drivers for any 802.11g cf cards yet

I recently got WPA working on my 860 using the latest cacko, so I will try the same techniques on the 6000 with G-rom rc4.

stay tuned.
« Last Edit: November 25, 2005, 06:31:49 pm by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Wpa Under Guyhelm Rom -
« Reply #2 on: November 28, 2005, 06:47:11 pm »
Quote
I recently got WPA working on my 860 using the latest cacko, so I will try the same techniques on the 6000 with G-rom rc4.

stay tuned.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=100433\"][{POST_SNAPBACK}][/a][/div]

gosh, a long time to wait, sorry.

After copying over various libs from my 860 (libpcap, libcrypto, libssl, libdnet), wpa_supplicant and wpa_supplicant.conf, I have gotten wpa_supplicant to start up.

When I go to work tomorrow I shall be able to try it out.

Paul
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Wpa Under Guyhelm Rom -
« Reply #3 on: November 30, 2005, 11:04:07 am »
Quote
After copying over various libs from my 860 (libpcap, libcrypto, libssl, libdnet), wpa_supplicant and wpa_supplicant.conf, I have gotten wpa_supplicant to start up.

When I go to work tomorrow I shall be able to try it out.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=105302\"][{POST_SNAPBACK}][/a][/div]

I tried it out, but unfortunately the wpa_supplicant reported that
ioctl[SIOCSIWMODE]: Function not implemented
Could not configure driver to use managed mode
...
ioctl[SIOCSIWAUTH]: Function not implemented
Failed to enable WPA in the driver

So, no joy there then  

I presume that I will need to change the driver mode for the built-in wlan card, to make it use hostap or something.

Paul
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
Wpa Under Guyhelm Rom -
« Reply #4 on: December 02, 2005, 06:33:34 am »
Hello

You may need newer linux-wlan drivers. I'll try to compile them (you can too !). I'd then be interested in adding wpa support by default - it hasn't been done since there's no way I can experiment with it :-(

Guylhem

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
Wpa Under Guyhelm Rom -
« Reply #5 on: December 05, 2005, 06:53:00 pm »
Quote
You may need newer linux-wlan drivers. I'll try to compile them (you can too !). I'd then be interested in adding wpa support by default - it hasn't been done since there's no way I can experiment with it :-(
[div align=\"right\"][a href=\"index.php?act=findpost&pid=105769\"][{POST_SNAPBACK}][/a][/div]

Do you have a suggestion for how to do this?  Would you basically start with the guylhem kernel sources, and then replace the wlan drivers from a later version of 2.4.X?  I don't have much practice with kernel hacking, but I might it try it soon and see how far I get.

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
Wpa Under Guyhelm Rom -
« Reply #6 on: December 08, 2005, 05:14:52 am »
hello

it's a separate download from Jean Tourrilhes website IIRC - you only need the crosscompilers

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Wpa Under Guyhelm Rom -
« Reply #7 on: December 08, 2005, 10:13:04 am »
Quote
hello

it's a separate download from Jean Tourrilhes website IIRC - you only need the crosscompilers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=106441\"][{POST_SNAPBACK}][/a][/div]

I know from the ralink driver forums that some drivers, whilst they compile, have endian problems, so I'll give it a go but I don't know whether the drivers will work fully if at all.

This will be my first foray into cross-compiling kernels, so will be a voyage of discovery; want to do this anyway for bluetooth modules... and anyway, I am looking for a new job, hopefully in embedded linux, so this is all valuable experience!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Wpa Under Guyhelm Rom -
« Reply #8 on: December 13, 2005, 06:20:56 pm »
http://www.hpl.hp.com/personal/Jean_Tourri...11b.html#Prism2

I've sent the device driver maintainers a question as to whether usb prism driver can be made to run in hostap or do anything to help achieve WPA.
« Last Edit: December 13, 2005, 06:33:34 pm by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Wpa Under Guyhelm Rom -
« Reply #9 on: December 15, 2005, 06:25:48 pm »
Quote
I've sent the device driver maintainers a question as to whether usb prism driver can be made to run in hostap or do anything to help achieve WPA.

nothing heard back yet :-(
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Wpa Under Guyhelm Rom -
« Reply #10 on: December 28, 2005, 07:07:14 pm »
I discovered a new document about prism usb on the zaurus 6000L, and it seems that the 6000's wifi is a prism3 usb device.

dmesg tells me the version of the hardware and firmware, and it would seem that it should be possible to support hostap.

so, I download the latest wlan-ng stuff from ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/
and tried building against the sources I have for the 6000's kernel.. there are many compile-time warnings, but it finally bombs out thus:

/home/zaurus/build/linux-2.4.18-rmk7-pxa3-20051020/include/asm/pgalloc.h:91: warning: passing arg 1 of `cpu_pid_va_to_mva' makes integer from pointer without a cast
In file included from prism2_usb.c:2:
hfa384x_usb.c: In function `hfa384x_drvr_readpda':
hfa384x_usb.c:3134: warning: unknown conversion type character `z' in format
hfa384x_usb.c:3134: warning: too many arguments for format
prism2_usb.c: In function `prism2sta_disconnect_usb':
prism2_usb.c:282: warning: implicit declaration of function `msleep'
make[5]: *** [prism2_usb.o] Error 1
make[5]: Leaving directory `/home/zaurus/build/linux-wlan-ng-0.2.3/src/prism2/driver'
make[4]: *** [_mod_/home/zaurus/build/linux-wlan-ng-0.2.3/src/prism2/driver] Error 2
make[4]: Leaving directory `/home/zaurus/build/linux-2.4.18-rmk7-pxa3-20051020'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/home/zaurus/build/linux-wlan-ng-0.2.3/src/prism2/driver'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/zaurus/build/linux-wlan-ng-0.2.3/src/prism2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/zaurus/build/linux-wlan-ng-0.2.3/src'
make: *** [all] Error 2
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
Wpa Under Guyhelm Rom -
« Reply #11 on: December 29, 2005, 07:22:49 am »
Quote
I discovered a new document about prism usb on the zaurus 6000L, and it seems that the 6000's wifi is a prism3 usb device.

dmesg tells me the version of the hardware and firmware, and it would seem that it should be possible to support hostap.

so, I download the latest wlan-ng stuff from ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/

To get hostap, you need to go here:  http://hostap.epitest.fi/

The wlan-ng drivers simply don't support WPA, it's a dead end.

BTW, the pdaXrom rc12 kernel already has hostap compiled.  I'm going to see if I can make it work in the next few days.

(why does each ROM have its own kernel anyway??)

There's one other chance, although I've tried and failed with this one:
https://www.oesf.org/forums/index.php?showtopic=15137
« Last Edit: December 29, 2005, 07:59:03 am by DrWowe »

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
Wpa Under Guyhelm Rom -
« Reply #12 on: December 29, 2005, 08:48:24 am »
hostap won't work either.  

http://hostap.epitest.fi/cgi-bin/viewcvs.c...type=text/plain

Quote
The driver supports IEEE 802.11 wireless LAN PC Cards that are based
on Intersil's Prism2, 2.5, or 3 chipsets (especially, MAC processors
HFA3841 or HFA3842 for Prism2 and ISL3874 for Prism2.5). Native PCI
cards using Prism2.5/3 are also supported, but USB cards based on
Prism2.5/3 chipset are not supported in this version.

I think we're basically screwed, unless we can either convince the wlan-ng guys to support WPA or the hostap guys to support USB.
Or unless you want an ugly CF card sticking out like those clamshell guys.
« Last Edit: December 29, 2005, 08:53:53 am by DrWowe »

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
Wpa Under Guyhelm Rom -
« Reply #13 on: December 29, 2005, 09:16:29 am »
I think I'm going to setup a seperate unencrypted AP for the Zaurus.  It will have restricted access only to my firewall box.  Then, I can use openvpn over that.

Dynamic WEP keying would be another option.  Dynamic WEP is much more secure than static WEP, because the key changes so often that the attacker can't collect enough statistical data to mount the standard WEP attack.

In fact, if the Zaurus is the only device connecting to the AP, this could be easily done with a home-brew solution.  The Zaurus itself can take charge of rekeying.  You would just need a cron script that runs every 15 minutes, generates a random WEP key, connects to the HTTP port on the AP and updates the key.
« Last Edit: December 29, 2005, 09:19:34 am by DrWowe »