Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: How to install ndiswrapper and wireless driver for newbies

  1. #1
    Join Date
    Apr 2008
    Location
    NY
    Beans
    32
    Distro
    Ubuntu 8.04 Hardy Heron

    How to install ndiswrapper and wireless driver for newbies

    D-Link WUA-1340 USB wireless adapter is used here but it'll apply in general

    I'm a new Ubuntu 8.04 user and I got my wireless to work after a day of messing around with the help of many people especially kevdog, so here it goes

    There are 2 things you need: the driver files (.inf and .sys) and the application ndiswrapper.

    Step1: Getting the Driver
    To get the driver files, you can do this many ways. A lot of posts will talk about a program called wine and yadayada, but that's too much problems because getting wine to install isn't the easiest thing when you don't have internet and/or an idea of how terminal works. So I used another computer with internet connection to go download the driver onto a USB stick first. Go to Applications > Accessories > Terminal and type down

    Code:
    lsusb
    Look for chipset ID. It'll look something like this 104c:8400. Then go to http://ndiswrapper.sourceforge.net/j...id,33/id,list/ Find your device and download the driver. If your wireless adapter isn't listed, find a similar driver (the one with the same chipset ID). Once you get the driver, you can take it to a Ubuntu computer and try to do everything there using ndiswrapper, or you can cheat. I installed the driver onto a Windows computer first. Then I go to the driver folder and copy the files I needed. In Program Files > D Link > drivers folder, there are several files including Dr71WU.sys and Dr71Wu.inf. If you are not using this wireless adapter, just look for .inf and .sys files with the same name. Sometimes, the .sys will be in this folder and the .inf will not. The .inf can be found in Windows > System32 folder. Run a search here for the .inf file. Once you have these 2, copy them to a USB.

    Step2: Getting ndiswrapper and installing it
    Go to http://sourceforge.net/project/showf...group_id=93482 and download the latest, stable version of ndiswrapper and save it on your usb. It's 1.52 when I wrote this thread. The file extension will be .tar.gz

    Now turn your Ubuntu computer on. Copy the .tar.gz file to your home folder. Pop in the installation CD. Wait until the computer starts spinning the disk then type this interminal

    Code:
    sudo apt-cdrom add
    sudo aptitude update
    sudo aptitude install build-essential linux-headers-`uname -r`
    Careful, the last command isn't a single quote ('). It's a backtick (`). More commands here

    Code:
    tar -zxvf ndiswrapper-1.52.tar.gz
    cd ndiswrapper-1.52
    make distclean
    make
    sudo make install
    Verify the installation with

    Code:
    ndiswrapper -v
    The output should be something similar to the following:

    Code:
    utils version: '1.9', utils version needed by module: '1.9'
    module details:
    filename:       /lib/modules/2.6.20-16-generic/misc/ndiswrapper.ko
    version:        1.52
    vermagic:       2.6.20-16-generic SMP mod_unload 586
    Step3: Installing the Driver
    Make a folder in your home folder called "driver." Copy the .inf and .sys files and put them in this new directory.

    Code:
    cd driver
    sudo ndiswrapper -i *****.inf
    Verify this installation with
    Code:
    ndiswrapper -l
    You'll get something like
    Code:
    dr71wu: driver installed
    device (14E4:4320) present (blablabla alternate)
    (write down the bold alternative thingy)

    Now do this and watch for error messages cuz it'll keep running regardless
    Code:
    sudo depmod -a
    sudo modprobe ndiswrapper
    dmesg
    You should get something like
    Code:
    ndiswrapper version version loaded
    This will make ndiswrapper associate with wlan0
    Code:
    sudo ndiswrapper -m
    This will make the module loaded everytime you reboot
    Code:
    echo "ndiswrapper" | sudo tee -a /etc/modules
    Now you need to stop the alternative driver and a few other things. The codes here will stop the computer from using the files we want to black list.

    Code:
    sudo modprobe -r alternative
    (For my adapter, they were rt73usb, rt2x00usb, rt2x00lib so I just repeated this line 3 times and substitute these names each time)

    Now the actual blacklisting
    Code:
    echo "blacklist alternative" | sudo tee -a /etc/modprobe.d/blacklist
    In addition to the ones you previously inactivated, also do this for bcm43xx, b43, and ssb as well.

    Now restart
    Code:
    sudo shutdown -r now
    Once it's back on, go to terminal again and verify by

    Code:
    lshw -C network
    You should get something like

    Code:
    *-network               
           description: Wireless interface
           product: BCM4306 802.11b/g Wireless LAN Controller
           vendor: Broadcom Corporation
           physical id: 0
           bus info: pci@06:00.0
           logical name: wlan0
           version: 03
           serial: 00:12:17:35:17:10 
           width: 32 bits
           clock: 33MHz
           capabilities: bus_master cap_list ethernet physical wireless
           configuration: broadcast=yes driver=ndiswrapper+lsbcmnds driverversion=1.48rc1+Cisco-Linksys ,LLC.,02/1 ip=192.168.1.101 latency=64 multicast=yes wireless=IEEE 802.11g
           resources: iomemory:3c000000-3c001fff irq:11
    Make sure it says the driver is ndiswrapper.

    That's it!
    puifais

  2. #2
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to install ndiswrapper and wireless driver for newbies

    you should consider using the command:
    Code:
    lshw -C network
    as, lsusb will only list usb network adapters, and lspci will only list internal network adapters (or pcmcia). however, lshw -C network will show either, as well as give more information. the chipset id is located after "product"

    while i understand that you are using a usb adapter as an example, you suggest (both in your title, and in your directions) that it can be universal.

    also ... there is no reason to build from source unless absolutely necessary. you can grab the ubuntu official ndiswrapper package either from the live cd, or directly from the repos here:
    http://packages.ubuntu.com/gutsy/mis...wrapper-common
    http://packages.ubuntu.com/gutsy/mis...pper-utils-1.9
    (just replace "gutsy" with whatever release you're currently using)

    also:
    the output of ndiswrapper -l will look like this:
    Code:
    $ ndiswrapper -l
    bcmwl5 : driver installed
    	device (14E4:4311) present (alternate driver: bcm43xx)
    blacklisting "bcm43xx" alone may not be successful. for many cards (including broadcomm) there will be multiple modules that need to be blacklisted. there's no real easy way to figure out what's what without also looking at the output of:
    Code:
    lsmod
    finally:
    running the code
    Code:
    sudo shutdown -r now
    has a tendency to break the window manager's panels in xubuntu, and users may return from the reboot without any working panels. it's probably safer (and easier) just to tell people to reboot.
    Last edited by dmizer; April 28th, 2008 at 08:17 AM.

  3. #3
    Join Date
    Apr 2008
    Location
    Sessrumnir
    Beans
    440
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How to install ndiswrapper and wireless driver for newbies

    i have an unbranded USB adapter it uses the SiS163 chipset. 10 mins with your tut and my laptop is online with kubuntu free from the linux mag. great tut cheers.

    regards

    fenris

  4. #4
    Join Date
    Apr 2008
    Location
    NY
    Beans
    32
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to install ndiswrapper and wireless driver for newbies

    Thank you, dmizer, for adding on to the thread. I'm actually super uber new so I pretty much just posted whatever I did to get my stuff working and Fenris_rising here is actually making me really proud of myself today
    puifais

  5. #5
    Join Date
    Dec 2006
    Beans
    36

    Re: How to install ndiswrapper and wireless driver for newbies

    What if a device doesn't use .inf but .sys driver?
    After upgrading (actually I fresh installed) from 7.10 to 8.04, my wireless conection is gone, so I edited my /etc/modprobe.d/blacklist this way:
    Code:
    # these aes modules break the airo driver
    blacklist padlock_aes
    blacklist geode_aes
    but that's not enought!
    Before upgrading I had a modem related restricted driver enabled...

  6. #6
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How to install ndiswrapper and wireless driver for newbies

    Quote Originally Posted by Blastomorpha View Post
    What if a device doesn't use .inf but .sys driver?
    windows (and therefore ndiswrapper) makes use of BOTH the .inf and the .sys files to make a driver function. the .inf file tells the system how and when to use .sys file (like a script).

    the ONLY file(s) that ever needs to be loaded into the ndiswrapper wrapper is the .inf file(s), but the .sys file needs to be located on the system in the same directory as the .inf file so that ndiswrapper can call on it as needed.
    Last edited by dmizer; May 8th, 2008 at 03:42 AM.

  7. #7
    Join Date
    Apr 2008
    Beans
    204
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to install ndiswrapper and wireless driver for newbies

    I am quite new myself and the instructions were great but after installing the driver I had no connection. The Network Settings Mgr showed my wireless connection but would not allow to adjust my configuation the card also showed up in my Network Tools. My solution was to enable "All Supported Apps" in "Add and Remove" and install "WiFi Radar" and then I was able to configure it with the app. My card is a Zonet 1602A It has a 1M extension cord to expand coverage for up to 326' inside a building. Why you ask; I took my rig on a mini vacation and the wireless card couldn't pick up a signal behind the steel door I was behind inside the hotel I ended up using my ancient laptop on the vanity right outside the bathroom. What a PAIN.........

  8. #8
    Join Date
    Jan 2008
    Beans
    5

    Re: How to install ndiswrapper and wireless driver for newbies

    Hey, I got to the "distsclean" part and it started giving me errors like:

    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

    There were a lot more that were similar to those.
    Then I went to install and it gave me even more errors:

    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:370: error: ‘LOG_KERN’ undeclared (first use in this function)
    loadndisdriver.c:370: error: ‘LOG_INFO’ undeclared (first use in this function)

    Again there were alot more but I didn't want to paste the whole thing.
    I'm pretty lost here if anyone could help it would prevent hair loss ;]

  9. #9
    Join Date
    Jan 2008
    Beans
    5

    Re: How to install ndiswrapper and wireless driver for newbies

    Ohh yeah I also downloaded the .exe file for the drivers and I dont know what to do with them. Should I install on a windows computer and copy the .int files and .sys files over?

  10. #10
    Join Date
    Jun 2007
    Location
    Denver, CO
    Beans
    232
    Distro
    Ubuntu

    Re: How to install ndiswrapper and wireless driver for newbies

    Thanks for this post, but it's still not working for me. I'm running Hardy Heron on a gateway laptop (64bit) that uses the RTL8187B chipset, which is on the list of supported chipsets. I used ndiswrapper to first uninstall the existing drivers and reinstall the recommended win98 driver, rtl8187b. Yes, the .inf and .sys files are in the same folder. <ndiswrapper -l> gives me:

    matt@Darwin:~$ ndiswrapper -l
    net8187b : driver installed
    device (0BDA:8187) present (alternate driver: rtl8187)

    I've tried removing the alternate driver both by following your instructions (using modprobe -r, etc.) and by actually editing /etc/modprobe.d/blacklist file, but it still appears even after restart as the alternate driver when I query <ndiswrapper -l>.

    Furthermore when I do:

    sudo depmod -a
    sudo modprobe ndiswrapper
    dmesg | more

    the result is a lot of crap, including many lines of output that say "ndiswrapper (import:242): unknown symbol: blablabla" followed by messages that say:
    ------
    ndiswrapper (load_sys_files:210): couldn't prepare driver 'net8187b'
    ndiswrapper (load_sys_files:112): couldn't load driver net8187b; check system log for messages from 'loadndisdriver'
    usbcore: registered new interface driver ndiswrapper
    lp: driver loaded but no devices found
    -------
    Any suggestions are warmly welcomed.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •