LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2006, 11:51 AM   #1
stairwayoflight
Member
 
Registered: Apr 2006
Posts: 59

Rep: Reputation: 15
usb wifi driver src (kern module ?) zd1211, ubuntu 5.10, athxp, kernel 2.6.12-9-386


Hi,

I have looked for infos on this but forgive me, I'm not really good at finding stuff in the forums if its there.

I have setup a home network with 1 xp and 1 ubuntu machine sharing an internet connection through a wireless router. I'm trying to install the linux wifi driver that came with my device:

blanc mini wireless usb adapter BW-54U11

ubuntu doensn't have a packaged driver, and all the hardware docs I found for compatible devices don't list this one. The chipset is zd1211 (I'm not sure if that handles the usb too, or just the wifi side, therefore don't know if other "zd1211" drivers may work). I have an athlon xp cpu, and am running kernel 2.6.12-9-386.

My first question might seem stupid, but here goes. My linux system has gone from hobby to production, that is I recognized my higher power and have been free from my xp partition for 2 weeks now. I can't afford to break it, or end up with crap all over my hard drive I am not using.. so before I try and install this driver again, I need to be sure I can completely reverse the whole operation. (If you were ever taught about "justification" in sunday school, its "just-as-if-I'd-never-sinned"!)

In certain ways I have learned things about linux, other things I have never figured out and I'm not getting it :-(

Here is the README that came with the driver. If anyone is confident that I can restore my system to a previous state, I'll do that and then try to install and post the output. One thing is it says it works for 2.6.6 and 2.6.7 kernels.. can I get that for unbuntu?

Code:
ZD1211 - linux driver for ZyDAS ZD1211 based usb 2.0 wlan adapters

------------------------------------------------------------------



Reqirements:

------------



- Kernel 2.4.x. I am developing the driver on 2.4.24, but it

  reportedly also works on 2.4.x. If your kernels version is less than

  2.4.22 (for example Red Hat 9.0 is 2.4.20-8), suggest to upgrade kernel 

  for better support on USB 2.0. 

  

- Kernel 2.6.x. This driver has been verify on 2.6.6 and 2.6.7.



- To build zd1211 you will need: Configured kernel source code for the 

  kernel you are running. Ideally, Configured means that you have at 

  least run 'make config', 'make menuconfig', or 'make xconfig'. If your

  platform is not SMP system, please don't config SMP supported, because

  when module loaded, this will make unresolved symbol..

     

- Make sure your kernel usb 2.0 support is running

  - Use lsmod to check "ehci-hcd" module is loaded.

  - If host is not support usb 2.0, zd1211 will run under pure-b mode.





Building zd1211:

------------



1)  untar the package using the command:

    tar zxvf zd1211-XXXX.tar.gz



2)  edit the Makefile to make sure the path of KERNEL_SOURCE is your

    are running, and the kernel version is correctly configure.

	

3)  Under zd1211-XXXX/zdsta directory, use "make clean", "make", "make install"

    to make and install driver.	





Running:

--------



- If you have hotplug installed, the drivers should now be loaded. If not,

  load them by hand: modprobe -v zd1211 

  (or Under zd1211-XXXX/zdsta directory use "insmod zd1211.o" for kernel 2.4.x, 

  "insmod zd1211.ko" for kernel 2.6.x)



- Check if the modules are loaded with lsmod. It should look like this:

  ...

  zd1211          183576   0  (unused)

  ...



- Run 'ifconfig <iface> <your IP address>'



- Run 'iwconfig <iface> ' to configure the wireless setting, here are 

  some examples, more detail information please check with 'man iwconfig'.

  Example:

  iwconfig <iface> essid "My Network"   //Set essid

  iwconfig <iface> channel 1            //Set channel

  iwconfig <iface> mode Managed (Station mode)	//Set operation mode

  iwconfig <iface> mode Ad-Hoc (Ah-Hoc mode)

  iwconfig <iface> rts 512             //Set rts threshold

  iwconfig <iface> frag 512            //Set fragment threshold

  iwconfig <iface> key s:password [2]  //Set encryption key

  iwconfig <iface> power on/off        //Set power-save mode

  ......





Private Parameters:

------------------



In addition to the parameters of iwconfig, some can be set by iwpriv:

- open system authentication: iwpriv <iface> set_auth 0

- shared key authentication:  iwpriv <iface> set_auth 1

Be aware that shared key authentication requires a WEP key.



- long preamble: iwpriv <iface> set_preamble 0

- short preamble: iwpriv <iface> set_preamble 1

- iwpriv <iface> get_preamble	//will display the current preamble type



- List current BSS information:iwpriv <iface> list_bss

  You can use "dmesg" to check the result.







Note:

----



- You can modify the script file "sta" to enable Station function.

  "sta en" Enable STA function

  "sta dis" Disable STA function

- I have tested the driver under Red-Hat 9.0, It's unstable than kernel 2.4.24.

  So please update the kernel.







Version:

--------

-4715

 -Support kernel 2.6.x

 -Fixed bug: DHCP will hard to get IP problem.

 -Support iwpriv command

 	iwpriv <iface> set_mac_mode	 mac_mode	//1: Mixed Mode 

 											//2: Pure G Mode

 											//3: Pure B Mode 

		 

 	iwpriv <iface> get_mac_mode				//display current Mac Mode

 

-4630

 -Fixed Ad-Hoc mode can't work problem.

 -Support Roamming.

 -Support iwlist <iface> scan(ning) command.

 -Support iwpriv command

 	iwpriv <iface> connect cell_number	//the cell_number can be get 

 										//from the result of 

 										//iwlist <iface> scan(ning) command

 										 

 	iwpriv <iface> dbg_flag				//set debug level, default is 0



 -Fiexd Chairot multicast can't work problem.	

 -Fixed Ack timeout problem. 

 

 

-4621

 -First release version.

 -WPA, 802.1X with dynamic key exchange are not supported.

 -Watchdog function was not fully implementated.

 -Apdbg.c provides basic debug command for driver development.

 -Airoha RF chip is not verified.

 -Support basic wireless extension setting.

 -Fixed	iwconfig will show wrong essid information.

 -Roaming is not fully verified.

 	





Known Bugs:

-----------
 
Old 04-13-2006, 02:37 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 47
The zd1211 driver works , at least for me. Did you get the latest file from sourceforge? Look here: http://zd1211.ath.cx/download/

Versions later than r59 IIRC work with the current kernels. As the readme states you just unpack the file (with the command it gives) then, with root permission, run make followed by make install. It creates a kernel driver called zd1211.ko. And if you need to remove it you can run make uninstall from the driver source directory, or delete that one file from your kernel modules directory.
 
Old 04-13-2006, 03:43 PM   #3
stairwayoflight
Member
 
Registered: Apr 2006
Posts: 59

Original Poster
Rep: Reputation: 15
okay, so you said, untar it with the command from the readme??

i went to the url you posted and downloaded
zd1211-driver-r69.tgz

there was no readme with this file, just the "copying" gpl thingy. i assume you meant the extraction command from the file i listed in my original post? well i preserved the syntax and changed the name/path appropriately i thought, but it didn't work so i double clicked on it in gnome and "archive manager" opened it and i clicked "extract." i hope this is the same thing?


Code:
timothy@fishybreakfast:~$ ls
cdrom         churchplant  dirlist  songbookpc.htm
cdrom backup  Desktop      music    Unsaved Document 1
timothy@fishybreakfast:~$ cd Desktop
timothy@fishybreakfast:~/Desktop$ ls
zd1211-driver-r69.tgz
timothy@fishybreakfast:~/Desktop$ tar zxvf zd1211-XXXX.tar.gz
tar: zd1211-XXXX.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
timothy@fishybreakfast:~/Desktop$
timothy@fishybreakfast:~/Desktop$
timothy@fishybreakfast:~/Desktop$
timothy@fishybreakfast:~/Desktop$ tar zxvf zd1211-driver-r69.tar.gz
tar: zd1211-driver-r69.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
timothy@fishybreakfast:~/Desktop$ tar -zxvf zd1211-driver-r69.tar.gz
tar: zd1211-driver-r69.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
timothy@fishybreakfast:~/Desktop$ tar zxvf ./zd1211-driver-r69.tar.gz
tar: ./zd1211-driver-r69.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
timothy@fishybreakfast:~/Desktop$ tar zxvf ./zd1211-driver-r69.gz
tar: ./zd1211-driver-r69.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
timothy@fishybreakfast:~/Desktop$ tar zxvf zd1211-driver-r69.gz
tar: zd1211-driver-r69.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
i have ubuntu and don't need root really, so i tried
Code:
timothy@fishybreakfast:~/Desktop$ ls
zd1211-driver-r69  zd1211-driver-r69.tgz
timothy@fishybreakfast:~/Desktop$ cd z*
timothy@fishybreakfast:~/Desktop/zd1211-driver-r69$ ls
apdbg.c  copying  Makefile  src  sta
timothy@fishybreakfast:~/Desktop/zd1211-driver-r69$ sudo make
Password:
sudo: make: command not found
that didn't work, am i doing something wrong?

btw, the first time i attempted the install (not this file, the driver on the cd) make executed, but exited with some errors i forget what. should i have run it as root? i really would rather use sudo than root if i can because i don't know what crap i'm doing half the time.

also, since the 1st install i have reinstalled ubuntu, and the installer gave me my kernel. i'll have to get the kernel sources and run make menuconfg i think right? the pkg's i used before were called
linux-headers
linux-image
linux-kernel
i think, all from a specific version (ie. 2.6.10-k7 or whatever, but they matched). i don't know if i need all these or what.

(thanks for all the help!!)

Last edited by stairwayoflight; 04-13-2006 at 03:48 PM.
 
Old 04-13-2006, 04:34 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 47
Ah, I should've noticed the difference earlier. The extraction command is

tar -zxvf zd1211-driver-r69.tgz

If you have sudo configured so that you can use make and make install that's fine. Alternatively you can use su, enter root's password, run the commands then exit back to your user.

You do need kernel headers to compile just about any drivers.
 
Old 04-13-2006, 05:48 PM   #5
stairwayoflight
Member
 
Registered: Apr 2006
Posts: 59

Original Poster
Rep: Reputation: 15
i have gcc-base-3.3 package installed, is that okay?

should i install gcc 3.4 or 4.0, i see some instructions for something else saying to install 3.4 should i do that? or should i install gcc 3.3 because i have gcc-base-3.3 ?

then i have to decide what kernel for my athlon xp, 386 is working okay, 686 and k7 have worked for me too. but for the arch i select (386/686/k7/etc) i have get what?

in synaptic (ubuntu remember) i can get a package for the "linux kernel image," one for "linux kernel headers," a "complete linux kernel," and "non-free" or "restricted" modules. as well there is a "linux tree" for source?

please help me understand what to choose, i read howtos about enabling 3d, etc., and they all say do this make that put 'blahblah' in /idjf/ignd/ijdfijdf.cfg and that may work but i am often left wondering WHY those choices are necessary..

..even if you could help me with this then point to a few docs that will tell me why these choices are good (ie gcc 3.4 or 4.0 etc.)?

thanks so much for the help
 
Old 04-13-2006, 06:59 PM   #6
stairwayoflight
Member
 
Registered: Apr 2006
Posts: 59

Original Poster
Rep: Reputation: 15
doh!

okay, if any zd1211 driver info will work for me, then i will do the howto for that, there's one for my distro and version. i just thought if my hardware had the zd1211 chip, i had no idea if that was all the driver was for or could the hardware have other chips etc.

thanks for the help!

Last edited by stairwayoflight; 04-13-2006 at 07:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ZD1201 USB WiFi in Ubuntu macromill2002 Linux - Hardware 1 01-16-2006 06:34 PM
sysklogd fails possibly kern.log after upgrading to 686 kernel in ubuntu towsonu2003 Linux - Newbie 0 10-30-2005 10:35 PM
getting ubuntu 5.04 kernel src + .config towsonu2003 Ubuntu 3 10-18-2005 05:24 PM
how do I make a driver for a wifi usb dongle lightningcount Linux - Newbie 1 04-04-2004 03:11 PM
atmel usb wifi driver problem? lucastic Linux - Wireless Networking 5 03-29-2004 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration