dsandler.org

DWL-G120 + ndiswrapper + Ubuntu

June 27th, 2007

Inside: steps to getting a D-Link DWL-G120 B1 USB wireless card working on Ubuntu 7.04 (linux 2.6.20-15-generic). Have been using it heavily for about a half-hour and it seems to work. Sharing the wealth.

Bibliography

Step-by-step

$ sudo -s
# apt-get install ndiswrapper-utils
# curl -O ftp://ftp.dlink.com/Wireless/dwlg120/Drivers/DWL-G120_driver_112.zip
# mkdir DWL-G120 ; cd DWL-G120 ; unzip ../DWL-G120_driver_112.zip
# apt-get install unshield
# unshield x data1.cab
# cp Inf/PRISMA02.inf DrvME ; cd DrvME
# ndiswrapper -i PRISMA02.inf
# ndiswrapper -l
prisma02 : driver installed
        device (2001:3701) present (alternate driver: prism54usb)
# depmod -a
# modprobe ndiswrapper
# tail /var/log/messages
Jun 27 10:00:40 pd06 -- MARK --
Jun 27 10:04:53 pd06 kernel: [61505.442684] ndiswrapper version 1.38 loaded (preempt=no,smp=yes)
Jun 27 10:04:54 pd06 kernel: [61505.806582] usb 1-2: reset full speed USB device using uhci_hcd and address 2
Jun 27 10:04:54 pd06 kernel: [61506.030430] ndiswrapper: driver prisma02 (GlobespanVirata,11/11/2003, 1.00.5.0) loaded
Jun 27 10:04:56 pd06 kernel: [61508.736920] wlan0: ethernet device 00:0f:3d:48:0b:b3 using NDIS driver: prisma02, version: 0x10005, NDIS version: 0x500, vendor: 'D-link AirPlus G DWL-G120 Wireless USB Adapter', 2001:3701.F.conf
Jun 27 10:04:56 pd06 kernel: [61508.737056] wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
Jun 27 10:04:56 pd06 kernel: [61508.737268] usbcore: registered new interface driver ndiswrapper
Jun 27 10:04:58 pd06 kernel: [61510.739276] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
# ifconfig
[...]
wlan0     Link encap:Ethernet  HWaddr 00:0F:3D:48:0B:B3  
          inet6 addr: fe80::20f:3dff:fe48:bb3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4232 (4.1 KiB)  TX bytes:558 (558.0 b)

# ndiswrapper -m

7 responses

  1. Victor Cache  

    Thanks for these instructions, they helped alot. Just one thing: I had to reboot my machine before I could see any wlan0 devices in /var/log/messages.

    comment posted at 12:30 pm on 04 Jan 2008

  2. Goofus  

    Thanks. I’ve been looking all over for these instructions. I found many that were poorly written or didn’t work. Thanks to you, I got mine working.

    comment posted at 10:23 am on 11 Feb 2008

  3. Goofus  

    Wow, here I am again. I googled “dwl-g120 ubuntu” and your site came up. I followed the instructions and they worked as they should, and then I look at the comments and see that I was here in February. Only wish I could remember the instructions.

    comment posted at 10:36 pm on 23 Jul 2008

  4. Jannick  

    Fantastic.
    I have no clue about Ubuntu or Linux – But this worked just fine :-)

    comment posted at 10:41 am on 24 Nov 2008

  5. lobar  

    thanks…for a newbie like me it was great to follow along in ubuntu 8.10 and have the message appear like magic that i’m connected to the wireless network!

    comment posted at 8:52 am on 08 Feb 2009

  6. Brad  

    Thanks! These were the ONLY instructions that would work even on Ubuntu 8.x!

    comment posted at 11:49 am on 01 May 2009

  7. Rik  

    Brilliant, thank you very much, well written. I have some homework to do now to find out how to actually use ndiswrapper.

    comment posted at 7:10 am on 10 Jun 2010

Add a comment

html help (show)
newer: older: