Page 1 of 7 123 ... LastLast
Results 1 to 10 of 64

Thread: HOW TO: Zydas ZD1211 wireless with WPA

  1. #1
    Join Date
    Apr 2005
    Location
    Sussex, UK
    Beans
    277
    Distro
    Ubuntu 12.04 Precise Pangolin
    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
    The following may not be essential, but it's worth doing to ensure better success with other programs.
    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
    Unpack the linux source and create a standard symbolic link
    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
    Create standard symbolic link for the linux headers.
    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
    Make sure that the lines
    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
    Copy the resulting zd1211.ko to /lib/modules/...../net

    Install the module
    Code:
    sudo modprobe -v zd1211
    Attatch the dongle, dmesg should show the following
    Code:
    [4294699.485000]  _____     ____    _    ____
    [4294699.485000] |__  /   _|  _ \  / \  / ___|
    [4294699.485000]   / / | | | | | |/ _ \ \___ \
    [4294699.485000]  / /| |_| | |_| / ___ \ ___) |
    [4294699.485000] /____\__, |____/_/   \_\____/
    [4294699.485000]      |___/
    [4294699.485000] zd1211 - version 2.0.0.0
    Note the version number and format may change. What you don't want are any sort of error messages as this indicates something is wrong.


    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
    will give a list of all network connections.
    Code:
     iwconfig
    will give a similar list for all wireless connections. You should see something like this:
    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
    will search out the wireless networks available. If you can see your network here then the module is working.

    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
    Set up /etc/wpa_supplicant.conf, changing the values in italics
    Code:
    network={
            ssid="network id"
            scan_ssid=1
            pairwise=TKIP
            psk="encryption key"
            key_mgmt=WPA-PSK
            proto=WPA
    }
    Connect your dongle and type the following to activate the wireless network
    Code:
    sudo ifconfig eth0 down
    to shut down your ethernet connection
    Code:
    sudo ifconfig wlan0 up
    to start your wireless connection
    Code:
    cd /usr/src/wpasupplicant
    	sudo ./wpa_supplicant -Bw -i wlan0 -c /etc/wpa_supplicant.conf -D zydas
    After a few moments, use ifconfig to see if you have connected to your access point. If not, check dmesg and the system logs for error messages.

    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
    To restart your network:
    Code:
     sudo /etc/init.d/networking restart
    and hopefully wpa should now be working..........

    Hope this helps
    Last edited by shof2k; February 8th, 2006 at 09:31 PM. Reason: General improvements. I've also included the version of each package that I used.
    The Free Software war is won, all else is now maneuvering
    http://brainstorm.ubuntu.com/idea/27361/image/1/

  2. #2
    Join Date
    Dec 2005
    Beans
    8
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    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. #3
    Join Date
    Apr 2005
    Location
    Sussex, UK
    Beans
    277
    Distro
    Ubuntu 12.04 Precise Pangolin

    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
    http://brainstorm.ubuntu.com/idea/27361/image/1/

  4. #4
    Join Date
    Dec 2005
    Beans
    8
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOW TO: Zydas ZD1211 wireless with WPA

    i followed the prerequisites and downloaded all the stuff...

    i'm trying to start again from scratch... my kernel is 2.6.12-10-386

    the lib/modules/2.6.12-10-386 is not where it should be....

    thanx

  5. #5
    Join Date
    Apr 2005
    Location
    Sussex, UK
    Beans
    277
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO: Zydas ZD1211 wireless with WPA

    mmm i'm afraid I don't know why that folder hasn't been created. You could try creating it and then copying the module into there.

    Let me know how you get on, this is my first HOW TO and I'd like to know that I've helped someone
    The Free Software war is won, all else is now maneuvering
    http://brainstorm.ubuntu.com/idea/27361/image/1/

  6. #6
    Join Date
    Dec 2005
    Beans
    8
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOW TO: Zydas ZD1211 wireless with WPA

    mmmmh i dunno if it's so simple... i mean if during the compiling of the module u need folders or source libraries they have to be in certain locations.... maybe u downloaded source kernel before making this HOWTO or stuff like that....

  7. #7
    Join Date
    Dec 2005
    Beans
    2

    Re: HOW TO: Zydas ZD1211 wireless with WPA

    Hi

    I followed this guide, and it worked allmost...

    When I execute the code:

    ./wpa_supplicant -Bw -i wlan0 -c /etc/wpa_supplicant.conf -D zydas

    It takes my wlan0 down, for some reason. I checked dmesg output and it tells the following:

    wlan0: no IPv6 routers present

    Do you have any suggestions/tip?

  8. #8
    Join Date
    Apr 2005
    Location
    Sussex, UK
    Beans
    277
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO: Zydas ZD1211 wireless with WPA

    You need to disable IPv6 from your ubuntu set up. This won't cause you any serious problems as the world is still running on IPv4.

    1) Go to System-Administration-Networking and delete anything that mentions IPv6.
    2) Open a terminal and type "sudo gedit /etc/network/interfaces" and put a # sign in front of any line that mentions ipv6.
    3) Follow this link http://ubuntuforums.org/archive/index.php/t-87798.html to get a speed boost in firefox.

    Hope that helps,
    The Free Software war is won, all else is now maneuvering
    http://brainstorm.ubuntu.com/idea/27361/image/1/

  9. #9
    Join Date
    Dec 2005
    Beans
    3
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOW TO: Zydas ZD1211 wireless with WPA

    Hi,
    I've followed your HOW TO and successfully compiled the zd1211 driver for my Yakumo QuickWlan. With WEP it's working.
    But I can't make wpa_supplicant. I've downloaded openssl and made a symbolic link with that line:

    ln -s /usr/src/openssl-0.9.8a/include/ /usr/src/lnx_wpa_supplicant_1_2_0_0/

    but when i try to make the supplicant I'm getting the following:
    Code:
    root@BruceLee:/usr/src/lnx_wpa_supplicant_1_2_0_0# make
    cc -MMD -O2 -Wall -g -I../driver/modules -I../utils -I../zdsta/src  -DCONFIG_DRIVER_WEXT -DCONFIG_DRIVER_ZYDAS -DEAP_TLS -DEAP_PEAP -DEAP_MD5 -DEAP_MSCHAPv2 -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_WIRELESS_EXTENSION   -c -o config.o config.c
    In Datei, eingefügt von config.c:23:
    sha1.h:6:25: Fehler: openssl/sha.h: Datei oder Verzeichnis nicht gefunden
    In Datei, eingefügt von config.c:26:
    eap.h:5:25: Fehler: openssl/ssl.h: Datei oder Verzeichnis nicht gefunden
    eap.h:6:25: Fehler: openssl/err.h: Datei oder Verzeichnis nicht gefunden
    In file included from config.c:26:
    eap.h:107: Fehler: syntax error before »SSL_CTX«
    eap.h:107: Warnung: kein Semikolon am Ende von »struct« oder »union«
    config.c: In Funktion »wpa_config_parse_string«:
    config.c:92: Warnung: Zeigerziele bei Übergabe des Arguments 2 von »hexstr2bin« unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_ssid«:
    config.c:105: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_psk«:
    config.c:171: Warnung: Zeigerziele bei Übergabe des Arguments 3 von »wpa_hexdump_ascii« unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_eap«:
    config.c:480: Warnung: Zeigerziele bei Übergabe des Arguments 3 von »wpa_hexdump« unterscheiden sich im Vorzeichenbesitz
    config.c:481: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_identity«:
    config.c:490: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_anonymous_identity«:
    config.c:507: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_password«:
    config.c:523: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_ca_cert«:
    config.c:540: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_client_cert«:
    config.c:556: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_private_key«:
    config.c:572: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_private_key_passwd«:
    config.c:588: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_ca_cert2«:
    config.c:605: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_client_cert2«:
    config.c:621: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_private_key2«:
    config.c:637: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_parse_private_key2_passwd«:
    config.c:653: Warnung: Zeigerziele in Zuweisung unterscheiden sich im Vorzeichenbesitz
    config.c: In Funktion »wpa_config_read_network«:
    config.c:930: Warnung: Zeigerziele bei Übergabe des Arguments 2 von »pbkdf2_sha1« unterscheiden sich im Vorzeichenbesitz
    make: *** [config.o] Fehler 1
    root@BruceLee:/usr/src/lnx_wpa_supplicant_1_2_0_0#
    Does anyone know why make doesn't find those files?
    thx bandan

  10. #10
    Join Date
    Apr 2005
    Location
    Sussex, UK
    Beans
    277
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOW TO: Zydas ZD1211 wireless with WPA

    Hi

    My German is rusty but you appear to be missing files ssl.h and err.h. Navigate to /usr/src/wpa..../openssl and see if the files exist as it may be your archive or link is corrupt.

    Hope that helps
    The Free Software war is won, all else is now maneuvering
    http://brainstorm.ubuntu.com/idea/27361/image/1/

Page 1 of 7 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •