The article content from the network, non-my original. .
2009-11-03 23: 58.
In July bought a block in mid-Tenda's Tenda W541U V2. .0 Wireless card, then did not expect to use under linux, the problem came back after that drive is too much trouble, the official does not provide drivers under linux, web solutions without trial a success, it is depressing. .
Technical support to the Tenda and gave to a driver, but did not say specifically compile details his own try to compile a .o file lsmod. after the wireless adapter is not detected. Then write it because there is no answer. Could this problem solved, but they really can't.
Ubuntu forum two days ago to see the site and found that foreigners a post that is to solve this problem, follow the steps to test a bit, and she can use the compiled driver, now steps and precautions are summarized as follows, also hope to help as I do with Tenda W541U V2. .0 (The model I now recite every word of a) wireless network card people! . .
Reference URL: http://georgia. .ubuntuforums. .org/showthread. .php? t = 1285828.
Title: Tenda W541U V2. .0 Wireless USB Adapter / Ralink RT2070. .
Specific process we can reference the post on the steps, I simply summarize the process and to pay attention to place:.
First, demand:. .
1 hardware:.
Wireless LAN Type:. .
Tenda W541U V2。.0 Wireless USB Adapter ( Ralink RT2070L Chipset)。.
Enter the command terminal: lsusb. .
On the wireless card's content should be similar to the following:.
Bus 001 Device 003: ID 148f: 2070 Ralink Technology, Corp. .
One of the following must be 148f ID: 2070, if not, does not guarantee the success of later. |。.
2 driver download:. .
Driver:。.
RT3070USB (RT307x) http://www. . Ralinktech. .com / support. . Php? S = 2. .
3 operating system: ubuntu 9. .04.
Two steps:. .
Note: the following where due to permissions issues that were not executed, in front of sudo try!.
1. . Download RT3070USB driver (above URL). .
2. Extract:.
# Sudo tar jxvf 2009_0525_RT3070_Linux_STA_v2. .1. .1. .0. . Bz2. .
3 in os/linux usb_main_dev. under the # ifdef .c RT3070 below add the following statement:.
(USB_DEVICE (0x148F, 0x2070)), / * Ralink 2070L * /. .
4 compiling modules:.
Back to the beginning of the directory, that is, the first layer solution into complete directory:. .
cd 。./。.
make. .
5 If the compilation succeeds, the installation: |.
make install. .
If the compilation is unsuccessful and your LINUX kernel version greater than or equal to 2. .6. .31, please go to step 11 to view and handle!..
6 COPY. . DAT files to / etc / Wireless, copy. . Bin to / 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 /. .
Note: to install dos2unix to get rid of some Windows files, in turn, the extra characters.
Start Module 7:. .
#modprobe rt3070sta。.
8 test module (hereinafter 192. .168. .0. .33's IP address set for myself):. .
#ifconfig ra0 inet 192。.168。.0。.33 up。.
# Iwconfig ra0. .
At this point, if you enter: ifconfig, should see ra0 equipment.
9 configuration card:. .
Because I used is not the default ubuntu network management tool, which is a tool that only requires WICD wireless network after the other filled ra0 according to the appropriate network settings can be configured after configuration.
Two points to note:. .
A) as regards the useful to the WPA mode encryption, refer to the tips there are referred to the need to modify the configuration file when compiling os/linux/config. .mk:.
HAS_WPA_SUPPLICANT = y. .
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y。.
b) If you use the WICD tool, it will WPA Suppliant Driver selected wext. .
10 refreshed, wireless network should be able to be detected, and finally we can say goodbye to Wired's day. Happy one!.
11 for the LINUX kernel version higher than or equal to 2. .6. .31 Case, compiled a compilation error occurs when the reference paste provided patch. .
The following paragraphs I will not turn over, we are basically able to understand.
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
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 I simply W541U used to be used when the Station mode, AP mode is not used, the specific settings do not know how to do this.
Good Luck! . .