ubuntu下腾达W541U V2.0 无线网卡驱动的使用
2009-11-03 23:58

7月中旬买了块腾达的Tenda W541U V2.0的无线网卡,当时没想到要在linux下用,回来后才发现驱动问题比较麻烦,官方不提供linux下的驱动,网上的解决方案没有试成功的,很是郁闷。

给Tenda的技术支持写过信,给到了一个驱动,但没有说具体编译的细节,自己试着编译出一个.o文件,lsmod后还是检测不到无线网卡。再写信就无回音了。可能这个问题很好解决,但自己确实搞不定。

前两天到ubuntu论坛网站上去看,发现老外的一篇贴子,说是解决了这个问题,按照相应步骤试了一下,果然编译了可以使用的驱动,现将步骤和应注意事项总结如下,还希望能帮助和我一样用Tenda W541U V2.0(这个型号我现在是倒背如流了)无线网卡的人!

参考的网址:http://georgia.ubuntuforums.org/showthread.php?t=1285828
标题是:Tenda W541U V2.0 Wireless USB Adapter / Ralink RT2070

具体的流程大家可以参考贴子上的步骤进行,我只是简单的总结一下流程与要需注意的地方:

一、需求:

1 硬件:
无线网卡型号:
Tenda W541U V2.0 Wireless USB Adapter ( Ralink RT2070L Chipset)

在命令终端里输入:lsusb
关于无线网卡的内容应该是类似于以下:
Bus 001 Device 003: ID 148f:2070 Ralink Technology, Corp.
其中ID 后面必须是148f:2070 ,如果不是,不能保证后面是否成功。|
2 驱动下载:
Driver:
RT3070USB(RT307x) http://www.ralinktech.com/support.php?s=2

3 操作系统:ubuntu 9.04

二、步骤:
注意: 以下操作凡是因权限问题而未执行的,请在前面加上sudo再次尝试!
1. 下载RT3070USB driver(上面的网址)
2. 解压:
#sudo tar jxvf 2009_0525_RT3070_Linux_STA_v2.1.1.0.bz2
3 在 os/linux下的usb_main_dev.c 里的#ifdef RT3070下面增加以下语句:
{USB_DEVICE(0x148F,0x2070)}, /* Ralink 2070L */
4 编译模块:
回到刚开始的目录,即解决完进入的第一层目录:
cd ../..
make
5 如果编译成功,则安装:|
make install
如果编译不成功,且你的LINUX 内核版本高于等于2.6.31 的情况,请到步骤11查看并处理!

6 COPY .DAT文件到 /etc/Wireless,copy .bin 到 /lib/firmware

#mkdir -p /etc/Wireless/RT2870STA
#cp RT2870STA.dat /etc/Wireless/RT2870STA/
#apt-get install tofrodos
#dos2unix /etc/Wireless/RT2870STA/RT2870STA.dat
#chmod +x /etc/Wireless/RT2870STA/RT2870STA.dat

#cp common/rt2870.bin /lib/firmware/

注意:要安装dos2unix来去掉一些windows下文件转过来时的多余的字符。
7 启动模块:
#modprobe rt3070sta
8 测试模块(以下192.168.0.33的IP地址自己定 ):
#ifconfig ra0 inet 192.168.0.33 up

#iwconfig ra0
这时,如果输入:ifconfig,应该可以看到ra0设备
9 配置网卡:
因为我用的不是ubuntu默认的网络管理工具,而是WICD工具,只需要 无线网络 处填入 ra0后其它的按相应网络设定配置后 即可配置完毕。
有两点要注意的:
a) 至于有用到WPA方式加密的情况,参考贴里有提到需要修改编译时的配置文件 os/linux/config.mk:
HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
b) 如果使用WICD工具的话,将WPA Suppliant Driver选为wext。

10 刷新后,无线网络应该能被检测到,终于可以告别有线的日子了。happy一个!

11 对于LINUX 内核版本高于等于2.6.31 的情况,编译时会出现一个编译错误,参考贴中提供了patch。
下面这段我就不翻了,大家基本上都能看明白的。

UPDATE: Linux Kernel >= 2.6.31 / Ubuntu Karmic Koala 9.10 compile patch!
Ok, after speaking with another person and installing Ubuntu 9.10 on my other box I noticed this driver will not compile on my brand new 2.6.31-14-generic kernel.

The error I received (and probably many people do when attempting to compile most ralink drivers under 2.6.31 because this kernel replaced the old net_device structure with a new one called net_device_ops) was:

Code:
CC [M]  /root/2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/../../os/linux/rt_linux.o
/root/2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSNetDevAttach’:
/root/2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/../../os/linux/rt_linux.c:1510: error: ‘struct net_device’ has no member named ‘open’
/root/2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/../../os/linux/rt_linux.c:1511: error: ‘struct net_device’ has no member named ‘stop’
/root/2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/../../os/linux/rt_linux.c:1512: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/root/2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/../../os/linux/rt_linux.c:1513: error: ‘struct net_device’ has no member named ‘do_ioctl’
/root/2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/../../os/linux/rt_linux.c:1519: error: ‘struct net_device’ has no member named ‘get_stats’
/root/2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/../../os/linux/rt_linux.c:1553: error: ‘struct net_device’ has no member named ‘validate_addr’
make[2]: *** [/root/2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/../../os/linux/rt_linux.o] Error 1
make[1]: *** [_module_/root/2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'
make: *** [LINUX] Error 2

After some deep searching I found this rt3070-2.6.31-compile.patch (a part of rt3070-kmod Fedora 11 package) on lists.rpmfusion.org/pipermail/rpmfusion-commits/2009-August/006214.html. Once you apply it, it will compile just fine.

I have attached it to this post, just:

Code:
$gunzip rt3070-2.6.31-compile.patch.gz
$patch -p0 < rt3070-2.6.31-compile.patch
patching file 2009_0525_RT3070_Linux_STA_v2.1.1.0/include/rtmp_os.h
patching file 2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/rt_linux.c
patching file 2009_0525_RT3070_Linux_STA_v2.1.1.0/os/linux/rt_main_dev.c
$cd 2009_0525_RT3070_Linux_STA_v2.1.1.0/
$make

Also make sure that rt2800usb, rt2x00usb and rt2x00lib are blacklisted as they now recognize this device (under Ubuntu 9.10) but the device will not function properly (no scan results).

Code:
$sudo pico /etc/modprobe.d/blacklist.conf
add the following lines:
blacklist rt2x00usb
blacklist rt2x00lib
blacklist rt2800usb
close and save.
$sudo rmmod rt2x00usb (just in case)
$sudo rmmod rt2x00lib (just in case)
$sudo rmmod rt2800usb (just in case)

12 我只是将W541U用来当Station模式来用,AP模式还没用过,具体设置不知如何操作。

祝各位好运!

ubuntu下腾达W541U V2.0 无线网卡驱动的使用相关推荐

  1. 腾达无线网卡驱动linux,在Ubuntu上安装腾达W541U V2.0 (RT2070)无线网卡驱动【使用2011新驱动】...

    这个腾达W541U V2.0 (RT2070)无线网卡,实在无语,网上已经有够多的帖子谈它的驱动问题了.经过一翻折腾,今天在Ubuntu上把安装腾达W541U V2.0 (RT2070)无线网卡驱动过 ...

  2. 如何在Ubuntu上驱动腾达W541U V2.0 (RT2070)无线网卡【使用2011新驱动】

    这个破网卡,实在无语,网上已经有够多的帖子谈它的驱动问题了.经过一翻折腾,今天把过程记录下来,为自己留着,也为给大家参考. 网上的帖子多使用的是官方2009年的旧驱动来编译.这个旧版本有在2.6.31 ...

  3. ubuntu 12.04解决Broadcom STA无线网卡驱动安装失败解决

    ubuntu 12.04解决Broadcom STA无线网卡驱动安装失败解决 首先,打开终端并输入:ls -nn | grep 0280查看网卡的PCI.ID, 我的是:03:00.0 Network ...

  4. Ubuntu应用---安装 Intel Wireless-AC 9462 无线网卡驱动(无法连接wifi,完美解决)

    Ubuntu应用---安装Intel Wireless-AC 9462 无线网卡驱动 (无法连接wifi,完美解决) 注意 方法一 (此方法巨坑,勿踩,请看第二种方法) 1.1 官网下载驱动 1.2 ...

  5. 啥也不懂,实现Deepin系统如何有效安装TL-WDN5200H v2.0 linux驱动,自测成功

    网友您好,我是不懂编程的纯白,如果你和我一样装了很久不明白问题在哪不爽一条条看,如果没有不爽只想弄好就行,直接看"怎么装". 如果有专业编程开发的前辈考看到,希望对我不懂的,没解释 ...

  6. Linux Ubuntu系统台式电脑安装外置USB无线网卡驱动(以net-core磊科NW392无线网卡为例)

    前言 最近想让自己的台式电脑也能连上WiFi,台式电脑没有无线网卡,所以使用了一个外置USB无线网卡,就像下面这两个 这个直接插在电脑上就能使用,对于Windows系统来说,使用这个网卡操作非常简单, ...

  7. ubuntu 安装Qualcomm Atheros QCA9565 AR9565 无线网卡驱动并连接wifi网络

    9565的无线网卡驱动需要加载的是ath9k,所以下载驱动包编译,之后加载ath9k模块就可以使用无线网卡了. 下载驱动源码包: wgethttps://www.kernel.org/pub/linu ...

  8. ubuntu下编译安卓7.0源码

    ubuntu下使用国内镜像下载安卓7.0源码 本文使用的环境如下: 1.Ubuntu系统:ubuntu-18.04.5-desktop-amd64 2.repo:谷歌开发的方便拉安卓源码的工具 3.p ...

  9. lenovo Y450 --- Ubuntu 13.04 安装 博通无线网卡驱动(系统离线上不了网的情况)

    我的情况:系统上不了网,校园网,Ubuntu 连不上我们学校的翼讯,有线连不成网,只有无线可以,而新装的Ubuntu系统不能连接无线网,因此我们需要给Ubuntu系统安装驱动. ubuntu系统的首先 ...

最新文章

  1. 在VMware Workstation中安装Ubuntu设置网络连接
  2. 【放置奇兵】踩坑记录( 白字、红字、黄字)tips 小技巧
  3. PostgreSQL 行变列的小应用
  4. 问题之sqlyou的使用
  5. ssh根据姓名查询的时候报错java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-based!
  6. TRUNCATE vs DELETE命令
  7. Liskov替换原则(LSP)
  8. java ajax报错500,(Struts2+JSON+Ajax) XMLHttpRequest ==500如何解决
  9. cad监控图标_干货!多种不同环境的无线视频监控系统拓扑图
  10. python中a* b是什么意思_Python中的a+=b和a=a+b之间的区别是什么?
  11. CSS —— 多媒体查询
  12. vs2010+Silverlight4+wcf开发部署全过程
  13. vbscript 微软教程网址
  14. linux limits.conf 生效,limits.conf不生效问题
  15. php爆路径方法总结
  16. ...mapMutations的使用
  17. skyline开发:TE弹出窗口和主页面的交互
  18. 爬虫训练场项目重要组件,导航栏+轮播图
  19. QNAP 威联通磁盘分区探索与数据导出
  20. 02实例化需求阅读笔记之二

热门文章

  1. oracle子句的用法,oracle RETURNING 子句使用方法
  2. 日语助词へ的语法汇总,请牢记
  3. 短视频+内容营销,引流电商带货新浪潮
  4. Java高性能解析器实现思路及方法
  5. 【uni-app】base64转图片
  6. 【python】Flask之模板引擎
  7. Uncaught buffer error
  8. 怎样才能获得充分的休息
  9. 关于TCP全双工模式的解释
  10. centos 7 安装音频视频解码器