Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40

Thread: rt2870 onboard usb wireless N

  1. #1
    Join Date
    Apr 2008
    Beans
    55

    rt2870 onboard usb wireless N

    Can somebody please help me troubleshoot my network problems in ubuntu 10.04, I'm so close I can almost taste it.

    what I have done so far. I had conflicting modules so I blacklisted the following

    Code:
    blacklist rt2x00usb
    blacklist rt2x00lib
    blacklist rt2800usb
    now only one of them loads
    Code:
    $ lsmod | grep rt
    rt2870sta
    i tried to connect to my router but it keeps asking for the wpa key over and over
    I tried to see if my driver is there

    Code:
    $ lshw -C network
    discription: wireless interface
    physical id: 1
    capabilities: ethernet physical wireless
    configuration: broadcast=yes multicast=yes wireless=RTxx70
    what does wireless=RTxx70 mean, does this mean the driver is working? because it doesn't seem to say driver=rt2870

    the output of nm-tool only shows "usb" as the driver.
    Code:
    $ nm-tool
    - Device: wlan0 -----------
    type: 802.11 wifi
    driver: usb
    state: disconnected
    default: no
    
    Capabilities:
    
    wireless properties
     wep: yes
     wpa: yes
     wpa2: yes

    some more info which may be useful
    Code:
    lsusb -v
    Bus 001 Device 002: ID 0b05:1742 ASUSTek Computer, Inc. 802.11n Network Adaptor
    I tried to use the commands below hoping it will solve my driver problems
    Code:
    echo 'install rt2870sta modprobe --ignore-install rt2870sta ; /bin/echo "0b05 1742 " > /sys/bus/usb/drivers/rt2870/new_id' | sudo tee /etc/modprobe.d/rt2870sta.conf
    sudo modprobe -rf rt2870sta
    sudo modprobe rt2870sta
    dmesg | egrep 'rt28|usb|Phy'
    iwconfig
    but sudo modprobe -rf rt2870sta does not work because it's in use

    any suggestions because I have no idea? has my driver installed properly? if so why does it keep asking for a wpa key?

  2. #2
    Join Date
    Apr 2008
    Beans
    55

    Re: rt2870 onboard usb wireless N

    I solved it. I have an ASUS P5E3 premium with onboard (usb) wireless n but it should work for anybody else having trouble using the same chipset. If you have a problem where it keeps asking for the WPA key over and over again even after solving the driver conflict you need to build your own rt2870sta module.


    Resolving the Driver conflict

    First check if there is a driver conflict by doing this

    Code:
    lsmod | grep rt
    if you see all of these:
    Code:
    rt2x00usb
    rt2x00lib
    rt2800usb
    
    rt2870sta
    in the output, you have a conflict and you need to blacklist some modules

    do
    Code:
    gksudo gedit /etc/modprobe.d/blacklist.conf
    and add this:
    Code:
    # Wifi Drivers conflict with rt2870sta
    blacklist rt2x00usb
    blacklist rt2x00lib
    blacklist rt2800usb
    to the bottom of the file that opens, then save and close gedit.


    Build your own (newer) rt2870sta

    Make sure you have build-essentials

    either with an alternative internet connection with:
    Code:
    sudo apt-get install build-essential
    OR from the UBUNTU cd
    Code:
    apt-cdrom add-d / cdrom 
    apt-get update.
    apt-get install build-essential.

    download the latest rt2870USB(RT2870/RT2770) file from their website
    http://www.ralinktech.com/support.php?s=2

    extract the files somewhere

    in a terminal go to the directory which you just extracted
    e.g.
    Code:
    cd /home/user/Downloads/RT2870_LinuxSTA_V2.3.0.0
    do
    Code:
    gedit Makefile
    and make sure these are set
    Code:
    RT28xx_MODE = STA
    TARGET = LINUX
    if so, close gedit making sure to save if you had to change them.

    check config.mk
    Code:
    gedit ./os/linux/config.mk
    make sure these are set correctly

    Code:
    HAS_WPA_SUPPLICANT = y
    HAS_NATIVE_WPA_SUPPLICANT_SUPPORT = y
    if so, back at the terminal do:

    Code:
    sudo ifconfig wlan0 down
    where you replace "wlan0" with the name of your wireless interface

    unload the module
    Code:
    sudo modprobe -rf rt2870sta
    do:
    Code:
    make
    sudo make install
    now overwrite the rt2870sta module

    Code:
    sudo cp ./os/linux/rt2870sta.ko /lib/modules/ <your kernel> (e.g. 2.6.32-21-generic)/kernel/drivers/staging/rt2870/rt2870sta.ko
    restart the computer and your wireless n should now work.

    Hope this helps

    PS:Can somebody advise me on a better way of loading the alternative module at startup instead of replacing the default kernel one? since a kernel update will overwrite it with the default again.
    Last edited by Cue2; May 4th, 2010 at 06:28 PM.

  3. #3
    Join Date
    Feb 2010
    Beans
    3

    Re: rt2870 onboard usb wireless N

    Thanks Cue2, for this excellent post.

    It took my Ralink2870usb from a 54g connection to a full 270Mb/s n connection.

    You might want to change two details for the benefit of future readers:

    Code:
    sudo apt-get install build-essential(s) remove (s)
    and

    Code:
    (added sudo) sudo cp ./os/linux/rt2870sta.ko /lib/modules/ <your kernel> (e.g. 2.6.32-21-generic)/kernel/drivers/staging/rt2870/rt2870sta.ko
    Just minor details that should be obvious, but maybe not to all.

    Erik.
    Last edited by ErkSmeijer; May 4th, 2010 at 07:52 AM. Reason: typo

  4. #4
    Join Date
    Jun 2006
    Beans
    7

    Re: rt2870 onboard usb wireless N

    I tried this solution, but when complied with make returns

    WARNING: modpost: missing MODULE_LICENSE() in /home/fer/temp/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/rt3070sta.o
    see include/linux/module.h for more information
    LD [M] /home/fer/temp/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/rt3070sta.ko
    make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.32-22-generic'
    cp -f /home/fer/temp/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/rt3070sta.ko /tftpboot
    cp: não foi possível remover `/tftpboot': Permissão negada
    make: ** [LINUX] Erro 1

    What I did wrong?

  5. #5
    Join Date
    Jun 2006
    Beans
    7

    Re: rt2870 onboard usb wireless N

    Quote Originally Posted by loray View Post
    I tried this solution, but when complied with make returns

    WARNING: modpost: missing MODULE_LICENSE() in /home/fer/temp/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/rt3070sta.o
    see include/linux/module.h for more information
    LD [M] /home/fer/temp/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/rt3070sta.ko
    make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.32-22-generic'
    cp -f /home/fer/temp/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/rt3070sta.ko /tftpboot
    cp: não foi possível remover `/tftpboot': Permissão negada
    make: ** [LINUX] Erro 1

    What I did wrong?
    I was using the wrong driver, now It works. I restarted the computer, but now the connection keeping asking for my secret key, althoug itś right

  6. #6
    Join Date
    Apr 2008
    Beans
    55

    Re: rt2870 onboard usb wireless N

    Thanks Erik, I've edited it now.


    Loray

    from within the extracted directory try

    Code:
    sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
    restart your computer. If it still doesn't work can you tell me what the output of the following commands are.

    Code:
    lshw -C network
    Code:
    iwconfig
    Code:
    modinfo rt2870sta
    Code:
    lsusb
    Last edited by Cue2; May 4th, 2010 at 06:52 PM.

  7. #7
    Join Date
    Jun 2006
    Beans
    7

    Talking Re: rt2870 onboard usb wireless N

    Quote Originally Posted by Cue2 View Post
    Thanks Erik, I've edited it now.


    Loray

    from within the extracted directory try

    Code:
    sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
    restart your computer. If it still doesn't work can you tell me what the output of the following commands are.

    Code:
    lshw -C network
    Code:
    iwconfig
    Code:
    modinfo rt2870sta
    Code:
    lsusb
    It workś, great, now I have a N connection. Thanks Cue2.

  8. #8
    Join Date
    Jan 2010
    Beans
    9

    Re: rt2870 onboard usb wireless N

    Help,
    I'm having similar problems.
    At first I was getting a network connection some of the time in that the joggler would never connect on power up and would eventually prompt me for my network keys which it then took a while to reject or accept.Or I could select my network from the network manager and again it would sometimes accept this or sometimes eventually reject this.
    Interestingly enough, if I selected my neibours network it rejected that immediately.

    I tried the suggestion above, but now I can't get a network connection at all.
    (Not the end of the world, I have a backup of the USB stick).




    My output from the mentioned commands is as follows

    Any help in getting a consistently working network (which ideally automatically connects on boot) much appreciated.

    Many thanks,
    Jedster



    joggler@joggletop:~$ lshw -C network
    WARNING: you should run this program as super-user.
    *-network DISABLED
    description: Ethernet interface
    product: RTL8111/8168B PCI Express Gigabit Ethernet controller
    vendor: Realtek Semiconductor Co., Ltd.
    physical id: 0
    bus info: pci@0000:01:00.0
    logical name: eth4
    version: 02
    serial: 35:35:35:73:15:35
    width: 64 bits
    clock: 33MHz
    capabilities: bus_master cap_list rom ethernet physical
    configuration: broadcast=yes driver=r8169 driverversion=2.3LK-NAPI latency=0 multicast=yes
    resources: irq:24 ioport:e000(size=256) memory:fef10000-fef10fff(prefetchable) memory:fef00000-fef0ffff(prefetchable) memory:d0000000-d000ffff(prefetchable)
    *-network
    description: Wireless interface
    physical id: 2
    logical name: ra0
    serial: 00:0e:8e:24:c1:74
    capabilities: ethernet physical wireless
    configuration: broadcast=yes driver=RALINK WLAN driverversion=2.3.0.0 multicast=yes wireless=Ralink STA





    joggler@joggletop:~$ iwconfig
    lo no wireless extensions.

    eth4 no wireless extensions.

    ra0 Ralink STA 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:-87 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0





    joggler@joggletop:~$ modinfo rt2870sta
    filename: /lib/modules/2.6.31-20-generic/kernel/drivers/staging/rt2870/rt2870sta.ko
    version: 2.3.0.0
    license: GPL
    description: RT2870 Wireless Lan Linux Driver
    author: Paul Lin <paul_lin@ralinktech.com>
    srcversion: BFE72125F5BC16053AC2BDE
    alias: usb:v0DB0p6899d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v100Dp9031d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v050Dp815Cd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0411p00E8d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v1737p0071d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v1737p0070d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v7392p7717d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v7392p7718d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v5A57p0282d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v5A57p0280d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v1690p0740d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v04E8p2018d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v14B2p3C09d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v1482p3C09d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v050Dp815Cd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v050Dp805Cd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v157Ep300Ed*dc*dsc*dp*ic*isc*ip*
    alias: usb:v129Bp1828d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0E66p0003d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0E66p0001d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v15C5p0008d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v083Ap6618d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v13D3p3247d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v14B2p3C25d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0471p200Fd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v1740p9702d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v1740p9701d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0CDEp0025d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0586p3416d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0CDEp0022d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v083Ap7522d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v083Ap8522d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v083ApA618d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v083ApB522d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v15A9p0006d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v1044p800Bd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v07AAp003Fd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v07AAp003Cd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v07AAp002Fd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v14B2p3C27d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v14B2p3C23d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v050Dp8053d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v14B2p3C07d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v07D1p3C11d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v07D1p3C09d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v2019pED06d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v14B2p3C28d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v14B2p3C06d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0DF6p002Dd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0DF6p002Cd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0DF6p002Bd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0DF6p0017d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0B05p1742d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0B05p1732d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0B05p1731d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v177Fp0302d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0789p0164d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0789p0163d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0789p0162d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v083Ap7512d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0DF6p003Fd*dc*dsc*dp*ic*isc*ip*
    alias: usb:v0DF6p0039d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v07B8p2770d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v07B8p2870d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v148Fp2870d*dc*dsc*dp*ic*isc*ip*
    alias: usb:v148Fp2770d*dc*dsc*dp*ic*isc*ip*
    depends:
    vermagic: 2.6.31-20-generic SMP mod_unload modversions 586
    parm: mac:rt28xx: wireless mac addr (charp)






    joggler@joggletop:~$ lsusb
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 002: ID 04b4:1974 Cypress Semiconductor Corp.
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 007: ID 1307:0165 Transcend Information, Inc. 2GB/4GB Flash Drive
    Bus 001 Device 006: ID 0e6a:6001 Megawin Technology Co., Ltd
    Bus 001 Device 005: ID 0f62:1001 Acrox Technologies Co., Ltd Targus Mini Trackball Optical Mouse
    Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
    Bus 001 Device 003: ID 148f:2770 Ralink Technology, Corp.
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    joggler@joggletop:~$

  9. #9
    Join Date
    Jun 2005
    Location
    Arkansas, USA
    Beans
    380
    Distro
    Ubuntu

    Re: rt2870 onboard usb wireless N

    Feel free to jump on this bug:

    https://bugs.launchpad.net/ubuntu/+s...ux/+bug/549801

    Maybe the more attention this bug gets, the sooner we'll get someone to sort this out.

  10. #10
    Join Date
    Jan 2010
    Beans
    9

    Re: rt2870 onboard usb wireless N

    I'm not convinced that's my problem (although I may be wrong).
    Firstly I'm at 9.10 and secondly I've already got those devices blacklisted.

    Thanks,
    Jedster.

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