OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Debian => Topic started by: Shoryu on May 11, 2008, 06:45:57 pm

Title: Setting Up Wifi With Wpa
Post by: Shoryu on May 11, 2008, 06:45:57 pm
Hi everyone,
i'm running zdevil rootfs and younggun latest kernel on my slc1000, so far everything works great.
The only thing that bugs me is that i don't know how can i enable WPA wifi with this distro.
I've done some research and tried a lot of stuff in /etc/network/interfaces
like using iwpriv wireless-tools commands :
Code: [Select]
pre-up iwpriv eth3 set AuthMode=WPAPSK
pre-up iwpriv eth3 set EncrypType=TKIP
pre-up iwpriv eth3 set WPAPSK="mykey"

but set command isn't available.

also using this syntax:
Code: [Select]
wireless-key-mgmt WPA-PSK
wireless-key "mykey"
when i try : /etc/init.d/networking restart
i get the error "Set mode" and also "Set Encode" saying that mykey is an invalid argument

i can see my wifi card with iwconfig it's just that it doesn't associate.

my wifi CF card is a Linksys WCF12 which should have WPA support according to some researches on google.
I saw that another tool can do the same as wireless-tools, wpa_supplicant. do i need to install this one or am i missing something here?
I've never had any problems with Wifi using WEP , but never done it with WPA.

thanks for your help
Title: Setting Up Wifi With Wpa
Post by: mikeones on May 12, 2008, 10:55:29 am
Quote from: Shoryu
Hi everyone,
i'm running zdevil rootfs and younggun latest kernel on my slc1000, so far everything works great.
The only thing that bugs me is that i don't know how can i enable WPA wifi with this distro.
I've done some research and tried a lot of stuff in /etc/network/interfaces
like using iwpriv wireless-tools commands :
Code: [Select]
pre-up iwpriv eth3 set AuthMode=WPAPSK
pre-up iwpriv eth3 set EncrypType=TKIP
pre-up iwpriv eth3 set WPAPSK="mykey"

but set command isn't available.

also using this syntax:
Code: [Select]
wireless-key-mgmt WPA-PSK
wireless-key "mykey"
when i try : /etc/init.d/networking restart
i get the error "Set mode" and also "Set Encode" saying that mykey is an invalid argument

i can see my wifi card with iwconfig it's just that it doesn't associate.

my wifi CF card is a Linksys WCF12 which should have WPA support according to some researches on google.
I saw that another tool can do the same as wireless-tools, wpa_supplicant. do i need to install this one or am i missing something here?
I've never had any problems with Wifi using WEP , but never done it with WPA.

thanks for your help
AFAICT, wpa supplicant is not installed.  It is required for wireless with wpa.

Code: [Select]
apt-get install wpasupplicant
Title: Setting Up Wifi With Wpa
Post by: Shoryu on May 12, 2008, 05:45:16 pm
thanks
too bad i can't use apt-get install on the Z since i don't have network working   .
but i tried to download the different packages manually:
wpasupplicant_0.6.3-1_armel.deb  

it has dependencies like:
libpcsclite1_1.4.101-2_armel.deb

and using dpkg -i with this package gave me the errors : unexpected end of file in version number, or  : is not a debian format archive

don't know if the dpkg is broken or libpcsclite1_1.4.101-2_armel.deb is corrupted on every mirror i tried   or there is a problem with my SD card especially with this file  

 i also need the prism1 driver for this rootfs ...

but i've lost too much time on this (searching info and appropriate packages....) as am i not an expert, so
good luck to everyone who is still trying to make wpa work with zdevil rootfs + younggun kernel.  
bye
Title: Setting Up Wifi With Wpa
Post by: JohnX on May 13, 2008, 04:52:29 am
If you dual boot, just chroot into your debian install from pdaxrom or angstrom, and apt-get install whatever you need.
For wpa I use the following setup in /etc/network/interfaces:

auto wlan0
iface wlan0 inet dhcp
        wpa-ssid My-network
        wpa-psk my-long-psk-for-my-network
Title: Setting Up Wifi With Wpa
Post by: mikeones on May 13, 2008, 01:29:44 pm
Here is the list of required packages for etch.

http://packages.debian.org/etch/wpasupplicant (http://packages.debian.org/etch/wpasupplicant)