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

Thread: D-Link DWA-125 Wireless 150 USB Adapter

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Beans
    7

    D-Link DWA-125 Wireless 150 USB Adapter

    My kid has an HP computer that connects to the family's wireless gateway with a D-Link DWA-125 Wireless 150 USB Adapter. The wireless adapter performed flawlessly under Vista, but I got tired of having to maintain Vista. So, I installed Ubuntu on the HP, keeping Vista on a dual-boot partition in case he has to run Vista for school for some reason. Ubuntu did not recognize the D-Link DWA-125 out of the box.

    In case it saves others a few hours of time, here is how I got the wireless adapter working:

    1. Being lazy, I started with ndiswrapper. But, it would not run the windows driver provided by D-Link (giving an error related to MmGetSystemRoutineAddress). I compiled ndiswrapper using the most recent version... same error. Looks like a bug or an unsupported call in the driver.

    2. The DWA-125 has a Ralink RT3070 chipset. I tried the latest Ralink windows xp driver for the chipset. Same problem.

    3. Fortunately, Ralink provides source code for linux kernel drivers. So, I downloaded the latest linux driver for the RT3070USB from www.ralinktech.com. I extracted to my local directory. Prior to compilation, I changed several options in the [ROOT_OF_DRIVER_SOURCE/]os/linux/config.mk file (more specifically, I changed 2 wpa_supplicant lines to 'y' instead of 'n'). In the root of the driver's source directory, I ran 'sudo make', and then 'sudo make install". [EDIT: NOTE THAT YOU NEED TO INSTALL THE 'BUILD-ESSENTIAL' PACKAGE FIRST]

    3. In Ubuntu 9.10 Karmic, the new kernel drivers for other Ralink cards really seem to muck things up, and I was not able to get them to work for this chipset (hopefully that is only a minor glitch). To fix (9.10 only):

    a. I blacklisted the newly built in Ralink drivers by adding the following end of the /etc/modprobe.d/blacklist.conf file:

    blacklist rt2x00usb
    blacklist rt2x00lib
    blacklist rt2800usb

    b. The kernel was still not loading my Ralink driver. I found that the kernel staging directory still had the old version of the driver in it. So, I moved that to a local directory (in case I need it later) by typing -- "sudo mv /lib/modules/2.6.31-15-generic/kernel/drivers/staging/rt3070/rt3070sta.ko [DESTINATION OF LOCAL DIRECTORY]." UNFORTUNATELY, THIS NEEDS TO BE DONE AFTER EVERY KERNEL UPDATE. UGH. CAN SOMEONE ADVISE AS TO WORKAROUND?

    [NOTE: My kernel at the time was 2.6.31-15-generic. If your's is different then the directories will change accordingly.]

    c. Just in case, I run "sudo depmod"

    4. I then installed the driver into the kernal by typing 'sudo modprobe rt3070sta'. Plug in device and watch kernel log (or run dmesg) to make sure kernel identified USB device, loaded correct module and did not throw errors.

    Some people report that dmesg/kernel log throws the following error when they plug in the device at this point: "Open file "/etc/Wireless/RT2870STA/RT2870STA.dat" failed!". That is a problem, and I believe it comes from a bug in the source code. Fix by creating a sybolic link to the directory "/etc/Wireless/RT3070STA" called /etc/Wireless/RT2870STA".

    Note: I as able to connect to the (temporarily unencrypted) network using iwconfig and ifconfig. However, on reboot, the new rt3070sta kernel module was not loading automatically. I found that the Wireless adapter was still causing ndiswrapper to load in place of the new rt3070sta kernel module. I found that this was caused by 'alias' commands in the file '/etc/modprobe.d/ndiswrapper' interfering with things. Since I did not need ndiswrapper any longer, I uninstalled it and deleted '/etc/modprobe.d/ndiswrapper'. After that, the driver loaded flawlessly and automatically after reboot and/or re-plugging the usb device.

    5. To get network-manager to work, change [ifupdown] managed=false to true in /etc/NetworkManager/nm-system-settings.conf. Then, reboot or run the following:

    sudo /etc/init.d/networking restart
    sudo restart network-manager

    I hope this helps.
    Last edited by flbiggs; December 10th, 2009 at 03:52 AM.

  2. #2
    Join Date
    Jul 2008
    Beans
    7

    Question Re: D-Link DWA-125 Wireless 150 USB Adapter

    Sorry I'm all new to installing wifi from console, as you said default gnome managlment doesn't help out.
    Please write all you
    iwconfig iwspy commands,
    also please say if we need smth for WPA2 auth.

  3. #3
    Join Date
    Apr 2006
    Beans
    7

    Re: D-Link DWA-125 Wireless 150 USB Adapter

    [NOTE, I EDITED INITIAL POST TO INCLUDE WHAT I REPORTED IN THIS REPLY -- THAT IS, WORK AROUND FOR 9.10 KARMIC AND GETTING NETWORK-MANAGER UP AND RUNNING]

    This driver stopped working after I upgraded to Ubuntu 9.10 - Karmic. I downloaded the newest version of the driver's source code from Ralink, and compiled it using the instructions set forth above. The wireless device would not work as it had with previous versions of Ubuntu. The problem generally seemed to come from the newlyincluded kernel drivers for some Ralink chips -- rt2x00.

    Unfortunately, I was not able to make these drivers work for this RT3070 device (although I did not spend a huge amount of time on it).

    After installing most current Ralink driver from source, here is what I did to restore perfect functionality to the device:

    I blacklisted the newly built in Ralink drivers by adding the following end of the /etc/modprobe.d/blacklist.conf file:

    blacklist rt2x00usb
    blacklist rt2x00lib
    blacklist rt2800usb

    2. The kernel was still not loading my Ralink driver. I found that the kernel staging directory still had the old version of the driver in it. [EDIT: NO HARD LINK IS NEEDED] So, deleted /lib/modules/2.6.31-15-generic/kernel/drivers/staging/rt3070/rt3070sta.ko."

    [NOTE: My kernel no is 2.6.31-15-generic. If your's is different then the directories will change accordingly.]
    [REQUEST: I am not sure that it is technically correct to manipulate the staging directory this way. Can someone explain a better/proper way?]

    3. run "sudo depmod" to update module dependencies.

    4. run lsmod to make sure none of the old rt*** drivers are loaded. If any appear, then run sudo -r [NAME] to remove them.

    5. install the new module into the kernel by typing "sudo modprobe -i rt3070sta".

    6. Plug in device and watch kernel log (or run dmesg) to make sure kernel identified USB device, loaded correct module and did not throw errors.

    7. To get network-manager to work, change [ifupdown] managed=false to true in /etc/NetworkManager/nm-system-settings.conf. Then, reboot or run the following:

    sudo /etc/init.d/networking restart
    sudo restart network-manager


    I hope this helps someone. If anyone knows other ways to accomplish this, then please advise. I can generally solve these kind of problems, but don't pretend to know the "right way".

    Thanks
    Last edited by flbiggs; December 9th, 2009 at 01:55 PM.

  4. #4
    Join Date
    Jul 2008
    Beans
    7

    Re: D-Link DWA-125 Wireless 150 USB Adapter

    Thanks for the hint!!
    right now I have 9.04 Jaunty. I have downloaded rt3070 chip driver
    and installed it. Got rt3070sta module. When I load it I have ra0 interface.
    I try wlist scan..
    No results for ra0, also I noticed that HWaddr is 00:00:00:00:00:00 - thats 100% strange.
    So I can't get DWA-125 adapter working. I'm I donig smth wrong?
    Please Help me out
    Last edited by b2d; December 9th, 2009 at 10:31 AM. Reason: New Info

  5. #5
    Join Date
    Apr 2006
    Beans
    7

    Re: D-Link DWA-125 Wireless 150 USB Adapter

    I think its a good sign that ifconfig shows ra0. Can you please post in output from:

    sudo ifconfig

    sudo lshw -C network

    cat /etc/network/interfaces | grep "ra0"

    cat /etc/modprobe.d/blacklist.conf | grep "rt"

    dmesg [to keep it simple, unplug usb and show only new dmesg output that results from plugging it in. log file viewer may help with this.]

    cat /etc/NetworkManager/nm-system-settings.conf | grep "managed"

  6. #6
    Join Date
    Dec 2009
    Beans
    3

    Re: D-Link DWA-125 Wireless 150 USB Adapter

    Hi flbiggs and b2b:

    I'm followed this post for some days, and figuring out how to do working my usb wifi device. So I did everything flbiggs has made, but my ubuntu is 9.10, and I didn't find your olds problems.

    I made the new operations and have the same result as b2b. I have ra0

    I did the series of commands you said, and these are the results:


    ubuntu@ubuntu:~$ sudo ifconfig
    eth0 Link encap:Ethernet HWaddr 00:c0:9f:ca:67:b9
    inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::2c0:9fff:feca:67b9/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:12154 errors:0 dropped:0 overruns:0 frame:0
    TX packets:10895 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:5593528 (5.5 MB) TX bytes:934232 (934.2 KB)
    Interrupt:18 Base address:0xa000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)



    ubuntu@ubuntu:~$ sudo lshw -C network
    *-network:0
    description: Ethernet interface
    product: RTL-8139/8139C/8139C+
    vendor: Realtek Semiconductor Co., Ltd.
    physical id: 0
    bus info: pci@0000:05:00.0
    logical name: eth0
    version: 10
    serial: 00:c0:9f:ca:67:b9
    size: 100MB/s
    capacity: 100MB/s
    width: 32 bits
    clock: 33MHz
    capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
    configuration: autonegotiation=on broadcast=yes driver=8139too driverversion=0.9.28 duplex=full ip=192.168.1.4 latency=64 link=yes maxlatency=64 mingnt=32 multicast=yes port=MII speed=100MB/s
    resources: irq:18 ioport:a000(size=256) memory:c0208000-c02080ff
    *-network:1
    description: Network controller
    product: BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller
    vendor: Broadcom Corporation
    physical id: 2
    bus info: pci@0000:05:02.0
    version: 02
    width: 32 bits
    clock: 33MHz
    capabilities: bus_master
    configuration: driver=b43-pci-bridge latency=64
    resources: irq:20 memory:c0204000-c0205fff
    *-network DISABLED
    description: Wireless interface
    physical id: 1
    logical name: ra0
    capabilities: ethernet physical wireless
    configuration: broadcast=yes driver=RALINK WLAN driverversion=2.1.2.0 multicast=yes wireless=RT2870 Wireless

    ubuntu@ubuntu:~$ cat /etc/network/interfaces | grep "ra0"
    ubuntu@ubuntu:~$ cat /etc/network/interfaces
    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet dhcp

    auto eth1
    iface eth1 inet dhcp

    auto eth2
    iface eth2 inet dhcp

    auto ath0
    iface ath0 inet dhcp

    auto wlan0
    iface wlan0 inet dhcp

    ubuntu@ubuntu:~$ grep "ra0" it isn't in this list!!!

    ubuntu@ubuntu:~$ cat /etc/modprobe.d/blacklist.conf | grep "rt"
    # snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
    # hangs at desktop session start (Ubuntu: #246969)
    # EDAC driver for amd76x clashes with the agp driver preventing the aperture

    blacklist rt2x00usb
    blacklist rt2x00lib
    blacklist rt2800usb


    Now dmesg, when I remove and put it

    [ 355.990250] -->RTUSBVenderReset
    [ 355.990376] <--RTUSBVenderReset
    [ 356.445033] RtmpOSFileOpen(): Error 2 opening /etc/Wireless/RT2870STA/RT2870STA.dat
    [ 356.445042] Open file "/etc/Wireless/RT2870STA/RT2870STA.dat" failed! why do it try to open this files????
    [ 356.445049] 1. Phy Mode = 0
    [ 356.445053] ERROR!!! NICReadRegParameters failed, Status[=0x00000001]
    [ 356.451461] ---> RTMPFreeTxRxRingMemory
    [ 356.451513] <--- RTMPFreeTxRxRingMemory
    [ 356.451518] !!! rt28xx Initialized fail !!! OF COURSE
    [ 800.891729] pcmcia: Detected deprecated PCMCIA ioctl usage from process: lshw.
    [ 800.891734] pcmcia: This interface will soon be removed from the kernel; please expect breakage unless you upgrade to new tools.
    [ 800.891738] pcmcia: see http://www.kernel.org/pub/linux/util...ia/pcmcia.html for details.
    [ 1091.742873] usb 1-2: USB disconnect, address 2
    [ 1091.743078] rtusb_disconnect: unregister usbnet usb-0000:00:13.2-2
    [ 1091.743086] RtmpOSNetDevDetach(): RtmpOSNetDeviceDetach(), dev->name=ra0!
    [ 1091.996136] RTUSB disconnect successfully
    [ 1241.952077] usb 1-2: new high speed USB device using ehci_hcd and address 4
    [ 1242.101977] usb 1-2: configuration #1 chosen from 1 choice
    [ 1242.110496]
    [ 1242.110499]
    [ 1242.110501] === pAd = fa5ce000, size = 471516 ===
    [ 1242.110504]
    [ 1242.110510] <-- RTMPAllocAdapterBlock, Status=0


    ubuntu@ubuntu:~$ cat /etc/NetworkManager/nm-system-settings.conf | grep "managed"
    managed=false
    ubuntu@ubuntu:~$




    and one more


    ubuntu@ubuntu:~$ sudo ifconfig ra0 up
    SIOCSIFFLAGS: Operation not permitted
    --------------------------------------------

    If I find out how to work the correct driver I'll post it.

    I forgot the 5 step, but after do it the result is the same, now

    ubuntu@ubuntu:~$ cat /etc/NetworkManager/nm-system-settings.conf | grep "managed"
    managed=true


    but I have the same result for ifconfig and iwconfig


    Last edited by IgPoGo; December 9th, 2009 at 10:02 PM.

  7. #7
    Join Date
    Jun 2007
    Beans
    303

    Angry Re: D-Link DWA-125 Wireless 150 USB Adapter

    Just because ubuntuforums.org boys said that their forum is getting larger and larger (!) I decided to not bother in this topic, But I created another one about installing and preparing wireless connection in 10.04, Please Click the link below and answer me:
    Is Ubuntu 10.04 continue support wireless? (At end I describe the installation problems I faced with the rt3070sta driver)
    http://ubuntuforums.org/showpost.php...5&postcount=11
    Any response will be appreciated there!
    Last edited by ario; October 3rd, 2010 at 11:48 AM.

  8. #8
    Join Date
    May 2009
    Location
    Russia, Moscow
    Beans
    119
    Distro
    Ubuntu

    Re: D-Link DWA-125 Wireless 150 USB Adapter

    Doesn't work with Network Manager on 10.04
    Details: http://ubuntuforums.org/showpost.php...0&postcount=25

  9. #9
    Join Date
    Mar 2011
    Beans
    71

    Re: D-Link DWA-125 Wireless 150 USB Adapter

    ppl on ubuntu 10.10 after a ¨make¨ command i get this at the end

    /home/khajvah/Desktop/2009_1204_RT3070_Linux_STA_v2.1.2.0/os/linux/../../common/cmm_mac_usb.c:83: error: implicit declaration of function ‘usb_buffer_alloc’
    /home/khajvah/Desktop/2009_1204_RT3070_Linux_STA_v2.1.2.0/os/linux/../../common/cmm_mac_usb.c:83: warning: assignment makes pointer from integer without a cast
    /home/khajvah/Desktop/2009_1204_RT3070_Linux_STA_v2.1.2.0/os/linux/../../common/cmm_mac_usb.c:112: error: implicit declaration of function ‘usb_buffer_free’
    make[2]: *** [/home/khajvah/Desktop/2009_1204_RT3070_Linux_STA_v2.1.2.0/os/linux/../../common/cmm_mac_usb.o] Error 1
    make[1]: *** [_module_/home/khajvah/Desktop/2009_1204_RT3070_Linux_STA_v2.1.2.0/os/linux] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-28-generic'
    make: *** [LINUX] Error 2

    Anyone PLS help me I really need this...

  10. #10
    Join Date
    Mar 2011
    Beans
    71

    Re: D-Link DWA-125 Wireless 150 USB Adapter

    I have tried this with other drivers but i get the same error

Page 1 of 2 12 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
  •