![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Way Too Much Ubuntu
![]() Join Date: Apr 2005
Location: Sussex, UK
Beans: 253
Ubuntu 9.10 Karmic Koala
|
HOW TO: Zydas ZD1211 wireless with automatic WPA
[Edit] I've included the versions of the packages used and cleared the text up. [/Edit] Aim I hope this helps you set up a WPA encrypted wireless network when using a ZD1211 based wireless card, such as Safecom SWLU-5400 dongle. Thanks to ubuntu user dom for pointing me in the right direction User level Intermediate. This isn't meant to be a simple list of commands to type in to a terminal because networking has too many options for any one script to cover. You may need to tweak some of the commands or files to your own system settings. Pre-requisites You have a 2.6.12-9 kernel. If you managed to get this working on another kernel type, then post your details. You can navigate around the file system using the terminal Can copy / move files using the terminal Can untar packages Can follow bad how to's How To Part 1 - preparation You will need the ZD1211 kernel module and wpa supplicant. Unfortunately, the versions supplied by ubuntu don't work, so we have to remove them first. Using synaptic or using a terminal and typing: Code:
sudo modprobe -r zd1211 Code:
sudo apt-get remove wpasupplicant Code:
sudo apt-get install linux-tree sudo apt-get update sudo apt-get install build-essential sudo apt-get install kernel-package sudo apt-get install gcc sudo apt-get install libncurses5 sudo apt-get install libncurses5-dev sudo apt-get install libqt3-mt-dev sudo apt-get install wireless-tools Code:
cd /usr/src sudo tar --bzip2 -xvf linux-2.6.12.tar.bz2 sudo ln -s /usr/src/linux-2.6.12 /usr/src/linux Code:
sudo ln -s /usr/src/linux-headers-2.6.... /usr/src/linux-headers Download the source to openssl from http://www.openssl.org/source/ and unpackage it /usr/src/openssl. I've used version 0.96m. Download the latest zd1211 driver source from http://zd1211.ath.cx/download and unpackage it to /usr/src/zd1211src. I used version r38. If you're having difficulty compiling these, there is an alternative source archive from http://www.zydas.com.tw/downloads/download-1211.asp. I've never got these to work, but it might help you. Download the latest wpa supplicant source from http://hostap.epitest.fi/wpa_supplicant I used version 0.39. Unpackage it to /usr/src/wpasupplicant. Inside the source folder, create a symbolic link called openssl pointing to /usr/src/openssl/include. Code:
sudo ln -s /usr/src/openssl/include /usr/src/wpasupplicant/openssl Go into the zd1211 source type Code:
sudo gedit Makefile KERN_26=y KERNEL_SOURCE=/usr/src/linux are present. If not comment out the current values and replace with the above. Compile the zd1211 module. Code:
sudo make sudo make install Install the module Code:
sudo modprobe -v zd1211 Code:
[4294699.485000] _____ ____ _ ____ [4294699.485000] |__ / _| _ \ / \ / ___| [4294699.485000] / / | | | | | |/ _ \ \___ \ [4294699.485000] / /| |_| | |_| / ___ \ ___) | [4294699.485000] /____\__, |____/_/ \_\____/ [4294699.485000] |___/ [4294699.485000] zd1211 - version 2.0.0.0 How To Part 2 - Connecting to an open network If your access point is unencrypted, you should now be able to connect to it. You can use the iwconfig wireless tools to specify your accessid etc. If you're having problems connecting, try the following articles: http://www.ubuntuforums.org/showthread.php?t=92142 http://www.ubuntuforums.org/showthread.php?t=86389 To see if your module is active type the following Code:
ifconfig Code:
iwconfig Code:
wlan0 802.11b/g NIC ESSID:"youressid"
Mode:Managed Frequency=2.462 GHz Access Point: your-access-point
Bit Rate:54 Mb/s
Retry:off RTS thr=2432 B Fragment thr:off
Power Management:off
Link Quality=80/92 Signal level=30/154 Noise level=161/154
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:11601 Invalid misc:0 Missed beacon:0
Code:
iwlist scanning How To Part 3 - Connecting to an encrypted network I don't recommend using a wireless network without some sort of encryption. If you want WEP encryption, use the gnome networking tool (system-administration-networking) and specify a WEP key. If you want WPA encryption (stronger than WEP), then compile wpa supplicant. Code:
sudo cp /usr/src/wpasupplicant sudo make Code:
network={
ssid="network id"
scan_ssid=1
pairwise=TKIP
psk="encryption key"
key_mgmt=WPA-PSK
proto=WPA
}
Code:
sudo ifconfig eth0 down Code:
sudo ifconfig wlan0 up Code:
cd /usr/src/wpasupplicant sudo ./wpa_supplicant -Bw -i wlan0 -c /etc/wpa_supplicant.conf -D zydas Once you're happy that you can use the connection, the final step is to automate the process. Backup and edit /etc/network/interfaces and add the following code Code:
pre-up /usr/src/wpasupplicant/wpa_supplicant -Bw -i wlan0 -c/etc/wpa_supplicant.conf -D zydas post-down killall -q wpa_supplicant Code:
sudo /etc/init.d/networking restart Hope this helps
__________________
The Free Software war is won, all else is now maneuvering Last edited by shof2k; February 8th, 2006 at 04:31 PM.. Reason: General improvements. I've also included the version of each package that I used. |
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() |
Re: HOW TO: Zydas ZD1211 wireless with WPA
hi, i followed your instructions but whe i try to compile the module i get this:
horobi@nx9010:/usr/src/zd1211src/zd1211-driver-r39$ sudo make /lib/modules/2.6.12-10-386/build /usr/src/zd1211src/zd1211-driver-r39 -I/usr/src/zd1211src/zd1211-driver-r39/src/include -fomit-frame-pointer -O2 -Wall -Wstrict-prototypes -pipe -DHOST_IF_USB -DAMAC -DGCCK -DOFDM -DHOSTAPD_SUPPORT -DUSE_EP4_SET_REG -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_CODE_MAP=1 -DfWRITE_WORD_REG=1 -DfREAD_MUL_REG=1 -DENHANCE_RX=1 -DZD1211 src/zd1205.o src/zdasocsvc.o src/zdauthreq.o src/zdauthrsp.o src/zdmmrx.o src/zdshared.o src/zdhci.o src/zdglobal.o src/zdencrypt.o src/zdpmfilter.o src/zdpsmon.o src/zdsynch.o src/zdbuf.o src/zd1205_proc.o src/zdhw.o src/zddebug.o src/zdtkipseed.o src/zdmic.o src/zdusb.o src/zd1211.o make -C /lib/modules/2.6.12-10-386/build SUBDIRS=/usr/src/zd1211src/zd1211-driver-r39 modules make: *** /lib/modules/2.6.12-10-386/build: No such file or directory. Stop. make: *** [all] Error 2 horobi@nx9010:/usr/src/zd1211src/zd1211-driver-r39$ can you help? thanx in advance |
|
|
|
|
|
#3 |
|
Way Too Much Ubuntu
![]() Join Date: Apr 2005
Location: Sussex, UK
Beans: 253
Ubuntu 9.10 Karmic Koala
|
Re: HOW TO: Zydas ZD1211 wireless with WPA
make: *** /lib/modules/2.6.12-10-386/build: No such file or directory. Stop
Did you follow the prerequisites and download the stuff at the top? Since it's complaining about not finding this folder, see if you can get to it. Can you also tell me which kernel you are using. Thanks,
__________________
The Free Software war is won, all else is now maneuvering |
|
|
|
|
|
#4 |
|
Way Too Much Ubuntu
![]() Join Date: Apr 2005
Location: Sussex, UK
Beans: 253
Ubuntu 9.10 Karmic Koala
|
Re: HOW TO: Zydas ZD1211 wireless with WPA
Follow up. This doesn't seem to work with the 2.6.12-10 kernel. I've updated the HOW-TO warning of this.
__________________
The Free Software war is won, all else is now maneuvering |
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Feb 2006
Beans: 1
|
Re: HOW TO: Zydas ZD1211 wireless with WPA
I got the excact same problem,
I have followed the howto but still cant get to work. -- bcb@ubuntu:/usr/src/zd1211src$ make /lib/modules/2.6.12-10-powerpc/build /usr/src/zd1211src -I/usr/src/zd1211src/src/include -fomit-frame-pointer -O2 -Wall -Wstrict-prototypes -pipe -DHOST_IF_USB -DAMAC -DGCCK -DOFDM -DHOSTAPD_SUPPORT -DUSE_EP4_SET_REG -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_CODE_MAP=1 -DfWRITE_WORD_REG=1 -DfREAD_MUL_REG=1 -DENHANCE_RX=1 -DZD1211 src/zd1205.o src/zdasocsvc.o src/zdauthreq.o src/zdauthrsp.o src/zdmmrx.o src/zdshared.o src/zdhci.o src/zdglobal.o src/zdencrypt.o src/zdpmfilter.o src/zdpsmon.o src/zdsynch.o src/zdbuf.o src/zd1205_proc.o src/zdhw.o src/zddebug.o src/zdtkipseed.o src/zdmic.o src/zdusb.o src/zd1211.o make -C /lib/modules/2.6.12-10-powerpc/build SUBDIRS=/usr/src/zd1211src modules make: *** /lib/modules/2.6.12-10-powerpc/build: No such file or directory. Stop. make: *** [all] Error 2 bcb@ubuntu:/usr/src/zd1211src$ -- When I try to create the build folder i got this output. -- bcb@ubuntu:/usr/src/zd1211src$ make /lib/modules/2.6.12-10-powerpc/build /usr/src/zd1211src -I/usr/src/zd1211src/src/include -fomit-frame-pointer -O2 -Wall -Wstrict-prototypes -pipe -DHOST_IF_USB -DAMAC -DGCCK -DOFDM -DHOSTAPD_SUPPORT -DUSE_EP4_SET_REG -DDOWNLOADFIRMWARE -DfTX_GAIN_OFDM=0 -DfNEW_CODE_MAP=1 -DfWRITE_WORD_REG=1 -DfREAD_MUL_REG=1 -DENHANCE_RX=1 -DZD1211 src/zd1205.o src/zdasocsvc.o src/zdauthreq.o src/zdauthrsp.o src/zdmmrx.o src/zdshared.o src/zdhci.o src/zdglobal.o src/zdencrypt.o src/zdpmfilter.o src/zdpsmon.o src/zdsynch.o src/zdbuf.o src/zd1205_proc.o src/zdhw.o src/zddebug.o src/zdtkipseed.o src/zdmic.o src/zdusb.o src/zd1211.o make -C /lib/modules/2.6.12-10-powerpc/build SUBDIRS=/usr/src/zd1211src modules make[1]: Entering directory `/lib/modules/2.6.12-10-powerpc/build' make[1]: *** No rule to make target `modules'. Stop. make[1]: Leaving directory `/lib/modules/2.6.12-10-powerpc/build' make: *** [all] Error 2 bcb@ubuntu:/usr/src/zd1211src$ Any ideas? Regards turbulens |
|
|
|
|
|
#6 |
|
Spilled the Beans
![]() Join Date: Jan 2005
Beans: 14
|
Re: HOW TO: Zydas ZD1211 wireless with WPA
Turbulens: I know this isn't "my" HOWTO thread, but I was wondering if I might be able to help.
I remember getting an error something like that before I read this thread more carefully and got both the linux-source package as well as the linux-headers package. They are two different things, and moreover, once you download the linux-source package, you have to make sure to unzip the package with "sudo" to have all the linux kernel source files in the proper place. I am guessing you might have missed one of these steps...? Apologies if I'm off. |
|
|
|
|
|
#7 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2005
Location: Glasgow - UK
Beans: 35
Ubuntu 6.06
|
Re: HOW TO: Zydas ZD1211 wireless with WPA
I have a Sitecom WL-113 USB Adapter, for myself the adapter works out the box at least so I think, I can scan for wireless access points and pick them up but cant connect to my own wireless access point as it uses wpa and the wpa_supplicant useing apt-get dont support my USB adapter.
I have read the one from the Zydas site does, but I have no idea on setting it up I have read a few posts but to be honest my knowlege is limited and I only come up with lots of errors. I have set up a Belkin wireless card useing ndiswrapper and wpa_supplicant, works great. So no big deal but it would be nice to get the USB working all the same. |
|
|
|
|
|
#8 |
|
5 Cups of Ubuntu
![]() Join Date: Dec 2005
Location: Scotland
Beans: 13
Ubuntu 7.04 Feisty Fawn
|
Re: HOW TO: Zydas ZD1211 wireless with WPA
Hi, thanks for the great HOWTO shof2k.
I managed to get my 3com OfficeConnect usb working on 2.6.12-10-386, but I've not gone on to try WPA just yet. As for the /lib/modules error, I had to apt-get the linux-headers specific for my kernel version: Code:
sudo apt-get install linux-headers-2.6.12-10-386 Code:
sudo apt-get install gcc-3.4 Hachi |
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Mar 2006
Beans: 1
|
Re: HOW TO: Zydas ZD1211 wireless with WPA
Great HowTo, thank you. The howto, as well as some other user comments, helped me to get my USB wireless working.
This is my first ever post on a forum, so I apologize in advance for any bad form on my part. Just wanted to describe what worked for me. I did not yet do WPA - I will explore WPA in the future. My system: - Zonet ZEW2501 USB wireless - an old NEC Ready 330T laptop - default Ubuntu Breezy 5.10 installation - kernel 2.6.12-10-386 - talking to a wireless router To get it to work on 2.6.12-10-386, I followed the original HowTo steps, plus Hachi's 2 steps notes (kernel headers were not included in the other installations, and the zd1211 code wanted gcc-3.4 since my default install was 4.0 and this produced many compile errors) sudo apt-get install linux-headers-2.6.12-10-386 sudo apt-get install gcc-3.4 I used the zd1211 driver version: zd1211-driver-r67 change the zd1211 Makefile: CC=gcc-3.4 A few warnings on compile, but it worked fine. For what it's worth, I use a script based on the zd1211 website recommendations to reload and reset the network on return from hibernation - it has worked every time now (thanks to this howto that got me set to quickly compile the newer driver). modprobe -v zd1211 ifconfig wlan0 up iwconfig wlan0 essid myssid /etc/init.d/networking restart dhclient wlan0 Thank you for your work! |
|
|
|
|
|
#10 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2006
Beans: 1
|
Re: HOW TO: Zydas ZD1211 wireless with WPA
Hi, I am completely new to linux, and am trying to use the gigafastwf741-uic usb dongle.
The problem is that I am using a power book g3 "pismo". I think this means some of these instructions are a bit different for me, and I am using linux (and the command line!) for the first time, this is really throwing me for a loop. I just want to be clear on the linking, I have 2 hears folders one end with ppc. I linked to the one without the ppc extension, is this wrong? GreenCountry, it sounds like you are also using the a ppc. Is it possible to download the compiled files from you? The tip to change gcc to gcc-3.4 let me get farther in compiling, but I still got tons of errors, instead of missing errors, I got div by zero among others. I decided to try to load it anyway since I have a main computer ( that I am typing this from) So then the network part of ubuntu took forever to load on start up, and of course it didn't see the dongle. Unfortunately I can't copy the error message(s) for every one to see because I re-installed ubuntu. I could try it again, but I need a break Does this give enough information to tell me what I was doing wrong? I hope so because I really want to use ubuntu/linux, but without wireless... Thanks for any help!! These forums are really cool, I have been learning tons. PS does airport work(out of the box)? I think I can get one for 30 dollars. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|