[转]Ubuntu16.04下ralink rt3290驱动安装

出处:https://askubuntu.com/questions/253632/how-do-i-get-a-ralink-rt3290-wireless-card-working

解决为问题:Linux下rt3290驱动原为rt2800pci.ko导致网络不稳定,网速慢等问题。更新为rt3290sta.ko网速和稳定性都有提高。

There are several guides that speak of the same way. Guides like this source, this source or the bug report mention some procedures to get this Wireless card working on several types of laptops.

Some cases mention downgrading to 12.04 and then installing a specific 3.6 kernel version for it, others mention upgrading to 13.04 and installing the 3.9 kernel version. And even another case where it mentions the user to download the drivers from the official site and do a step by step guide on how to install it.

I will mention several ways of doing it, all of which involve downloading the driver, compiling it and making sure it works. It has been noted that in the 3.9 kernel version, the wireless card is working correctly, so in 13.04 with backports or 13.10 this issue should be resolved.

So here are several ways you can get your Ralink RT3290 wireless card working in 12.04 and above (Not all methods will work, so try to look for the one that works best for your computer):

Since your vendor id is 1814:3290 it means you have a Ralink RT3290 wireless card. For that case we (After connecting the wired cable):

  1. Connect a wired cable connection to the computer to have Internet connection for the moment while you do the steps below.
  2. Open a terminal and execute the following line to install everything needed to compile your very own wireless drivers:
    sudo apt-get update && sudo apt-get install build-essential linux-headers-generic
    

Now, depending on how you wish to proceed, follow one of the guides below:

NOT OFFICIAL DRIVERS FOR Kernel 4.X

If the above does not work for you on Kernels 4.X, the solution I was able to test following this source was

PLease Download the Updated Driver (Big Thanks to Jim Colaco) From Here or Here. This was tested on Ubuntu 16.04 and 16.10.

sudo apt-get install dkmssudo tar -xvf rt3290sta-2.6.0.0.dkms.tar -C /usr/src
sudo dkms install -m rt3290sta -v 2.6.0.0 --force
sudo reboot

Now on some cases, you will need to enable the interface for the wireless driver (Because it will not bring the interface up automatically) and then restart the network service. Something like this:

ifconfig -asudo ifconfig WIRELESSCARD up
sudo service network-manager restart

So an example would be:

sudo ifconfig eno1 up
sudo service network-manager restart

I recommend putting this 2 lines inside /etc/rc.local above the "exit 0" line so it brings the interface up automatically.

OFFICIAL SITE GUIDE

  1. Go to Mediatek and download the Ralink RT3290 Driver for Linux MediaTek did a fine job on moving the link to download and not having a redirect for it. Here is the new Link for all Downloadable Firmware but guess what, they removed RT3290 from it. Go Mediatek ;)

    Thank to others that also had the problem and shared their sources, here is a list of all available Download links for you to use while Mediatek decides to help Linux and open up:

  2. Rename the file to 2012_0508_RT3290_Linux_STA_v2.6.0.0.tar.bz2 because Mediatek did a great job on making sure the file works correctly.
  3. Extract the file and it should create a folder named DPO_RT3290_LinuxSTA_V2600_20120508
  4. Go to DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/ and edit the file config.mk
  5. On line 31 you should find the following variable:

    HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n

    change it to

    HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

    and save the file.

  6. Go to your main extracted folder (It should be the DPO_RT3290_LinuxSTA_V2600_20120508 folder) and type the following:

    make

    sudo make install

  7. If everything compiled correctly do the following:     modprobe rt3290sta
  8. If step 7 runs without any problems, we add the module to the list of modules to loaded upon every boot:

    sudo gedit /etc/modules`

    and add a line at the end of the file that says rt3290sta. Save and exit.

DROPBOX GUIDE

(Not recommended, as you‘re downloading an untrusted tarball off of a Dropbox account.

  1. Download the source driver:

    wget http://dl.dropbox.com/u/11876059/DPO_RT3290_LinuxSTA_V2600_20120508.tar.gz
    

    and we then decompress the file

    tar -xvf DPO_RT3290_LinuxSTA_V2600_20120508.tar.gz
    
  2. Go inside the newly created folder:
    cd ~/DPO_RT3290_LinuxSTA_V2600_20120508
    

    and we start the compiling process

    make
    sudo make install
    
  3. We then test to see if the driver is correctly compiled and installed
    sudo modprobe rt3290sta
    
  4. If step 3 runs without any problems we then add the module to the list of modules to loaded upon every boot:
    sudo gedit /etc/modules
    

    and add a line at the bottom that says rt3290sta. Save and exit.

EXTRA GUIDE

Some users mention additional steps. This might or not apply to you. If you feel the system is not working, maybe one of the points below can help you along the way:

  • When opening the config.mk file, do not only change the HAS_NATIVE_WPA_SUPPLICANT to a value of y, but also do it with HAS_WPA_SUPPLICANT in case it has n. In my case it had y but it should be checked to make sure both WPA_SUPPLICANT are set to `y.
  • Blacklisting conflicting wireless drivers. Do the following:

    sudo gedit /etc/modprobe.d/blacklist.conf

    Add the following lines (Make sure they are not there in the first place):

    #Wireless drivers conflicting with rt3562sta

    blacklist rt2800pci

    blacklist rt2x00pci

  • Update initramfs. Do the following: sudo update-initramfs -u
  • If you have trouble compiling the driver on Ubuntu 13.04 or Ubuntu 13.10 (and perhaps later versions as well), then this may be because of a change to the linux kernel creating an incompatibility with the driver code. This can possibly be fixed by opening

    gedit os/linux/pci_main_dev.c

and adding the following after the "#include " near the top

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
#define __devexit
#define __devinit
#define __devinitdata
#endif

then change the portion of the file which says

 #if LINUX_VERSION_CODE >= 0x20412
 remove:     __devexit_p(rt2860_remove_one),
 #else
 remove:     __devexit(rt2860_remove_one),
 #endif

to

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
remove:     rt2860_remove_one,
#else
#if LINUX_VERSION_CODE >= 0x20412
 remove:     __devexit_p(rt2860_remove_one),
#else
 remove:     __devexit(rt2860_remove_one),
#endif
#endif

This will hopefully solve the compiler error. Return to the DPO_RT3290_LinuxSTA_V2600_20120508 directory and follow the instructions as above.

附件:链接: http://pan.baidu.com/s/1c3Zufc 密码: 3rpj

时间: 2024-10-17 11:34:10

[转]Ubuntu16.04下ralink rt3290驱动安装的相关文章

Ubuntu16.04下LAMP环境的安装与配置

Ubuntu16.04下LAMP环境的安装与配置 最近做个实验需要用到Ubuntu环境的靶场,所以这里介绍下Ubuntu环境下LAMP的安装与配置,话不多说,我们gkd! 1.Apache2的安装 首先确保机器已经进行了sudo apt-get update && sudo apt-get upgrade,如果速度慢请换源,这里我使用的是清华源. sudo apt-get install apache2,安装信息省略,一般安装结束之后apache会自动开启. systemctl statu

Ubuntu16.04下Hadoop的本地安装与配置

一.系统环境 os : Ubuntu 16.04 LTS 64bit java : 1.8.0_161 hadoop : 2.6.4 二.安装步骤 1.安装并配置ssh 1.1 安装ssh 输入命令:  $ sudo apt-get install openssh-server  ,安装完成后使用命令 $ ssh localhost 登录本机.首次登录会有提示,输入yes,接着输入当前用户登录电脑的密码即可. 1.2 配置ssh无密码登录 首先使用命令 $ exit 退出上一步的ssh,然后使用

Ubuntu16.04下为chrome/firefox安装flash player插件

为chrome安装flash: 打开终端,输入:sudo apt-get install pepperflashplugin-nonfree 为firefox安装: 参考:http://jingyan.baidu.com/article/2fb0ba40a7832600f2ec5f80.html 注意: "拷贝完之后再将“usr”目录下所有文件拷到/usr下,执行命令:sudo cp -r usr/* /usr"这一句中第一个usr是指压缩包解压之后包含的usr目录,第二个/usr,是

Ubuntu16.04下安装redis

Ubuntu16.04下安装redis 保证网络畅通,选定好下载工作路径,执行以下命令下载redis-3.2.6: sudo wget http://download.redis.io/releases/redis-3.2.6.tar.gz  解压该文件: sudo tar -zxvf redis-3.2.6.tar.gz 会在当前目录下生成文件夹redis-3.2.6,我把它移动到了/usr/redis目录下: sudo mv redis-3.2.6 /usr/redis 如果没有安装gcc,

Ubuntu16.04下安装oracle客户端

在Ubuntu16.04下安装oracle数据库客户端,使Django项目连接到Oracle数据库 1.下载oracle客户端安装包: 进入官网http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html下载如下所需的三个包. oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm oracle-instantclient11.2-devel-11.2.0.4.0-1

Ubuntu16.04下编译安装及运行单目ORBSLAM2

官网有源代码和配置教程,地址是 https://github.com/raulmur/ORB_SLAM2 1 安装必要工具 首先,有两个工具是需要提前安装的.即cmake和Git. sudo apt-get install cmake sudo apt-get install git 2 安装Pangolin,用于可视化和用户接口 安装依赖项: sudo apt-get install libglew-dev sudo apt-get install libpython2.7-dev 先转到一个

ubuntu16.04下安装artoolkit5

目前对AR技术的常见理解就是CV(Computer Vision)+CG(Computer Graphic).CV的方法很多,简单些比如FREAK+ICP(ARToolKit中的NFT),复杂些就是SLAM(Magic Leap).CG就没什么好说的,利用CV算法获取到的图形相关信息(比如CG中的模型矩阵.视图矩阵.投影矩阵)进行绘制.从这一点上来说Pokemon GO确实不能算作AR游戏,毕竟人家只是基于LBS的. 从目前来看vision based的AR系统才是主流.但是局限于我个人的见识,

ubuntu16.04下基于Python的OpenCV的安装

这几天一直在学习基于Python的OpenCV ,开发环境是在Ubuntu16.04下,学习的心得就是基于Python的OpenCV开发基本上就属于函数式编程了,OpenCV提供了大多数的功能函数,以及大多数的算法封装,并不需要从头开发,不需要重复的造轮子,需要的仅仅是将各个零部件进行组装.所以学习起来相对容易一些.但是这是建立在对于Python有一定的基础上的.首先是OpenCV的安装,本文以OpenCV3.4.1的安装为例, 1.首先去官网下载http://opencv.org/releas

ubuntu16.04下sublime text3安装和配置

ubuntu16.04下sublime text3安装和配置 2018年04月20日 10:31:08 zhengqijun_ 阅读数:1482 1.安装方法 1)使用ppa安装 sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get install sublime-text-installer 卸载 sublime text 命令: sudo apt-get remove s