Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Belkin USB wireless G adapter - zd1201 module
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 9:06 am    Post subject: Belkin USB wireless G adapter - zd1201 module Reply with quote

Hi there,

I am 100% sure that my USB adapter uses the zd12xx chipset to begin with...

I have compiled the zd1201 module and have then loaded it by doing modprobe zd1201

I then plug in my USB network adapter and it doesn't identify it as the zd1201; it just says:

Code:
New high speed USB device using ehci_hcd and address 3
configuration 1 chosen from 1 choice.


I have already emerged the zd1201-firmware.

I'm stuck! Help!! :-)

Offie.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 1:07 pm    Post subject: Reply with quote

offie,

If its zd1201, thats a change. I've had a few of these devices and they have all been rt73.
Tell us the Vendor and Device ID from lsusb or /proc/bus/usb/devices so we can check it out.

If you discover it is rt73 , then this post provides some guidanace
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 1:13 pm    Post subject: Reply with quote

I'm confused...

In windows and on the driver disc, it says ZD1201 but when I do lsusb I get "Belkin Components" just like in the post you've linked to me, so I'm presuming I do indeed have a rt73 as opposed to the zd.

Thanks!

O. x
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 1:34 pm    Post subject: Reply with quote

offie,

We need the numbers ... if the windows driver says ZD1201 then Belkin have probably changed the chip and you need the ZD1201driver.
My device shows
Code:
Bus 003 Device 009: ID 050d:705a Belkin Components
but what is your ID ?
Code:
ID 050d:705a

The 050d means Belkin, the 705a part will tell us the chip you have.

Its probably not rt73 though
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 1:47 pm    Post subject: Reply with quote

Code:
ID 050d:705c Belkin Components
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 2:20 pm    Post subject: Reply with quote

offie,

Thats a version 4000 device you have there and it is ZD1201 based. Mine were ver 2000/3000 devices.
What kernel do you have?
The module for ZD1201 is in later kernels ?

To see if its in your current kernel, try
Code:
zgrep ZD1201 /proc/config.gz
The response
Code:
# CONFIG_USB_ZD1201 is not set
, means the option is disabled. IF there is no respose, its either not in your kernel at all or the section its in is off.
Knowing your kernel version would help here. uname -a will tell that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 2:42 pm    Post subject: Reply with quote

Hey there

ok I have done a zgrep and it came back:

Code:
#CONFIG_USB_ZD1201 is not set


So i have set it to m in the menuconfig and compiled it all etc...

and heres the output of the uname -a:

Code:
2.6.22-gentoo-r5
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 3:02 pm    Post subject: Reply with quote

offie,

Yes, you will also need the higher level wireless options in my rt73 link, they are needed for all wireless cards.

There is a short cut you may be able to take advantage of in building your kernel.
Go into make menuconfig.
Providing you only change setting from < > (off) to <M> (Module) you only need the following steps
Code:
make modules
make modules_install

When you change a setting using a <*> (built in) you need to do the full process.
Adding modules does not need a reboot.

With the code built, plug in your device and look in dmesg for errors.
If all is well, you can use iwconfig and ifconfig to set it up manually.
The Gentoo Handbook tells you how to set up your /etc/conf.d/net.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 3:23 pm    Post subject: Reply with quote

Hi there

By the higher level options do you mean stuff like the mac80211 etc options? If so I already have those enabled.

I plugged in my device and modprobed zd1201 and vica versa, but it just carries on saying
Code:
New high speed USB device using ehci_hcd and address 3
configuration 1 chosen from 1 choice.


So... still at square 1. :-(
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 3:56 pm    Post subject: Reply with quote

offie,

Looking at the kernel source code in /usr/src/linux/drivers/net/wireless/zd1201.c , the kernel knows nothing of your device as its USB ID is not in this table
Code:
static struct usb_device_id zd1201_table[] = {
        {USB_DEVICE(0x0586, 0x3400)}, /* Peabird Wireless USB Adapter */
        {USB_DEVICE(0x0ace, 0x1201)}, /* ZyDAS ZD1201 Wireless USB Adapter */
        {USB_DEVICE(0x050d, 0x6051)}, /* Belkin F5D6051 usb  adapter */
        {USB_DEVICE(0x0db0, 0x6823)}, /* MSI UB11B usb  adapter */
        {USB_DEVICE(0x1044, 0x8005)}, /* GIGABYTE GN-WLBZ201 usb adapter */
        {}
};
You fix that with a little kernel hacking. Make a copy of the file, called /usr/src/linux/drivers/net/wireless/zd1201.c.org so you have an undo. Open the file (not the copy) in your text editor, find that block of code and copy the existing Belkin line, so the code reads
Code:
static struct usb_device_id zd1201_table[] = {
        {USB_DEVICE(0x0586, 0x3400)}, /* Peabird Wireless USB Adapter */
        {USB_DEVICE(0x0ace, 0x1201)}, /* ZyDAS ZD1201 Wireless USB Adapter */
        {USB_DEVICE(0x050d, 0x6051)}, /* Belkin F5D6051 usb  adapter */
        {USB_DEVICE(0x050d, 0x6051)}, /* Belkin F5D6051 usb  adapter */
        {USB_DEVICE(0x0db0, 0x6823)}, /* MSI UB11B usb  adapter */
        {USB_DEVICE(0x1044, 0x8005)}, /* GIGABYTE GN-WLBZ201 usb adapter */
        {}
};

Now change one the lines to match your USB ID
Code:
        {USB_DEVICE(0x0ace, 0x1201)}, /* ZyDAS ZD1201 Wireless USB Adapter */
        {USB_DEVICE(0x050d, 0x6051)}, /* Belkin F5D6051 usb  adapter */
        {USB_DEVICE(0x050d, 0x705c)}, /* Belkin F5D6051 usb  adapter */
        {USB_DEVICE(0x0db0, 0x6823)}, /* MSI UB11B usb  adapter */

and fix the comment too, if you wish, thats the
Code:
/* Belkin F5D6051 usb  adapter */
bit.
Save the changes and rebuild and reinstall the module
Code:
make modules
make modules_install
Or do the whole process if its not a module.
unload the old module with modprobe -r <module>
load the new one modprobe <module>
and test.

If it works, file a bug at bugs.gentoo.org so everyone else can share your work. The gentoo kernel devs will pass it upstream to the kernel maintainers and it will be included in a future kernel release. Yon can attach a patch to you bug if you want but as its an add an new device to an existing driver, nobody will mind

My code comes from the 2.6.23-rc6 kernel, yours may not be identical but its the same process.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 7:25 pm    Post subject: Reply with quote

Hey

Okay that seems to have made some headway, however, it is now moaning that:

Code:
Failed to load zd1201.fw file!
Make sure hotplug firmware loader is installed.


It's only said that once and all the other times it identifies it is a zd1201 but it has
Code:

Failed to upload the driver.


Or something around that wording.

Thanks by the way for all the great help so far... so close now!!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 8:16 pm    Post subject: Reply with quote

offie,

You need to put the firmware file into /etc/firmware or /lib/firware either works.

The emerge installs it correctly
Code:
>>> Merging net-wireless/zd1201-firmware-0.14 to /
--- /lib/
--- /lib/firmware/
>>> /lib/firmware/zd1201.fw
>>> /lib/firmware/zd1201-ap.fw
Check its there.

Do you have hotplug support in your kernel?
Check that
Code:
grep HOTPLUG /proc/config.gz
gives
Quote:
CONFIG_HOTPLUG=y
too.

The firmware is only loaded once, each time the device is powered up.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 8:30 pm    Post subject: Reply with quote

grepping gives nothing. what should I do?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 8:42 pm    Post subject: Reply with quote

offie,

Go into make menuconfig, press / and enter HOT - it will tell you where hotpug is and how its set now

It sounds like you have hotplug off, so the firmware does not get loaded.
I have a feeling thats not a modular option too, so you need to redo your kernel
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 8:49 pm    Post subject: Reply with quote

Hotplug is on... I checked and recompiled the kernel enabling PCI hotplugging and the hotplug in the Small system configuration under the general settings tab.

As I have said, it is now saying nothing about hotplug in dmesg, just that it has failed to upload the firmware.

Offie
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 8:56 pm    Post subject: Reply with quote

offie,

See if you can get newer firmware from the web.
Look in /lib/firmware to make sure the *.fw file is there
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 9:04 pm    Post subject: Reply with quote

Yep it's there, and the newest version of firmware was done in 2005.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 9:10 pm    Post subject: Reply with quote

offie,

Does
Code:
emerge hotplug -s
show both items installed?
I'm not sure if they are relevant or not.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 9:14 pm    Post subject: Reply with quote

Hey

No theyre not installed, but they don't seem to need installing seeing as their dates are april and september of 2004. :-S

Offie.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 9:35 pm    Post subject: Reply with quote

offie,

Very possibly - still have them so I suppose they don't get in the way
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 9:40 pm    Post subject: Reply with quote

Well it's still not working! Even with them merged

Code:
zd1201 firmware upload failed: -110
probe of 1-3:1.0 failed with error -110
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 9:51 pm    Post subject: Reply with quote

offie,

Thats a different error now. Is that all that dmesg shows or is there some more context ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 9:55 pm    Post subject: Reply with quote

thats all it says!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Sep 23, 2007 10:56 pm    Post subject: Reply with quote

offie,

Boot Windows and make the device work. reboot into linux without powering off.
The firmware may be retained.

Can you find firmware on the Windows driver CD?
If so try that
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iancognito85
Apprentice
Apprentice


Joined: 31 Dec 2002
Posts: 283
Location: United Kingdom

PostPosted: Sun Sep 23, 2007 11:10 pm    Post subject: Reply with quote

I boot in and out of windows without cutting the power all the time to reply on here and it's done no good.

How do I go about using the driver CD? You mean linux drivers or using a wrapper?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum