Problem: Belkin F5D7050+ndiswrapper 1.0+FC2

Help
Pasi Juppo
2005-01-30
2012-10-06
  • Pasi Juppo

    Pasi Juppo - 2005-01-30

    Hi,

    Hope someone can help me out with this/these (they propably are related to each other) problems:

    1) modprobe ndiswrapper freezes the system
    2) at boot when bringing up the network the system freezes

    Good (?) point is that when I unplug the USB stick booting continues. And if I plug it in immediately I have wlan0 properly set up (usbcore loads ndiswrapper) and my network works fine (ESSID ok, 128bit WEP, IP fetched, routed ok). Funny thing was that I didn't have usbfs working in the beginning (due to change of usbdevfs to usbfs in 2.6.10 kernel) but usbcore still loaded the module properly.

    I've tried to search for help several days now but haven't figured out the problem.

    First of all I'd like to know the basics such as from where the usbcore knows what module to load?

    Second, how to fix the modprobe problem (seems from /var/log/messages that windows driver is unable to detect the device)?

    Third, how to add this usb device to hotplug list so that it automatically loads ndiswrapper when I plug in the stick (I tried adding config to /etc/hotplug/usb.usermap but didn't see any change anywhere). Especially I'm interested how to bind USB device to ndiswrapper (where this binding is made).

    It looks like small problem but don't how to fix this despite all the searching..

    Some info about the system:
    -FC2 (not updated)
    -kernel 2.6.10y + 16k stack patch
    -hotplug enabled
    -wlan related part enabled
    -Belkin F5D7050 802.11g USB WLAN stick (USB2.0)

    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

    TIA!

     
    • Pasi Juppo

      Pasi Juppo - 2005-01-30

      Forgot to mention than when I unplug the stick ndiswrapper gives following info:

      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

       
    • Pasi Juppo

      Pasi Juppo - 2005-01-30

      Some progress:
      -hotplug now works ok (ndiswrapper needed to be copied to /extra dir)

      However, coldplug (at boot) does not work. Proper driver is not linked to device at boot (completely missing) but after first hotplug. Seems that there's configuration flaw somewhere but where? Comes back to question: how does usb bind driver and device togethet.

       
    • Pasi Juppo

      Pasi Juppo - 2005-01-30

      After updating FC2 with up2date I got setback.. hotplug works only once anymore.

       
    • Pasi Juppo

      Pasi Juppo - 2005-02-01

      Doesn't anyone know how to solve this problem?

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks