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

Thread: ASUS USB-N13 on Ubuntu 12.04

  1. #1
    Join Date
    May 2012
    Beans
    1

    ASUS USB-N13 on Ubuntu 12.04

    I'm completely new to installing in Ubuntu. I know very little terminal language.
    When I plug in my Asus I can connect to a network, but the internet won't load anything. My ethernet is also broken so I have no network access on my computer until I get this resolve. I tried using wine to install the windows stuff and it crashed. I tried using lsusb and other such stuff. I'm not sure what the problem is.
    anyone got any help.
    thanks

  2. #2
    Join Date
    Dec 2006
    Location
    Foster Brooks' house
    Beans
    22
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ASUS USB-N13 on Ubuntu 12.04

    Welcome stanifem! Enjoy your stay!

    Please check the following links for additional help. Apparently there are actually two different wireless chipsets in this adapter. Depends on which chipset as to which driver and set of instructions will work.

    http://ubuntuforums.org/showthread.php?t=1936246
    http://ubuntuforums.org/showthread.php?p=11716409
    If you don't try new things, you'll miss out on life's most important disappointments.
    Registered Linux user: 463847

  3. #3
    Join Date
    Jun 2012
    Beans
    7

    Re: ASUS USB-N13 on Ubuntu 12.04

    I've done a lot of search for the last 2 monthes and finally get the USB-N13 dongle work on 12.04!

    Here's how:

    1. Find the correct chipset of your USB-N13 dongle. Mine is RT3072.
    Code:
    $ lsusb
    Bus 002 Device 003: ID 0b05:1784 ASUSTek Computer, Inc. USB-N13 802.11n Network Adapter [Ralink RT3072]
    2. Download the corresponding driver from Ralink website. In this case, go to
    http://www.ralinktech.com/en/04_supp...ort.php?sn=501 and download RT8070 /RT3070 /RT3370 /RT5370 /RT5372 USB

    3. Untar the downloaded driver
    Code:
    $ cd Downloads/
    $ tar -jxvf 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.bz2
    Verify if the driver fits our chipset.
    Code:
    $ cd ~/Download/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/common/
    $ cat rtusb_dev_id.c | grep Asus
        {USB_DEVICE(0x0B05,0x1784)}, /* Asus 3072 */
    The PID/VID fit what we found with lsusb in step 1.

    4. Remove rt2800usb driver
    Code:
    $ sudo modprobe -r rt2800usb
    5. Prevent rt2800usb from loading after boot up (Any text editor will do. If you prefer gedit, just replace vi with gedit)
    Code:
    $ sudo vi /etc/modprobe.d/blacklist.conf
    add the following lines to this file
    Code:
    blacklist rt2800usb
    blacklist rt2800lib
    blacklist rt2x00usb
    blacklist rt2x00lib
    6. Edit settings for WPA and Network Manager to work (Any text editor will do. If you prefer gedit, just replace vi with gedit)
    Code:
    $ cd ~/Download/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/
    $ vi config.mk
    find the following part and change the 2 values from n to y
    Code:
    # Support Wpa_Supplicant
    HAS_WPA_SUPPLICANT=y
    
    
    # Support Native WpaSupplicant for Network Maganger
    HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
    7. Make and install
    Code:
    $ cd ~/Download/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/
    $ sudo make && sudo make install
    8. Reboot

    9. It should work after reboot. You can use Network Manager to connect to your AP now.

    10. You can check the driver status with the following commands
    Code:
    $ lsmod | grep rt5370
    rt5370sta             730263  1 
    
    $ ifconfig
    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:1583 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1583 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:149550 (149.5 KB)  TX bytes:149550 (149.5 KB)
    
    ra0       Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
              inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::f66d:4ff:feb1:72d8/64 Scope:Link
              UP BROADCAST RUNNING 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:284538040 (284.5 MB)  TX bytes:104338039 (104.3 MB)
    
    $ iwconfig
    lo        no wireless extensions.
    
    ra0       Ralink STA  ESSID:"Your-AP-SSID"  Nickname:"RT2870STA"
              Mode:Managed  Frequency=2.437 GHz  Access Point: BC:AE:C5:C3:98:B1   
              Bit Rate=270 Mb/s   
              RTS thr:off   Fragment thr:off
              Link Quality=83/100  Signal level:-52 dBm  Noise level:-76 dBm
              Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:0   Missed beacon:0
    Now I get steady 270Mb/s connection with rt5370sta (what we get after installation) to an AP of WPA2 security, instead of unstable 54Mb/s connection with rt2800usb driver which comes with 12.04.

    I'm more than happy to share this information to this community. If you bumped into the same trouble I've been through, I wish this thread will be helpful to you.
    Last edited by nidor; June 25th, 2012 at 06:52 PM. Reason: Making the process complete. Thanks to Xpression28.

  4. #4
    Join Date
    Jun 2012
    Beans
    1

    Re: ASUS USB-N13 on Ubuntu 12.04

    @nidor What directory are you in when you run the sudo make && sudo make install command?

  5. #5
    Join Date
    Jun 2012
    Beans
    7

    Re: ASUS USB-N13 on Ubuntu 12.04

    Quote Originally Posted by Xpression28 View Post
    @nidor What directory are you in when you run the sudo make && sudo make install command?
    @Xpression28, sorry I missed that. The directory is :
    ~/Download/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2 .5.0.3_DPO/

  6. #6
    Join Date
    Jun 2012
    Beans
    2

    Question Re: ASUS USB-N13 on Ubuntu 12.04

    Hi,

    I'm using Debian and I have this same network adapter that continually logs on then logs off my network at a rate of about 1Hz. It looks like it's dropping RX packets but feels like a driver issue. Anyway I found your tutorial (thanks!) but I'm having a little trouble.

    When I get to the make && make install section I get an error:

    make -C /lib/modules/3.1.9+/build SUBDIRS=/boot/firmware/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2 .5.0.3_DPO/os/linux modules

    make: *** /lib/modules/3.1.9+/build: No such file or directory. Stop.

    make: *** [LINUX] Error 2

    So, I manually created the directory so it gets one step further but now it give this error:

    make[1]: Entering directory '/lib/modules/3.1.9+/build'
    make[1]: *** No rule to make target 'modules'. Stop.
    make[1]: Leaving directory '/lib/modules/3.1.9+/build'
    make: *** [LINUX] Error 2

    I also get some warnings saying makefile modification time is in the future because my system time is not set but not sure that has anything to do with it.

    Do you understand what's going on? I sure don't!

    Thanks, Ben

  7. #7
    Join Date
    Jun 2012
    Beans
    7

    Re: ASUS USB-N13 on Ubuntu 12.04

    AnalogArsonist,

    I'm not familiar with Debian. After googling for a while, I found that many people talking about these error messages in RPi forum.

    http://www.raspberrypi.org/phpBB3/vi...=6737&start=25

    Wish you good luck!

  8. #8
    Join Date
    Jun 2012
    Beans
    2

    Smile Re: ASUS USB-N13 on Ubuntu 12.04

    Hi again,

    I was able to get the linux headers installed after some research. Then I followed your steps but I was getting a warning like this during the compile:

    WARNING: Symbol version dump /lib/modules/3.1.9+/build/Module.symvers
    is missing; modules will have no dependencies and modversion s.

    This prevented the module from loading properly and I was seeing this from dmesg and lsprobe, respectively:

    rt5370sta: no symbol version for module_layout

    FATAL: Error inserting rt5370sta (/lib/modules/3.1.9+/kernel/drivers/net/wireless/rt5370sta.ko): Invalid module format

    So after some more research, I learned I needed to add the step 'make vmlinux' after the 'make_prepare' step. The module now appears to load and shows up in ifconfig. Hoping this might help.

    Thanks, Ben

  9. #9
    Join Date
    Jun 2012
    Beans
    7

    Re: ASUS USB-N13 on Ubuntu 12.04

    After a "Recommended Update" of linux kernel to 3.2.0-27-generic-pae, the magic trick failed... Missing those short happy days with a working WiFi dongle...

  10. #10
    Join Date
    Jun 2012
    Beans
    7

    Re: ASUS USB-N13 on Ubuntu 12.04

    Don't know what went wrong, but I got it fixed by simply rebooting the AP, which is also an ASUS product, RT-N16.

    The magic trick works still.

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
  •