Need help to setup my USB wifi interface (zd1211)

Tags:

Hello all!
I'm stuck and can't get my wlan interface to work. Can someone please help me?
Here are the excerpts from my "dmesg","lsusb" and "interfaces" file for more info:

DMESG:
....
usb 4-5: Could not load firmware file zd1211/zd1211_ub. Error number -2
zd1211rw 4-5:1.0: couldn't load firmware. Error number -2
zd1211rw: probe of 4-5:1.0 failed with error -2
usbcore: registered new driver zd1211rw
...

LSUSB:
Bus 004 Device 004: ID 0ace:1211 ZyDAS 802.11b/g USB2 WiFi
Bus 004 Device 002: ID 058f:6387 Alcor Micro Corp.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046d:c501 Logitech, Inc. Cordless Mouse Receiver
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

INTERFACES:
...
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
auto eth1

iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1

iface eth1 inet dhcp
...

As you can see, I've already installed the firmware for the USB Wifi stick and it's connected to a USB hub (frontside of my computer).
Thanx!

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Need help to setup my USB

Did you do it from the Debian packages?

apt-get install zd1211-firmware

If you have, then you need to find out where the driver expects to find the firmware (and what name it expects). Sometimes this is controlled by a startup script in /etc/init.d. Other times it is compiled directly into the driver. If it is compiled into the driver, you can get some idea by:

cd /lib/modules/$(uname -r)/kernel/drivers/net/wireless/zd1211rw

strings zd1211rw.ko | less

Need help tu setup my USB wifi interface connection

Hi pinniped,

thanks for the info. I've checked the firmware I had installed and remembered that I did install it from a .deb package I got from Debian, but I forgot that I had uninstalled it too! Oops!
Anyway, I fixed it with a tarball I found (zd1211-firmware.tar.gz) from the web and now it's Ok.
Here are the extracts for more info:

DMESG:
...
zd1211rw 4-5:1.0: firmware version 4605
zd1211rw 4-5:1.0: zd1211 chip 0ace:1211 v4330 high 00-02-e3 RF2959_RF pa0 g--
zd1211rw 4-5:1.0: eth1
usbcore: registered new driver zd1211rw
...

LSMOD:
...
zd1211rw 38784 0
firmware_class 10048 1 zd1211rw
ieee80211softmac 27072 1 zd1211rw
ieee80211 30664 2 zd1211rw,ieee80211softmac
usbcore 113412 6 zd1211rw,usbhid,usb_storage,ehci_hcd,uhci_hcd
...

The system now can actually find the wifi usb stick but when I restart the network I get this:

su -c "/etc/init.d/networking restart"
Password:
Reconfiguring network interfaces...Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:02:e3:48:88:6d
Sending on LPF/eth1/00:02:e3:48:88:6d
Sending on Socket/fallback
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:02:e3:48:88:6d
Sending on LPF/eth1/00:02:e3:48:88:6d
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.

Should I skip the "dhcp" part in the "interfaces" file and manually set up an IP address??

Need help tu setup my USB wifi interface connection

You need to install wireless-tools and if you use WPA (which you should) then you also need wpasupplicant. Those packages include some information on how to configure. If you want to know where to look for the documentation files, have a look in /var/lib/dpkg/info and look at the .list file for those packages.

The wireless-tools allows you to scan for networks, check signal levels, and set your own ESSID. It also allows you to set WEP stuff, but WEP is a worthless joke.

The wpa supplicant gives you tools to generate a Public Shared Key (PSK) and extensions for processing WPA related stuff in your /etc/network/interfaces file.

Need help tu setup my USB wifi interface connection

Affirmative. I've got "wireless-tools" and "wpasupplicant" installed. But I don't quite understand know to take it from here or what configuration I need to revise.
The USB stick and the MAC address are correct, but I've noticed that the none of the leds on the stick actually light up.
Could you guide me from here??
Thanks.

If you read

If you read /usr/share/doc/wireless-tools/README.Debian you will see examples of entries for /etc/network/interfaces.

Those examples are WEP only. The /usr/share/doc/wpasupplicant directory should have examples for setting up WPA-PSK (the most convenient for home use) and WPA-TKIP (minimum recommended for business).

Need help tu setup my USB wifi interface connection

Hi!

Read it! But no progress made. The wifi router uses WEP (can't change that, sorry, I know WPA is better...).
Anyway, I'm trapped. I've setup the eth1 interface following the examples in the README and nothing...! :-(
Geez! it's times like these when I think how incredibly simple it is to install these USB connections in Windows.

Thank you anyway.

Need help tu setup my USB wifi interface connection

It should just be a matter of setting up /etc/network/interfaces with something like:

auto wlan0 (or whatever name the machine gave to the interface)
iface eth0 inet dhcp
wireless-essid blah
wireless-key s:blahblah (s: means the text is a passphrase - otherwise it's assumed to be a hexadecimal key)
wireless-mode ap (or was that AP?)
wireless-channel 6 (or whatever you use)

Then 'ifup wlan0' should make all the lights blink etc.

Need help tu setup my USB wifi interface connection

you're absolutely right! It SHOULD be only a matter of setting up the interfaces file.. but i've done all the tips you have suggested and still no progress.
I'm surprised because I don't actually see any lights on the USB stick. There seems to be no activity. Don you know what could be the cause??

Need help tu setup my USB wifi interface connection

The only time I can recall when I didn't get lights on a USB wifi gizmo was when the driver I used was an alpha version and didn't actually work...

The last thing I can suggest (aside from build the driver from the source file) is to unload all the drivers, including all the iee80211 ones, then load the ieee80211 modules (_crypt, _crypt_wep, softmac, and plain old ieee80211), then load the driver.

Also have a look in /etc/init.d to see if there's a special startup script for that device. I remember such a startup script for some devices (load firmware etc). If there is such a script, the problem may be that the drivers aren't being loaded via the script (which usually does things in the right order and does other voodoo).

Need help tu setup my USB wifi interface connection

Thanks a lot for these news steps to follow.
I'll try them and post the feedback.
(I'm sorry, I'm not in anyway a linux guru and these complex configurations are out of my knowledge so I appreciate the help)

Need help tu setup my USB wifi interface connection

Sometimes there's just that 1 little item that doesn't just work - and it's extremely annoying. The tradeoff seems to be, you either know the system well enough and fix it yourself or else you don't know the system very well and it's difficult to fix over the internet. I hope you get the thing working.

Need help tu setup my USB wifi interface connection

Yep, that's right! And that's what pi***s me off so much about Linux. Other than that, I'm working with it daily and it's a great OS, but when it comes to hardware configuration, somehow I can't help but thinking Windows is the winner there.
Sorry I haven't posted my results of the advice you gave me, but I haven't found the free time to investigate. I will do it, sure, I appreciate other's tips and it deserves a try. After all, I asked for help didn't I?? haha!
I'll try it tonight and see what I come up with.

Need help tu setup my USB wifi interface connection

Sorry guys, no luck.
I've recompiled the driver (downloaded the latest version) but still no connection.
The curious thing though happened. When i remove the zd1211 module (moprobe -r zd1211) suddenly the light turns on!!!
Too good to be true, since it still won't work.
Here is the extract from my "iwconfig eth1" command:

eth1 802.11g zd1211 ESSID:"MY_SSID"
Mode:Ad-Hoc Frequency:2.462 GHz Cell: 00:03:C9:E6:3B:26
Bit Rate=11 Mb/s
Encryption key:XXXX-XXXX-XX Security mode:open
Link Quality=100/100 Signal level=100/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Do you see anything wrong??

zd1211

Did you blacklist the zd1211rw driver? Then you are supposed to modprobe -r zd1211rw not modprobe -r zd1211. zd1211 is the driver you want. after you modprobe -r zd1211rw than you should modprobe -v zd1211. Than go to networking and configure wlan0 (this is what i calls my wireless card) Then activate it.

zd1211 driver

I think I have the answer to your problem. I have the same wireless chipset, and by following the directions on this how-to in ubuntu solved my problem for both ubuntu and debian on my laptop. https://help.ubuntu.com/community/WifiDocs/Device/
Belkin_F5D7050_ver_4000_%28ZyDas_zd1211b_driver%29?highlight=%28WifiDocs%2FDevice%29
Just follow this step by step, and then go to desktop, administration, and then click on networking to configure you wireless usb and click on activate. hope this solves your problem.

EMO reply

Wow! Thanks a lot. Haven't been able to try it yet, but it looks rather easy to follow. Hope it works. I'll post result in brief.

driver download

I'm sorry I forgot something really important. You have to install the package subversion apt-get install subversion and get the driver from this webpage http://zd1211.wiki.sourceforge.net/VendorBasedDriver. Just follow the other page i gave you, but to get the driver you must follow directions under this webpage.

modprobe

I also would do a modprobe -v zd1211b to make sure both drivers are activated.

modprobe

Hi!

I've followed the steps from the Ubunti web and now I get this at startup (dmesg):

Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning

_____ ____ _ ____
|__ / _| _ \ / \ / ___|
/ / | | | | | |/ _ \ \___ \
/ /| |_| | |_| / ___ \ ___) |
/____\__, |____/_/ \_\____/
|___/
zd1211 - version 2.21.0.0
usbcore: registered new driver zd1211
...
ACPI: PCI Interrupt 0000:00:0d.0[A] -> GSI 16 (level, low) -> IRQ 185
...
ieee80211_crypt: registered algorithm 'WEP'

What do you think? See anything wrong?

driver

It should work. However, i would just try using ubuntu. The zd1211rw driver works right away with feisty without any configuring.

Need help tu setup my USB wifi (zd1211) interface connection

Yes, I hoped it would work too!
The thing is, I'm using Debian and I don't really want to work with Ubuntu just for the USB wifi stick...

Question:
do I have to activate my ethernet eth0 interface too?

I'm not using it nor do I need it. The point of the matter is that I'm trying to connect to the router via wireless, so I don't need the Ethernet interface...

driver

hi

make sure you modprobe -r zd1211rw then modprobe -v zd1211, and modprobe -v zd1211b. You shouldnt have to activated your ethernet eth0. Go to networking(network manager) and start testing it maybe your wireless usb is eth0. Remember you have to click on whatever your network card is called then go to configure, enable this device, type in your network name, type in your net password (if you have one), click either dhcp (try this first just to see if it works), or static ip (type in your address). click ok. click on device you just configured then activate. I pretty sure you know all of this, but i am just making sure. tell me how it works

driver

Got it! I hadn't done all that "modprobe" stuff
(I've already done some playing around with several setups with Network Manager, done some of the things you mention, though not all..)
I'll try it all and post back later on... Thx
Hope it works, I'm starting to lose patience :-(

USB WiFi (zd1211) interface connection not working

Hi again!
Well, good news and bad... Good ones first:
Somehow, after recompiling the driver AGAIN, I have loaded both modules to the kernel (zd1211 and zd1211b) and blacklisted the zd1211rw and, heck! one of the 2 lights has started to blink!!!
This would be a great piece of news but, the downside: it still doesn't receive signal from the router via DHCP.

Anyway, after some doing some tests and manual config with IWCONFIG comm, I finally got the LINK led to stop blinking (it has 2, a LINK led and a ACT led) and stayed on, but still, no connection...

Wow, this is really disappointing, since at boot time, all of the setup I did with IWCONFIG just whoosh! disappears.. and back at one.

Suggestion:
Could it be because my processor is AMD?? is it uncompatible with this driver??...

(note: I use my Winxp partition to connect to Internet and post comments, therefore, it's starting to be a bit boring to reboot and test constantly... I wish I could just use Debian and not Windows for this!)
)

USB WiFi (zd1211) interface connection not working

What iwconfig commands are you using?
What are the settings on your router? (security, channels, etc)

> Could it be because my processor is AMD?? is it uncompatible with this driver??...

Impossible if you compiled the driver. The only possible problem that could come up is if you're using a 64-bit kernel and there are 32/64-bit bugs in the driver.

USB WiFi (zd1211) interface connection not working

I'm just manually configuring the ESSID, rate, key, mode (following the man page as reference) and it works! but when I reboot, all is lost.
I'm not sure about the settings of the router. I'll have to check it out, but what should I be expecting?? I mean, what do I need to check for? Any clues?

(My process. is 32-bit so that's that. One thing less to worry about)

USB WiFi (zd1211) interface connection not working

> I'm just manually configuring the ESSID, rate, key, mode (following the man page as reference) and it works!

Do you mean you get wireless access?

All that stuff can be set up automatically. For loading modules, put their names in /etc/modules in the order you want them to load. (but leave off the '.ko' in the file name, for example ieee80211, not ieee80211.ko). For the interface itself and the iwconfig options you edit the /etc/network/interfaces file. For example, if your wireless gizmo is called 'eth1' then you need an entry like:

auto eth1
iface eth1 inet dhcp
wireless-essid blah
wireless-key s:myWEPkey

See /usr/share/doc/wireless-tools/README.Debian for some examples.

If you use WPA-PSK for authentication to your router, then you need to load wpasupplicant and read its documentation - it is similar to the 'wireless' extentions in the interfaces file.

Nearly there...

Ok guys, I'm back with more feedback
After adding some modules to /etc/modules (for boot sequence), but I still can't get an IP lease via dhcp.
Here is the result from the IWCONFIG command:

# iwconfig eth1
eth1 802.11b/g NIC ESSID:"xxxxxxx"
Mode:Ad-Hoc Frequency=2.462 GHz Cell: xx:xx:xx:xx:xx:xx
Bit Rate:11 Mb/s
Retry:off RTS thr=2432 B Fragment thr:off
Encryption key:****-****-****-****-****-****-** Security mode:open
Power Management:off
Link Quality=96/100 Signal level=86/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:36808
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

I don't really understand what's happening. See, I actually get a MAC address from the Router but when it comes to acquiring an ip address, dhcp just runs out of time attempting to find one!! Any idea on the cause??

Halleluyah!! It seems to work...!! (zd1211)

Hello all

First of all, thank you for spending your time helping me configure my wifi usb stick, I really appreciate it, and I also understand it's very hard to get something to work without from the distance. Thanks again.

Buuut, I have good news! I finally got it working... for a few minutes anyway :-(
Somehow, I connected it to another free usb port and voila!! The connection came up at boot time... wonderful! Trial and error is the way to go sometimes ha??
Not all is good news though. I started to reconfigure some stuff (like the wirelss mode) and now I've ruined it. I get ocassional connections (ip releases via dhcp) but when I try to open a website, no transfers are made... dunno why??¿?¿

Could you give me one last tip please??

Halleluyah!! It seems to work...!! (zd1211)

1. check current configuration:
ifconfig eth1 (or whatever the name is)

2. check name resolution:
host www.google.com

If the results in (1) show that you have a DHCP lease and you can ping the router, but (2) gives you a timeout error, then you need to check if you have IPv6 enabled (disable it).

Need help to setup my USB

Thanks pinniped, but how to I disable Ipv6???

disable ipv6

You can disable ipv6 typing 'nano /etc/modprobe.d/bad_list'. Then paste this into this command 'alias net-pf-10 off'. Don't worry if there is nothing in this file.

Need help to setup my USB

Sorry for the delay. I've been a bit busy...

Thanks again for this last guide on disabling IPv6 EMO.

Thanks to pinniped as well for the help...

disable ipv6

There is a different to disable this I would try I think it is a better way. nano /etc/modprobe.d/aliases. Find the line alias net-pf-10 ipv6 and change to alias net-pf-10 off. Then save and reboot.

disable ipv6

Thanx EMO
sorry for the great delay, but I've been totally occupied on other stuff recently.
I like your method. It seems easy, so I'll take note.

Just remind you (and others who helped me in my post) that I got the WLAN stick working, thanks to you all, and there is no need to turn off ipv6 (or so it seems, since I haven't detected any critial problems in my connection yet)

thank you again!

Syndicate content