Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: USB Wi-Fi dongle US Robotics USR5422

  1. #1
    Join Date
    Sep 2011
    Beans
    19

    Unhappy USB Wi-Fi dongle US Robotics USR5422

    I have an USB Wi-Fi dongle US Robotics USR5422.

    I followed the procedure described here:
    https://help.ubuntu.com/community/Wi...er/Ndiswrapper

    The adapter works for a few seconds, then the system completely freezes and I have to hard reset.

    I tried to compile myself the ndiswrapper-1.56.tar.gz but I get the error:

    Unknown field 'ioctl' specified in initializer


    I tried also to install/compile ndiswrapper dpkg.

    I wire-connected the laptop and updated the system.

    No luck in any cases.

    Note that I ran a live Puppy Linux on an USB stick and the adapter was recognised automatically out of the box.

    Can you help?


    I have an AMD Athlon XP m 2600 laptop, 512 Mega RAM DDR,
    with Lubuntu 11

    Thanks in advance
    Antonio

  2. #2
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,971
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: USB Wi-Fi dongle US Robotics USR5422

    Hi,

    please show:

    Code:
    lsusb
    lsmod
    iwconfig
    rfkill list

  3. #3
    Join Date
    Sep 2011
    Beans
    19

    Re: USB Wi-Fi dongle US Robotics USR5422

    Here is it.

    Code:
    ### I need to remove driver to avoid freezing when plugging the stick:
    
    antonio@paris:~/Desktop$ ndiswrapper -l
    rsc4usb : driver installed
    antonio@paris:~/Desktop$ sudo ndiswrapper -r rsc4usb
    [sudo] password for antonio:
    antonio@paris:~/Desktop$ lsusb
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 0baf:0118 U.S. Robotics U5 802.11g Adapter
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    
    ### Unplug stick and reinstall driver 
    
    antonio@paris:~/Desktop$ sudo ndiswrapper -i ndis/USRob/unzipped_exe/Driver/RSC4USB.inf 
    installing rsc4usb ...
    forcing parameter EnableRadio from 0 to 1
    antonio@paris:~/Desktop$ sudo depmod -a
    antonio@paris:~/Desktop$ sudo modprobe ndiswrapper
    antonio@paris:~/Desktop$ lsmod >lsmod.txt
    
    Module                  Size  Used by
    savage                 35490  1 
    drm                   184164  2 savage
    parport_pc             32111  0 
    ppdev                  12849  0 
    vesafb                 13449  1 
    snd_via82xx            24685  1 
    gameport               15027  1 snd_via82xx
    snd_mpu401_uart        13865  1 snd_via82xx
    snd_via82xx_modem      18305  0 
    snd_ac97_codec        105614  2 snd_via82xx,snd_via82xx_modem
    ac97_bus               12642  1 snd_ac97_codec
    snd_pcm                80042  3 snd_via82xx,snd_via82xx_modem,snd_ac97_codec
    snd_seq_midi           13132  0 
    snd_rawmidi            25269  2 snd_mpu401_uart,snd_seq_midi
    snd_seq_midi_event     14475  1 snd_seq_midi
    joydev                 17322  0 
    snd_seq                51291  2 snd_seq_midi,snd_seq_midi_event
    snd_timer              28659  2 snd_pcm,snd_seq
    i2c_viapro             12969  0 
    via_ircc               26953  0 
    snd_seq_device         14110  3 snd_seq_midi,snd_rawmidi,snd_seq
    snd                    55295  11 snd_via82xx,snd_mpu401_uart,snd_via82xx_modem,snd_ac97_codec,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    irda                  185091  1 via_ircc
    pcmcia                 39671  0 
    psmouse                73312  0 
    serio_raw              12990  0 
    snd_page_alloc         14073  3 snd_via82xx,snd_via82xx_modem,snd_pcm
    yenta_socket           27230  0 
    soundcore              12600  1 snd
    pcmcia_rsrc            18292  1 yenta_socket
    crc_ccitt              12595  1 irda
    pcmcia_core            21505  3 pcmcia,yenta_socket,pcmcia_rsrc
    ndiswrapper           183882  0 
    lp                     13349  0 
    parport                36746  3 parport_pc,ppdev,lp
    cb710_mmc              13380  0 
    firewire_ohci          31504  0 
    via_rhine              27131  0 
    pata_via               13368  2 
    cb710                  13734  1 cb710_mmc
    firewire_core          56138  1 firewire_ohci
    crc_itu_t              12627  1 firewire_core
    
    
    antonio@paris:~/Desktop$ iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    ### Of course there would be wlan0 here with the USB dongle plugged, but just some for moments before freezing. 
    
    antonio@paris:~/Desktop$ rfkill list 
    antonio@paris:~/Desktop$ 
    ### Blank output for rfkill.
    Antonio

  4. #4
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,971
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: USB Wi-Fi dongle US Robotics USR5422

    Which Windows driver do you use? I would recommend Win2000 or XP. Checks:

    Code:
    ndiswrapper -l
    cat /etc/modprobe.d/ndiswrapper.conf
    dmesg | grep ndis

  5. #5
    Join Date
    Sep 2011
    Beans
    19

    Re: USB Wi-Fi dongle US Robotics USR5422

    Code:
    antonio@paris:~/Desktop$ ndiswrapper -l
    rsc4usb : driver installed
    antonio@paris:~/Desktop$ cat /etc/modprobe.d/ndiswrapper.conf 
    alias usb:v0BAFp0118d*dc*dsc*dp*ic*isc*ip* ndiswrapper
    antonio@paris:~/Desktop$ dmesg | grep ndis
    [   15.154872] ndiswrapper version 1.56 loaded (smp=yes, preempt=no)
    [   15.265536] usbcore: registered new interface driver ndiswrapper
    antonio@paris:~/Desktop$

    The driver and the .inf are unique. I see that inside there are sections for XP:

    Code:
    [PRISM_A021_XP]    ; Winxp
     AddReg         = PRISM_A021.reg, COMMON_A02.reg, COMMON_NDIS.reg.NT, COMMON.reg
     CopyFiles      = PRISM_DRIVER.copy.XP, PRISM_CCU.copy
     BusType        = 0
     Characteristics= 0x84
    
    [PRISM_A021_XP.Services]
     AddService= "RSC4_A02", 2, PRISM_DRIVER_A02.Service, PRISM_DRIVER.EventLog
    
    [PRISM_A021_XP.CoInstallers]
     CopyFiles      = PRISM_COINSTALL.copy.NT
     AddReg         = PRISM_COINSTALL.reg.NT 
     
    etc. etc.

  6. #6
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,971
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: USB Wi-Fi dongle US Robotics USR5422

    Kernel 2.6.38 s***s, try this patched ndiswrapper installation:

    http://forum.ubuntuusers.de/post/3080287/

    You have to remove ndisgtk, too, otherwise ndisrapper will be overwritten by that dependecies.

    Uninstallation with all config files via:

    Code:
    sudo modprobe -rf ndiswrapper
    sudo apt-get remove --purge ndiswrapper-common ndiswrapper-utils-1.9 ndisgtk
    sudo rm /etc/modprobe.d/ndiswrapper.conf
    sudo rm -r /etc/ndiswrapper/* 
    sudo depmod -a
    Install the windows driver via terminal.

  7. #7
    Join Date
    Sep 2011
    Beans
    19

    Re: USB Wi-Fi dongle US Robotics USR5422

    When compiling I get the usual 'ioctl' error mentioned in the first post.


    Code:
    antonio@paris:~/Desktop/ndiswrapper-1.56_patch_12$ sudo make 
    make -C driver
    make[1]: Entering directory `/home/antonio/Desktop/ndiswrapper-1.56_patch_12/driver'
    make -C /usr/src/linux-headers-2.6.38-11-generic M=/home/antonio/Desktop/ndiswrapper-1.56_patch_12/driver
    make[2]: Entering directory `/usr/src/linux-headers-2.6.38-11-generic'
      CC [M]  /home/antonio/Desktop/ndiswrapper-1.56_patch_12/driver/loader.o
    /home/antonio/Desktop/ndiswrapper-1.56_patch_12/driver/loader.c:834:2: error: unknown field ‘ioctl’ specified in initializer
    /home/antonio/Desktop/ndiswrapper-1.56_patch_12/driver/loader.c:834:2: warning: initialization from incompatible pointer type
    make[3]: *** [/home/antonio/Desktop/ndiswrapper-1.56_patch_12/driver/loader.o] Error 1
    make[2]: *** [_module_/home/antonio/Desktop/ndiswrapper-1.56_patch_12/driver] Error 2
    make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-11-generic'
    make[1]: *** [modules] Error 2
    make[1]: Leaving directory `/home/antonio/Desktop/ndiswrapper-1.56_patch_12/driver'
    make: *** [all] Error 2
    Sorry it's very late here in Rome as in Berlin... continue tomorrow, thanks for your experienced help

    Antonio

  8. #8
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,971
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: USB Wi-Fi dongle US Robotics USR5422

    Searched for the error messages: You need these patches (both links):

    http://forum.ubuntuusers.de/topic/da.../#post-2802848

  9. #9
    Join Date
    Sep 2011
    Beans
    19

    Re: USB Wi-Fi dongle US Robotics USR5422

    Good afternoon praseodym.

    Before starting I try to sum up my tasks.

    Assuming that:

    Code:
    ~/Desktop/ndiswrapper-1.56-2.6.38.patch
    contains (http://chakra-project.org/bbs/viewtopic.php?pid=28458):)

    Code:
    --- driver/wrapndis.c   (revision 2728)
    +++ driver/wrapndis.c   (revision 2729)
    @@ -13,16 +13,16 @@
      *
      */
    
    +#include <linux/inetdevice.h>
    +#include <linux/ip.h>
    +#include <linux/tcp.h>
    +#include <linux/udp.h>
    +#include <linux/in.h>
     #include "ndis.h"
     #include "iw_ndis.h"
     #include "pnp.h"
     #include "loader.h"
     #include "wrapndis.h"
    -#include <linux/inetdevice.h>
    -#include <linux/ip.h>
    -#include <linux/tcp.h>
    -#include <linux/udp.h>
    -#include <linux/in.h>
     #include "wrapper.h"
    
     /* Functions callable from the NDIS driver */

    The terminal commands should be:

    Code:
    # Remove ndiswrapper 
    ~$ sudo modprobe -rf ndiswrapper
    ~$ sudo apt-get remove --purge ndiswrapper-common ndiswrapper-utils-1.9 ndisgtk
    ~$ sudo rm /etc/modprobe.d/ndiswrapper.conf
    ~$ sudo rm -r /etc/ndiswrapper/* 
    ~$ sudo depmod -a
    
    # Patch ndiswrapper-1.56.tar
    ~$ cd Desktop/
    ~/Desktop$ tar zxvf ndiswrapper-1.56.tar
    ~/Desktop$ cd ndiswrapper-1.56/
    ~/Desktop/ndiswrapper-1.56$ patch -Np0 < ../ndiswrapper-1.56-2.6.38.patch
    
    # Build and install
    ~/Desktop/ndiswrapper-1.56$ make uninstall
    ~/Desktop/ndiswrapper-1.56$ make
    ~/Desktop/ndiswrapper-1.56$ sudo make install
    ~/Desktop/ndiswrapper-1.56$ cd ..
    
    
    # Set ndiswrapper.ko
    ~/Desktop$ cd /lib/modules/misc
    /lib/modules/misc$ sudo cp ndiswrapper.ko ../2.6.38-5-generic/kernel/ubuntu/ndiswrapper/ndiswrapper.ko
    /lib/modules/misc$ sudo depmod-a
    /lib/modules/misc$ sudo modprobe ndiswrapper
    
    
    # Assuming inf-driver is ~/Desktop/ndis/USRob/unzipped_exe/Driver/RSC4USB.inf 
    cd ~/Desktop/
    ~/Desktop$ sudo ndiswrapper -i ndis/USRob/unzipped_exe/Driver/RSC4USB.inf 
    ~/Desktop$ sudo depmod -a
    ~/Desktop$ sudo modprobe ndiswrapper

    This is how I intend things in:
    http://forum.ubuntuusers.de/topic/da.../#post-2802848

    Actually I do not quite understand if "Set ndiswrapper.ko" code goes after or before "Build and install"


    Antonio
    Last edited by Antonjo; September 5th, 2011 at 03:09 PM.

  10. #10
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,971
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: USB Wi-Fi dongle US Robotics USR5422

    Did you apply all patches from both links? After that you should compile and apply ndiswrapper.ko (copy) to your system.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •