Author Topic: SOLVED: ASUS USB-N13 Wireless Adapter RT3070 Chipset How to Autoload at Startup?  (Read 4744 times)

Max9610

  • Guest
I have an ASUS USB-N13 Wireless Adapter w/ RT3070 Chipset and I can not seem to get it to load the proper driver at start-up.  I'm new to both Linux and PClinuxOS and although I've attempted to look up solutions on-line and to look at command information in several books that I borrowed, I have difficulty some times understanding the information that I've read or else I'm not sure what applies to the specific version of Linux that I'm running.

I have a Linux driver for my adapter, and after much wailing and gnashing of teeth I've succeeded in compiling the driver.  After compiling the driver, I can install it using the command "/sbin/insmod rt3070sta.ko " from the directory "cd /home/mike/DPO_RT3070_LinuxSTA_V2.3.0.2_20100422/os/linux".  After doing this, the USB wireless adapter seems to work fine.  The only problem is, when I restart the computer, the wireless doesn't work until I reinstall the driver manually as discussed above.  I attempted to follow directions found in the readme files associated with the driver from both ASUS and from Ralink, but the readme files are obviously copied from earlier versions of the driver and don't seem to work, even with me attempting to change driver names and such.  I also read other posts from this forum regarding the ASUS USB-N13 and others regarding the RT3070 chipset, but they were for other versions, different chipsets, older kernel versions, etc... and although they helped me work my way through the compiling issues, I haven't been able to get the wireless adapter to work at boot-up.  

I'm running Kernel 2.6.33.7-pclos6.bfs and KDE 4.5.2 .  The pcc hardware info for my card is given below in blue:

Identification
Vendor: ‎Ralink

Description: ‎802.11 n WLAN

Media class: ‎

Connection
Bus: ‎USB

Bus PCI #: ‎7

PCI device #: ‎2

Vendor ID: ‎0x0b05

Device ID: ‎0x1784

Misc
Module: ‎rt2870


One thing of interest is that when the machine boots the Module is listed as rt2800usb instead of rt2870.  (I'm also not sure why the module changes to rt2870 instead of rt3070 after I run the command that installs the driver.)  I attempted to blacklist the rt2800usb driver and that kept it from loading, but it didn't result in the correct driver loading either.  In fact, when I ran my commands to install the rt3070 driver by hand after blacklisting the rt2800usb driver, the adapter didn't seem to connect up properly, so I removed the blacklist command.

The "Basic Wireless Tips" posting said that I should provide the text from several files in followup posts, so I'll attach that information next.  Any help/suggestions would be greatly appreciated.
Thanks.
« Last Edit: October 31, 2010, 08:18:02 PM by Max9610 »

Max9610

  • Guest
Here is my modprobe.conf file info:

[root@localhost linux]# cat /etc/modprobe.conf
install scsi_hostadapter /sbin/modprobe ahci; /sbin/modprobe ata_piix; /bin/true
install usb-interface /sbin/modprobe ehci_hcd; /sbin/modprobe uhci_hcd; /bin/true
alias ra0 usbcore
alias eth0 r8169
[root@localhost linux]#




Here is my modprobe.preload info:

[root@localhost linux]# cat /etc/modprobe.preload
# /etc/modprobe.preload: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a `#', and everything on the line after them are ignored.
# this file is for module-init-tools (kernel 2.5 and above) ONLY
# for old kernel use /etc/modules
fuse
raw1394
sbp2
ohci1394

evdev
[root@localhost linux]#




Here is my ifcfg-ra0 file info:

[root@localhost linux]# cat /etc/sysconfig/network-scripts/ifcfg-ra0
DEVICE=ra0
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=35
MII_NOT_SUPPORTED=no
USERCTL=no
RESOLV_MODS=no
WIRELESS_MODE=Managed
WIRELESS_ESSID=
deleted text
WIRELESS_ENC_KEY=s: deleted text
WIRELESS_WPA_DRIVER=wext
WIRELESS_WPA_REASSOCIATE=no
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=yes
DHCP_CLIENT=dhclient
NEEDHOSTNAME=no
PEERDNS=yes
PEERYP=yes
PEERNTPD=no
[root@localhost linux]#



Here is the text of the blacklist file that was mentioned in the original "Wireless Tips" post.  There are several other blacklist files and I can provide the text from them if necessary:

[root@localhost linux]# cat /etc/modprobe.d/blacklist
blacklist ssb

blacklist ssb
[root@localhost linux]#


Let me know if anything else is needed.
Mike Maxwell

Max9610

  • Guest
After posting my question I continued to try things and seem to have solved the problem by implementing the solution at:

http://pclinuxos.com/forum/index.php?PHPSESSID=kqaacu8v2cpleogltbkq2j6173&topic=76312.0

I had tried this before trying to modify the entries to fit a rt3070 instead of a rt2870.  The fix seems to have be entering the file entries exactly as indicated for the rt2870 driver and not changing them to rt3070.  (Doesn't seem to make sense, but it works.)  It took several restarts to get the wireless to start connecting automatically, but it seems to be working fine now.  My thanks to Poleman for the original post.
« Last Edit: October 31, 2010, 08:19:27 PM by Max9610 »