Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42

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

  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
    Apr 2006
    Beans
    7

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

    NOTE: I UPDATED INITIAL POST TO ADDRESS THIS WORK-AROUND

    IgPoGo, The message, "Open file "/etc/Wireless/RT2870STA/RT2870STA.dat" failed!" looks like the problem.

    Do you have a directory called "/etc/Wireless/RT3070STA"? If so, try renaming that directory "RT2870STA". [EDIT: BETTER YET, CREATE A SYMBOLIC LINK "ln -s" COMMAND. MAKE SURE THE LINK TO THE DIRECTORY IS NAMED 'RT2870STA'].

    Then, check to see whether the file in that directory is named "RT3070STA.dat." If so, change the name to "RT2870STA.dat".

    Let me know how that changes the dmesg output when you plug in the USB device.

    Ugh, this fix is getting kind of messy. I think the code has a bug that needs correcting, but let's get you working before diving into the source code.
    Last edited by flbiggs; December 10th, 2009 at 03:59 AM.

  8. #8
    Join Date
    Dec 2009
    Beans
    3

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

    Hi flbiggs, thanks a l lot, now the led on the usb is blinking!!!!

    I changed name of folder RT3070STA as you indicated before, but inside this folder I already found the RT2870STA.dat, may be this was the reason for the mess inside the kernel.

    IgPoGo, The message, "Open file "/etc/Wireless/RT2870STA/RT2870STA.dat" failed!" looks like the problem.

    Do you have a directory called "/etc/Wireless/RT3070STA"? If so, try renaming that directory "RT2870STA". [EDIT: BETTER YET, CREATE A SYMBOLIC LINK "ln -s" COMMAND. MAKE SURE THE LINK TO THE DIRECTORY IS NAMED 'RT2870STA'].

    Then, check to see whether the file in that directory is named "RT3070STA.dat." If so, change the name to "RT2870STA.dat".


    This the result of dmesg, when I diconnected and connected again

    [ 753.316050] usb 1-2: USB disconnect, address 2
    [ 753.316144] rtusb_disconnect: unregister usbnet usb-0000:00:13.2-2
    [ 753.316150] RtmpOSNetDevDetach(): RtmpOSNetDeviceDetach(), dev->name=ra0!
    [ 753.572184] RTUSB disconnect successfully

    [ 758.212079] usb 1-2: new high speed USB device using ehci_hcd and address 4
    [ 758.361498] usb 1-2: configuration #1 chosen from 1 choice

    [ 758.370105]
    [ 758.370108]
    [ 758.370110] === pAd = fa5b4000, size = 471516 ===
    [ 758.370113]
    [ 758.370119] <-- RTMPAllocAdapterBlock, Status=0

    There the sequence of checkings

    ubuntu@ubuntu:~$ ifconfig ra0
    ra0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
    BROADCAST MULTICAST MTU:1500 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:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    ubuntu@ubuntu:~$ iwconfig ra0
    ra0 RT2870 Wireless ESSID:"" Nickname:""
    Mode:Auto Frequency=2.412 GHz
    Link Quality=10/100 Signal level:0 dBm Noise level:-143 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0

    ubuntu@ubuntu:~$ sudo ifconfig ra0 up
    WORKS and the led became alive

    Now I have to use iwconfig to setup the connection to my wireless router, the Wicd Network Manager doesn't get the new device I need to do more work on it.

    Thanks a lot again, I'll report the new step, I hope tomorrow.
    Last edited by IgPoGo; December 10th, 2009 at 01:45 PM.

  9. #9
    Join Date
    Jul 2008
    Beans
    7

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

    Quote Originally Posted by flbiggs View Post
    NOTE: I UPDATED INITIAL POST TO ADDRESS THIS WORK-AROUND

    IgPoGo, The message, "Open file "/etc/Wireless/RT2870STA/RT2870STA.dat" failed!" looks like the problem.

    Do you have a directory called "/etc/Wireless/RT3070STA"? If so, try renaming that directory "RT2870STA". [EDIT: BETTER YET, CREATE A SYMBOLIC LINK "ln -s" COMMAND. MAKE SURE THE LINK TO THE DIRECTORY IS NAMED 'RT2870STA'].

    Then, check to see whether the file in that directory is named "RT3070STA.dat." If so, change the name to "RT2870STA.dat".

    Let me know how that changes the dmesg output when you plug in the USB device.

    Ugh, this fix is getting kind of messy. I think the code has a bug that needs correcting, but let's get you working before diving into the source code.
    That made it up! I have WiFi NOW! best Thanks guys!
    Upgrading to 9.10 )) will see what's next)

  10. #10
    Join Date
    Dec 2009
    Beans
    3

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

    SOLVED

    I have to wake up with the comand sudo ifconfig ra0 up, but is working the Wicd Network Manager works with it.

    This is the process I did after boot the computer

    ubuntu@ubuntu:~$ iwconfig
    lo no wireless extensions.

    eth0 no wireless extensions.

    ra0 RT2870 Wireless ESSID:"" Nickname:""
    Mode:Auto Frequency=2.412 GHz
    Link Quality=10/100 Signal level:0 dBm Noise level:-143 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0

    ubuntu@ubuntu:~$ sudo ifconfig ra0 up
    ubuntu@ubuntu:~$ iwconfig
    lo no wireless extensions.

    eth0 no wireless extensions.

    ra0 RT2870 Wireless ESSID:"11n-AP" Nickname:"RT2870STA"
    Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
    Bit Rate:1 Mb/s
    RTS thrff Fragment thrff
    Link Quality=10/100 Signal level:0 dBm Noise level:-115 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0

    After searched my wireless router and connect whit it by Wicd Network Manager

    ubuntu@ubuntu:~$ iwconfig
    lo no wireless extensions.

    eth0 no wireless extensions.


    ra0 RT2870 Wireless ESSID:"gecho" Nickname:"RT2870STA"
    Mode:Managed Frequency=2.412 GHz Access Point: 00:24:B2:77:2F:8A
    Bit Rate=54 Mb/s
    RTS thrff Fragment thrff
    Link Quality=100/100 Signal level:-17 dBm Noise level:-83 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0

    Now it's working great, thanks a lot flbiggs and b2b, I hope this post solved the similar problem to other users.

    And now I can changed the old Win XP without the curse of the cable.


    __________________________________________________

    The USB worked simply writting ra0 on Wicd's settings, I had wlan0.

    Then refresh, cllick on buttom, and select your router.
    Last edited by IgPoGo; December 11th, 2009 at 02:57 PM.

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