Results 1 to 10 of 10

Thread: Modprobe ndiswrapper - not found???

  1. #1
    Join Date
    Dec 2005
    Beans
    22

    Modprobe ndiswrapper - not found???

    Noob here.

    I've been lurking here a while to learn about getting my laptop working on my wireless network.
    Finally took the plunge and installed the ndiswrapper common and util packages as outlined in other threads (thanks to KevDog), on my new Hardy install.
    Then I downloaded the Winbloz drivers from the realtek site and got as far as loading them with the ndiswrapper. So when I type ndiswrapper -l, I get back "net8187b : driver installed device (0BDA:8197) present". So far so good.
    But when I try "sudo modprobe ndiswrapper", I get back "FATAL: Module ndiswrapper not found".
    This is stumping me. What do I need to do to fix this?
    Thanks in advance.

  2. #2
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: Modprobe ndiswrapper - not found???

    Quote Originally Posted by bartt View Post
    Noob here.

    I've been lurking here a while to learn about getting my laptop working on my wireless network.
    Finally took the plunge and installed the ndiswrapper common and util packages as outlined in other threads (thanks to KevDog), on my new Hardy install.
    Then I downloaded the Winbloz drivers from the realtek site and got as far as loading them with the ndiswrapper. So when I type ndiswrapper -l, I get back "net8187b : driver installed device (0BDA:8197) present". So far so good.
    But when I try "sudo modprobe ndiswrapper", I get back "FATAL: Module ndiswrapper not found".
    This is stumping me. What do I need to do to fix this?
    Thanks in advance.
    What does ndiswrapper -v say?

  3. #3
    Join Date
    Dec 2005
    Beans
    22

    Re: Modprobe ndiswrapper - not found???

    Hmm.. that's interesting.
    ndiswrapper -v relies with several lines stating that "module version is too old!" and finally " You may need to upgrade driver and/or utils to latest versions avaiable at.. sourceforge"

    I downloaded these files from ubuntu.com from the hardy section. I would think they are the latest ones or at least operational.

  4. #4
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release

    Re: Modprobe ndiswrapper - not found???

    You might want to make sure that you don't have any files with the name ndiswrapper in the directory when you run this check. You might also try:
    Code:
    sudo updatedb
    locate ndiswrapper.ko
    updatedb will update the search database so that locate can see if the file that you are searching is there.

  5. #5
    Join Date
    Dec 2005
    Beans
    22

    Re: Modprobe ndiswrapper - not found???

    Thanks for your help..

    I'm sorry you lost me- "any files with the name ndiswrapper in" which directory?
    As to the rest, I have to wait until I can reconnect this box to my wired network at home..

  6. #6
    Join Date
    Apr 2007
    Location
    Mount Horeb, WI
    Beans
    4,312
    Distro
    Kubuntu Development Release
    Sometimes if there is a file called ndiswrapper in the directory when you type ndiswrapper -v, it can report a false version. For example, in my /home/jayhawk directory, I have a file called ndiswrapper. When I type ndiswrapper -v, I get:
    Code:
    jayhawk@allen-fieldhouse:~$ ndiswrapper -v
    modinfo: could not open ndiswrapper: Invalid argument
    module version is too old!
    utils version: '1.9', utils version needed by module: '0'
    module details:
    modinfo: could not open ndiswrapper: Invalid argument
    
    You may need to upgrade driver and/or utils to latest versions available at
    http://ndiswrapper.sourceforge.net
    However, if I go to my Desktop where I have no files, I get:
    Code:
    jayhawk@allen-fieldhouse:~$ cd Desktop
    jayhawk@allen-fieldhouse:~/Desktop$ ndiswrapper -v
    utils version: '1.9', utils version needed by module: '1.9'
    module details:
    filename:       /lib/modules/2.6.24-16-generic/ubuntu/misc/ndiswrapper/ndiswrapper.ko
    version:        1.52
    vermagic:       2.6.24-16-generic SMP mod_unload
    EDIT:
    By the way, the commands that I have requested do not require an internet connection.

    EDIT 2:
    Unless you want to copy and paste back to the forum...
    Last edited by Ayuthia; May 7th, 2008 at 10:17 PM.

  7. #7
    Join Date
    Dec 2005
    Beans
    22

    Re: Modprobe ndiswrapper - not found???

    OK. I ran the requested commands and a couple of others for a sanity check:

    bart@savantlaptop:~$ ls
    Desktop drivers Music Public Videos
    Documents Examples Pictures Templates wireless_stuff
    bart@savantlaptop:~$ cd Desktop
    bart@savantlaptop:~/Desktop$ ls
    bart@savantlaptop:~/Desktop$ ndiswrapper -l
    net8187b : driver installed
    device (0BDA:8197) present
    bart@savantlaptop:~/Desktop$ ndiswrapper -v
    modinfo: could not find module ndiswrapper
    module version is too old!
    utils version: '1.9', utils version needed by module: '0'
    module details:
    modinfo: could not find module ndiswrapper

    You may need to upgrade driver and/or utils to latest versions available at
    http://ndiswrapper.sourceforge.net
    bart@savantlaptop:~/Desktop$
    bart@savantlaptop:~/Desktop$

    bart@savantlaptop:~/Desktop$ locate ndiswrapper.ko
    /home/bart/wireless_stuff/ndiswrapper-1.52/driver/.ndiswrapper.ko.cmd
    /home/bart/wireless_stuff/ndiswrapper-1.52/driver/ndiswrapper.ko
    bart@savantlaptop:~/Desktop$ ndiswrapper
    install/manage Windows drivers for ndiswrapper

    usage: ndiswrapper OPTION
    -i inffile install driver described by 'inffile'
    -a devid driver use installed 'driver' for 'devid' (dangerous)
    -r driver remove 'driver'
    -l list installed drivers
    -m write configuration for modprobe
    -ma write module alias configuration for all devices
    -mi write module install configuration for all devices
    -v report version information

    where 'devid' is either PCIID or USBID of the form XXXX:XXXX,
    as reported by 'lspci -n' or 'lsusb' for the card
    bart@savantlaptop:~/Desktop$

    ------------------------------------------------------------
    looks to me like there are a couple of ndiswrapper files and the system is confused.
    Do you think it is finding the file in my wireless_stuff dir ?
    Since I did a package install shouldn't it find a file in a bin dir somewhere?

  8. #8
    Join Date
    Dec 2005
    Beans
    22

    Re: Modprobe ndiswrapper - not found???

    So it occured to me that i should download the latest from sourceforge.
    Did that and following the install file I have to build.. So assuming that I have the prerequisite headers etc in place I follow the make instructions and get a whole slew of errors (see below). WTF? Could this be a bigger nose bleed.?

    Is there a simple set of instructions that will help me get thru this. Cummon here, I am a developer and I have to say that if you expect a regular joe to get this, you have another thought coming... Don't get me wrong, I think that ubuntu is the greatest thing since sliced bread, but this sort of rough edge is not conducive to recommending this to the uninitiated.

    bart@savantlaptop:~/Desktop/ndiswrapper-1.52$ sudo make install
    make -C driver install
    make[1]: Entering directory `/home/bart/Desktop/ndiswrapper-1.52/driver'
    make -C /usr/src/linux-headers-2.6.24-16-generic SUBDIRS=/home/bart/Desktop/ndiswrapper-1.52/driver
    make[2]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
    Building modules, stage 2.
    MODPOST 1 modules
    make[2]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
    echo /lib/modules/2.6.24-16-generic/misc
    /lib/modules/2.6.24-16-generic/misc
    mkdir -p /lib/modules/2.6.24-16-generic/misc
    install -m 0644 ndiswrapper.ko /lib/modules/2.6.24-16-generic/misc
    /sbin/depmod -a 2.6.24-16-generic -b /
    make[1]: Leaving directory `/home/bart/Desktop/ndiswrapper-1.52/driver'
    make -C utils install
    make[1]: Entering directory `/home/bart/Desktop/ndiswrapper-1.52/utils'
    gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
    loadndisdriver.c:15:20: error: stdlib.h: No such file or directory
    loadndisdriver.c:16:19: error: stdio.h: No such file or directory
    loadndisdriver.c:17:19: error: errno.h: No such file or directory
    loadndisdriver.c:18:20: error: string.h: No such file or directory
    loadndisdriver.c:19:20: error: libgen.h: No such file or directory
    loadndisdriver.c:21:22: error: sys/mman.h: No such file or directory
    loadndisdriver.c:23:23: error: sys/types.h: No such file or directory
    loadndisdriver.c:24:23: error: sys/ioctl.h: No such file or directory
    loadndisdriver.c:25:22: error: sys/stat.h: No such file or directory
    loadndisdriver.c:26:20: error: unistd.h: No such file or directory
    loadndisdriver.c:27:19: error: fcntl.h: No such file or directory
    In file included from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/syslimits.h:7,
    from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:11,
    from loadndisdriver.c:28:
    /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:122:61: error: limits.h: No such file or directory
    loadndisdriver.c:29:19: error: ctype.h: No such file or directory
    loadndisdriver.c:30:20: error: dirent.h: No such file or directory
    loadndisdriver.c:31:20: error: syslog.h: No such file or directory
    loadndisdriver.c:34:25: error: linux/major.h: No such file or directory
    loadndisdriver.c:35:25: error: linux/ioctl.h: No such file or directory
    In file included from loadndisdriver.c:37:
    ../driver/loader.h:24: error: expected specifier-qualifier-list before ‘size_t’
    loadndisdriver.c: In function ‘load_file’:
    loadndisdriver.c:67: error: ‘size_t’ undeclared (first use in this function)
    loadndisdriver.c:67: error: (Each undeclared identifier is reported only once
    loadndisdriver.c:67: error: for each function it appears in.)
    loadndisdriver.c:67: error: expected ‘;’ before ‘size’
    loadndisdriver.c:68: error: ‘NULL’ undeclared (first use in this function)
    loadndisdriver.c:69: error: storage size of ‘statbuf’ isn’t known
    loadndisdriver.c:71: warning: implicit declaration of function ‘basename’
    loadndisdriver.c:71: warning: initialization makes pointer from integer without a cast
    loadndisdriver.c:73: warning: implicit declaration of function ‘open’
    loadndisdriver.c:73: error: ‘O_RDONLY’ undeclared (first use in this function)
    loadndisdriver.c:75: warning: implicit declaration of function ‘syslog’
    loadndisdriver.c:75: error: ‘LOG_KERN’ undeclared (first use in this function)
    loadndisdriver.c:75: error: ‘LOG_INFO’ undeclared (first use in this function)
    loadndisdriver.c:75: warning: implicit declaration of function ‘strerror’
    loadndisdriver.c:75: error: ‘errno’ undeclared (first use in this function)
    loadndisdriver.c:76: error: ‘EINVAL’ undeclared (first use in this function)
    loadndisdriver.c:79: warning: implicit declaration of function ‘fstat’
    loadndisdriver.c:81: warning: implicit declaration of function ‘close’
    loadndisdriver.c:84: error: ‘size’ undeclared (first use in this function)
    loadndisdriver.c:86: warning: implicit declaration of function ‘mmap’
    loadndisdriver.c:86: error: ‘PROT_READ’ undeclared (first use in this function)
    loadndisdriver.c:86: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
    loadndisdriver.c:86: warning: assignment makes pointer from integer without a cast
    loadndisdriver.c:87: error: ‘MAP_FAILED’ undeclared (first use in this function)
    loadndisdriver.c:93: warning: implicit declaration of function ‘strncpy’
    loadndisdriver.c:93: warning: incompatible implicit declaration of built-in function ‘strncpy’
    loadndisdriver.c:95: error: ‘struct load_driver_file’ has no member named ‘size’
    loadndisdriver.c:96: error: ‘struct load_driver_file’ has no member named ‘data’
    loadndisdriver.c:69: warning: unused variable ‘statbuf’
    loadndisdriver.c: In function ‘parse_setting_line’:
    loadndisdriver.c:109: warning: implicit declaration of function ‘isspace’
    loadndisdriver.c:115: warning: implicit declaration of function ‘strchr’
    loadndisdriver.c:115: warning: incompatible implicit declaration of built-in function ‘strchr’
    loadndisdriver.c:115: error: ‘NULL’ undeclared (first use in this function)
    loadndisdriver.c:117: error: ‘LOG_KERN’ undeclared (first use in this function)
    loadndisdriver.c:117: error: ‘LOG_INFO’ undeclared (first use in this function)
    loadndisdriver.c:118: error: ‘EINVAL’ undeclared (first use in this function)
    loadndisdriver.c:138: warning: implicit declaration of function ‘strlen’
    loadndisdriver.c:138: warning: incompatible implicit declaration of built-in function ‘strlen’
    loadndisdriver.c: In function ‘read_conf_file’:
    loadndisdriver.c:150: error: storage size of ‘statbuf’ isn’t known
    loadndisdriver.c:151: error: ‘FILE’ undeclared (first use in this function)
    loadndisdriver.c:151: error: ‘config’ undeclared (first use in this function)
    loadndisdriver.c:157: warning: implicit declaration of function ‘lstat’
    loadndisdriver.c:158: error: ‘LOG_KERN’ undeclared (first use in this function)
    loadndisdriver.c:158: error: ‘LOG_INFO’ undeclared (first use in this function)
    loadndisdriver.c:158: error: ‘errno’ undeclared (first use in this function)
    loadndisdriver.c:160: error: ‘EINVAL’ undeclared (first use in this function)
    loadndisdriver.c:163: warning: implicit declaration of function ‘sscanf’
    loadndisdriver.c:163: warning: incompatible implicit declaration of built-in function ‘sscanf’
    loadndisdriver.c:178: warning: implicit declaration of function ‘fopen’
    loadndisdriver.c:178: error: ‘NULL’ undeclared (first use in this function)
    loadndisdriver.c:182: warning: implicit declaration of function ‘fgets’
    loadndisdriver.c:194: warning: incompatible implicit declaration of built-in function ‘strncpy’
    loadndisdriver.c:205: warning: implicit declaration of function ‘fclose’
    loadndisdriver.c:150: warning: unused variable ‘statbuf’
    loadndisdriver.c: In function ‘load_bin_file’:
    loadndisdriver.c:217: error: ‘LOG_KERN’ undeclared (first use in this function)
    loadndisdriver.c:217: error: ‘LOG_INFO’ undeclared (first use in this function)
    loadndisdriver.c:219: warning: implicit declaration of function ‘tolower’
    loadndisdriver.c:221: warning: implicit declaration of function ‘chdir’
    loadndisdriver.c:222: error: ‘errno’ undeclared (first use in this function)
    loadndisdriver.c:224: error: ‘EINVAL’ undeclared (first use in this function)
    loadndisdriver.c:230: warning: incompatible implicit declaration of built-in function ‘strncpy’
    loadndisdriver.c:232: warning: implicit declaration of function ‘ioctl’
    loadndisdriver.c:232: warning: implicit declaration of function ‘_IOW’
    loadndisdriver.c:232: error: expected expression before ‘struct’
    loadndisdriver.c: In function ‘load_driver’:
    loadndisdriver.c:249: error: ‘DIR’ undeclared (first use in this function)
    loadndisdriver.c:249: error: ‘driver_dir’ undeclared (first use in this function)
    loadndisdriver.c:251: error: ‘NULL’ undeclared (first use in this function)
    loadndisdriver.c:255: error: ‘LOG_KERN’ undeclared (first use in this function)
    loadndisdriver.c:255: error: ‘LOG_INFO’ undeclared (first use in this function)
    loadndisdriver.c:257: error: ‘errno’ undeclared (first use in this function)
    loadndisdriver.c:259: error: ‘EINVAL’ undeclared (first use in this function)
    loadndisdriver.c:261: warning: implicit declaration of function ‘opendir’
    loadndisdriver.c:267: warning: implicit declaration of function ‘malloc’
    loadndisdriver.c:267: warning: incompatible implicit declaration of built-in function ‘malloc’
    loadndisdriver.c:271: warning: implicit declaration of function ‘memset’
    loadndisdriver.c:271: warning: incompatible implicit declaration of built-in function ‘memset’
    loadndisdriver.c:272: warning: incompatible implicit declaration of built-in function ‘strncpy’
    loadndisdriver.c:280: warning: implicit declaration of function ‘readdir’
    loadndisdriver.c:280: warning: assignment makes pointer from integer without a cast
    loadndisdriver.c:282: error: storage size of ‘statbuf’ isn’t known
    loadndisdriver.c:284: error: dereferencing pointer to incomplete type
    loadndisdriver.c:287: warning: implicit declaration of function ‘stat’
    loadndisdriver.c:287: error: dereferencing pointer to incomplete type
    loadndisdriver.c:288: warning: implicit declaration of function ‘S_ISREG’
    loadndisdriver.c:289: error: dereferencing pointer to incomplete type
    loadndisdriver.c:294: warning: incompatible implicit declaration of built-in function ‘strlen’
    loadndisdriver.c:294: error: dereferencing pointer to incomplete type
    loadndisdriver.c:296: warning: implicit declaration of function ‘strcasecmp’
    loadndisdriver.c:296: error: dereferencing pointer to incomplete type
    loadndisdriver.c:299: error: dereferencing pointer to incomplete type
    loadndisdriver.c:302: error: dereferencing pointer to incomplete type
    loadndisdriver.c:303: error: dereferencing pointer to incomplete type
    loadndisdriver.c:305: error: dereferencing pointer to incomplete type
    loadndisdriver.c:311: error: dereferencing pointer to incomplete type
    loadndisdriver.c:312: error: dereferencing pointer to incomplete type
    loadndisdriver.c:313: warning: implicit declaration of function ‘strcpy’
    loadndisdriver.c:313: warning: incompatible implicit declaration of built-in function ‘strcpy’
    loadndisdriver.c:314: error: dereferencing pointer to incomplete type
    loadndisdriver.c:317: error: ‘struct load_driver_file’ has no member named ‘size’
    loadndisdriver.c:318: error: ‘struct load_driver_file’ has no member named ‘data’
    loadndisdriver.c:321: error: dereferencing pointer to incomplete type
    loadndisdriver.c:282: warning: unused variable ‘statbuf’
    loadndisdriver.c:344: error: expected expression before ‘struct’
    loadndisdriver.c:346: warning: implicit declaration of function ‘closedir’
    loadndisdriver.c:348: warning: implicit declaration of function ‘free’
    loadndisdriver.c:355: warning: implicit declaration of function ‘munmap’
    loadndisdriver.c:355: error: ‘struct load_driver_file’ has no member named ‘data’
    loadndisdriver.c:355: error: ‘struct load_driver_file’ has no member named ‘size’
    loadndisdriver.c:357: error: ‘struct load_driver_file’ has no member named ‘data’
    loadndisdriver.c:357: error: ‘struct load_driver_file’ has no member named ‘size’
    loadndisdriver.c: In function ‘get_device’:
    loadndisdriver.c:367: error: storage size of ‘statbuf’ isn’t known
    loadndisdriver.c:370: error: ‘LOG_KERN’ undeclared (first use in this function)
    loadndisdriver.c:370: error: ‘LOG_INFO’ undeclared (first use in this function)
    loadndisdriver.c:373: error: ‘errno’ undeclared (first use in this function)
    loadndisdriver.c:374: error: ‘EINVAL’ undeclared (first use in this function)
    loadndisdriver.c:376: warning: implicit declaration of function ‘snprintf’
    loadndisdriver.c:376: warning: incompatible implicit declaration of built-in function ‘snprintf’
    loadndisdriver.c:407: warning: incompatible implicit declaration of built-in function ‘strncpy’
    loadndisdriver.c:367: warning: unused variable ‘statbuf’
    loadndisdriver.c: In function ‘load_device’:
    loadndisdriver.c:419: error: ‘DIR’ undeclared (first use in this function)
    loadndisdriver.c:419: error: ‘dir’ undeclared (first use in this function)
    loadndisdriver.c:423: error: ‘LOG_KERN’ undeclared (first use in this function)
    loadndisdriver.c:423: error: ‘LOG_INFO’ undeclared (first use in this function)
    loadndisdriver.c:424: warning: incompatible implicit declaration of built-in function ‘memset’
    loadndisdriver.c:426: error: ‘errno’ undeclared (first use in this function)
    loadndisdriver.c:427: error: ‘EINVAL’ undeclared (first use in this function)
    loadndisdriver.c:429: error: ‘NULL’ undeclared (first use in this function)
    loadndisdriver.c:434: warning: assignment makes pointer from integer without a cast
    loadndisdriver.c:435: error: dereferencing pointer to incomplete type
    loadndisdriver.c:436: error: dereferencing pointer to incomplete type
    loadndisdriver.c:439: error: dereferencing pointer to incomplete type
    loadndisdriver.c:447: error: expected expression before ‘struct’
    loadndisdriver.c: In function ‘get_ioctl_device’:
    loadndisdriver.c:464: error: ‘FILE’ undeclared (first use in this function)
    loadndisdriver.c:464: error: ‘proc_misc’ undeclared (first use in this function)
    loadndisdriver.c:472: warning: implicit declaration of function ‘strstr’
    loadndisdriver.c:472: warning: incompatible implicit declaration of built-in function ‘strstr’
    loadndisdriver.c:473: warning: implicit declaration of function ‘strtol’
    loadndisdriver.c:473: error: ‘NULL’ undeclared (first use in this function)
    loadndisdriver.c:483: error: ‘LOG_KERN’ undeclared (first use in this function)
    loadndisdriver.c:483: error: ‘LOG_INFO’ undeclared (first use in this function)
    loadndisdriver.c:488: warning: implicit declaration of function ‘unlink’
    loadndisdriver.c:489: warning: implicit declaration of function ‘mknod’
    loadndisdriver.c:489: error: ‘S_IFCHR’ undeclared (first use in this function)
    loadndisdriver.c:489: error: ‘MISC_MAJOR’ undeclared (first use in this function)
    loadndisdriver.c:490: error: ‘errno’ undeclared (first use in this function)
    loadndisdriver.c:495: error: ‘O_RDONLY’ undeclared (first use in this function)
    loadndisdriver.c: In function ‘main’:
    loadndisdriver.c:511: warning: implicit declaration of function ‘openlog’
    loadndisdriver.c:511: error: ‘LOG_PERROR’ undeclared (first use in this function)
    loadndisdriver.c:511: error: ‘LOG_CONS’ undeclared (first use in this function)
    loadndisdriver.c:511: error: ‘LOG_KERN’ undeclared (first use in this function)
    loadndisdriver.c:511: error: ‘LOG_DEBUG’ undeclared (first use in this function)
    loadndisdriver.c:513: error: ‘LOG_INFO’ undeclared (first use in this function)
    loadndisdriver.c:515: warning: implicit declaration of function ‘strncmp’
    loadndisdriver.c:517: warning: implicit declaration of function ‘printf’
    loadndisdriver.c:517: warning: incompatible implicit declaration of built-in function ‘printf’
    loadndisdriver.c:527: warning: implicit declaration of function ‘atoi’
    loadndisdriver.c:542: warning: implicit declaration of function ‘atof’
    loadndisdriver.c:549: warning: implicit declaration of function ‘strcmp’
    loadndisdriver.c:556: warning: incompatible implicit declaration of built-in function ‘sscanf’
    loadndisdriver.c:590: warning: implicit declaration of function ‘closelog’
    make[1]: *** [loadndisdriver] Error 1
    make[1]: Leaving directory `/home/bart/Desktop/ndiswrapper-1.52/utils'
    make: *** [install] Error 2
    bart@savantlaptop:~/Desktop/ndiswrapper-1.52$

  9. #9
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,554
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Modprobe ndiswrapper - not found???

    You don't have the linux-header files package installed. To install

    sudo aptitude install linux-headers-`uname -r`

  10. #10
    Join Date
    Dec 2005
    Beans
    22

    Re: Modprobe ndiswrapper - not found???

    Thank you very much. That got it compiled and installed.
    Now on to configuration..

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
  •