LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 01-31-2005, 11:42 AM   #1
paju
LQ Newbie
 
Registered: Jan 2005
Posts: 17

Rep: Reputation: 0
Problem: Belkin F5D7050 USB WLAN + FC2 + ndiswrapper


Hi,

I have a problem with USB WLAN (Belkn F5D7050 802.11g) and ndiswrapper: boot and hotplug does not work. Hotpug works partially - once.

At boot system when loopback device is started and wlan0 modprobed the system freezes. Unplugging WLAN stick boot continues. If I plug it in immediately again wlan0 is configured properly and network works fine. I can unplug and plug in the stick once after boot but next time causes ndiswrapper not to load anymore.

/sys/bus/usb/xx/yy shows correct driver after boot and one hotplug but after that the driver is missing.

/lib/modules/2.6.10y/modules.usbmap does not contain information about the USB stick and depmod -a does not create it.

Kernel is patched with 16k patch to avoid problems with windows driver. Kernel is 2.6.10. FC2 has been updated via up2date to the latest available packages and scripts.

One annoying thing was that I managed to get hotplug working by copying ndiswrapper from /lib/modules/<kernel>/misc to /lib/modules/<kernel>/extra but after updating it works only once.

What I haven't figured out yet is how usb.agent (hotplug) knows what driver needs to be loaded when WLAN stick is plugged in. Where exactly this information is stored?

I tried manually adding WLAN stick to modules.usbmap but that caused FATAL error at boot (no filesystem was mounted at that time). Same info has been tested in /etc/hotplug/usb.handmap and usb.usermap without any noticeable effect.

Hope someone can help me out here because I'm out of ideas (after several days of searching).

TIA


Snip of the log (dmesg) at boot if it provides any help (boot where usb stick is plugged, freeze, unplug, continues, stick plugged in again):
...
divert: allocating divert_blk for eth0
eth0: Broadcom 4400 10/100BaseT Ethernet xx:xx:xx:xx:xx:xx
divert: freeing divert_blk for eth0
ip_tables: (C) 2000-2002 Netfilter core team
ndiswrapper version 1.0 loaded (preempt=no,smp=no)
ndiswrapper: driver rt2500usb (BELKIN,07/15/2004, 1.02.00.0000) added
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
usb 1-2: reset high speed USB device using ehci_hcd and address 2
ndiswrapper (usb_reset_port:635): usb_reset_device() = -19
ndiswrapper (NdisFreeSpinLock:904): buggy Windows driver freeing unallocated kspin_lock c9c97b00
ndiswrapper (NdisFreeSpinLock:904): buggy Windows driver freeing unallocated kspin_lock c9c97af8
ndiswrapper (ndiswrapper_add_one_usb_dev:306): Windows driver couldn't initialize the device (C0000001)
ndiswrapper: probe of 1-2:1.0 failed with error -22
usbcore: registered new driver ndiswrapper
usb 1-2: USB disconnect, address 2
usb 1-2: new high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
usb 1-2: reset high speed USB device using ehci_hcd and address 3
ACPI: PCI interrupt 0000:00:02.7[C] -> GSI 15 (level, low) -> IRQ 15
usb 1-2: reset high speed USB device using ehci_hcd and address 3
intel8x0_measure_ac97_clock: measured 49657 usecs
intel8x0: clocking to 48000
lirc_dev: IR Remote Control driver registered, at major 61
divert: allocating divert_blk for wlan0
wlan0: ndiswrapper ethernet device xx:xx:xx:xx:xx:xx using driver rt2500usb
wlan0: encryption modes supported: WEP, WPA with TKIP, WPA with AES/CCMP
ip_tables: (C) 2000-2002 Netfilter core team
lirc_serial: auto-detected active low receiver
lirc_dev: lirc_register_plugin:sample_rate: 0
...

And same from /var/log/messages:

Jan 30 14:31:59 localhost kernel: eth0: Broadcom 4400 10/100BaseT Ethernet xx:xx:xx:xx:xx:xx
Jan 30 14:31:59 localhost kernel: ip_tables: (C) 2000-2002 Netfilter core team
Jan 30 14:31:59 localhost kernel: ndiswrapper version 1.0 loaded (preempt=no,smp=no)
Jan 30 14:31:59 localhost kernel: ndiswrapper: driver rt2500usb (BELKIN,07/15/2004, 1.02.00.0000) added
Jan 30 14:31:59 localhost lirc: lircd startup succeeded
Jan 30 14:31:59 localhost kernel: usb 1-2: reset high speed USB device using ehci_hcd and address 2
Jan 30 14:31:59 localhost lirc: lircmd startup succeeded
Jan 30 14:31:59 localhost kernel: usb 1-2: reset high speed USB device using ehci_hcd and address 2
Jan 30 14:32:00 localhost last message repeated 18 times
Jan 30 14:32:00 localhost kernel: ndiswrapper (usb_reset_port:635): usb_reset_device() = -19
Jan 30 14:32:00 localhost kernel: ndiswrapper (NdisFreeSpinLock:904): buggy Windows driver freeing unallocated kspin_lock c9c97b00
Jan 30 14:32:00 localhost kernel: ndiswrapper (NdisFreeSpinLock:904): buggy Windows driver freeing unallocated kspin_lock c9c97af8
Jan 30 14:32:00 localhost kernel: ndiswrapper (ndiswrapper_add_one_usb_dev:306): Windows driver couldn't initialize the device (C0000001)
Jan 30 14:32:00 localhost kernel: ndiswrapper: probe of 1-2:1.0 failed with error -22
Jan 30 14:32:00 localhost kernel: usbcore: registered new driver ndiswrapper
Jan 30 14:32:00 localhost kernel: usb 1-2: USB disconnect, address 2
Jan 30 14:32:00 localhost kernel: usb 1-2: new high speed USB device using ehci_hcd and address 3
Jan 30 14:32:00 localhost kernel: usb 1-2: reset high speed USB device using ehci_hcd and address 3
Jan 30 14:32:00 localhost last message repeated 5 times
Jan 30 14:32:00 localhost kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Jan 30 14:32:01 localhost kernel: usb 1-2: reset high speed USB device using ehci_hcd and address 3
Jan 30 14:32:01 localhost last message repeated 13 times
Jan 30 14:32:01 localhost kernel: ACPI: PCI interrupt 0000:00:02.7[C] -> GSI 15 (level, low) -> IRQ 15
Jan 30 14:32:01 localhost kernel: usb 1-2: reset high speed USB device using ehci_hcd and address 3
Jan 30 14:32:01 localhost kernel: intel8x0_measure_ac97_clock: measured 49657 usecs
Jan 30 14:32:01 localhost kernel: intel8x0: clocking to 48000
Jan 30 14:32:01 localhost kernel: lirc_dev: IR Remote Control driver registered, at major 61
Jan 30 14:32:01 localhost kernel: wlan0: ndiswrapper ethernet device xx:xx:xx:xx:xx:xx using driver rt2500usb
Jan 30 14:32:01 localhost kernel: wlan0: encryption modes supported: WEP, WPA with TKIP, WPA with AES/CCMP
Jan 30 14:32:01 localhost kernel: ip_tables: (C) 2000-2002 Netfilter core team
Jan 30 14:32:01 localhost kernel: lirc_serial: auto-detected active low receiver


Following snip from /var/log/messages when stick is unplugged:
kernel: ndiswrapper (usb_reset_port:635): usb_reset_device() = -19
kernel: ndiswrapper (NdisFreeSpinLock:904): buggy Windows driver freeing unallocated kspin_lock c9c97b00
kernel: ndiswrapper (NdisFreeSpinLock:904): buggy Windows driver freeing unallocated kspin_lock c9c97af8
kernel: ndiswrapper (ndiswrapper_add_one_usb_dev:306): Windows driver couldn't initialize the device (C0000001)
kernel: ndiswrapper: probe of 1-2:1.0 failed with error -22
kernel: usb 1-2: USB disconnect, address 13
 
Old 01-31-2005, 01:25 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Moved: This thread is more suitable in Wireless Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-17-2005, 02:44 PM   #3
chabonga
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
I was wondering if you have had any luck with this. I have a linksys WUSB54g and am seeing very similar things. I can boot just fine with the device plugged in, but modprobe ndiswrapper will start a loop along the same lines as:
Code:
usb 1-2: reset high speed USB device using ehci_hcd and address 2
If I modprobe -r ehci_hcd it will break the cycle and once in a while, even bring the device up. The only time that has worked was booting, modprobe -r ehci_hcd, modprobe ndiswrapper and then modprobe ehci_hcd again. This has only worked once or twice, however. The motherboard is an ASUS P4R8L (in a pundit-r) , which I've read has some problems, which may be causing all of this. Anyway just seeing if we can pick up any steam on this.
 
Old 02-17-2005, 02:51 PM   #4
paju
LQ Newbie
 
Registered: Jan 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Unfortunately not. I haven't had time to get into the problem for a while (around two weeks).

I tried DriverLoader also. With it I can boot almost without problem but it does not work propely. Stick tries to fetch IP from server and server even replies to it but for some reason the response does not get through. I've asked help from Linuxant but problem is not solved yet.

The HTPC where I'm planning to use the stick is attached to TV so it's not easy to debug
 
Old 02-17-2005, 03:49 PM   #5
chabonga
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
I think I've found a bit of a pattern, if I go
modprobe -r ehci_hcd
modprobe ndiswrapper
modprobe ehci-hcd
modprobe -r ehci-hcd

The usb port that has my wireless adapter seems to hang around (which it normally will not after ehci is onloaded), even though ehci-hcd is not loaded, and then iwconfig shows my home network just fine. Don't know much more than this, or even why its happening. Just hope it helps get to an end...
 
  


Reply



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
belkin usb wlan adaptor (beatrix) netsurf Linux - Hardware 1 04-02-2006 04:45 AM
WLAN: NetGewar MA111 (usb) and ndiswrapper Heart SUSE / openSUSE 6 02-24-2006 02:36 AM
WLAN Problem Truemobile 1300 WLAN on Debian 3 with NDISWRAPPER FordPrefect Linux - Laptop and Netbook 2 08-08-2005 10:00 AM
Belkin F5D7050 and ndiswrapper: invalid driver! AndyCooll Linux - Wireless Networking 5 07-05-2005 02:33 PM
belkin wlan problem Mr.M@g!C Linux - Hardware 0 03-14-2004 06:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:52 PM.

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
Open Source Consulting | Domain Registration