So, the promised account for Linux beginners on how to change VID and PID Wi-Fi adapters.
is strongly recommended before you buy an adapter to check whether the VID and PID to the list of devices drivers for rt2870 from Ralinka (located in the file common \ rtusb_dev_id.c). If it is not your device from its purchase should be avoided, but if you believe ... then about this later.
In fact, all described below is not nothing but a detailed steps for installing and compiling the Linux drivers for use of the method BigHercules.
let's go.
1. Download and install a virtual machine - VMware-workstation-6.5.4 Windows.
2. Download the Linux distribution (I do it under Ubuntu 10.4 on it further and will be discussed.)
3. Configure the VMware (there is no big deal), create a new partition (8 GB is enough), connect the image of Linux as a virtual drive.
4. Install Linux. It's easy: select the language, theme, login and password (I used a login - q1, and password - 1). We look forward to when it is established.
5. Requires internet, because after installing Ubuntu wants to upgrade - do not prevent this, otherwise the success of the operation, I can not comment.
The whole process took me about an hour with the unit. Upon completion of the upgrade reboot Ubuntu.
Here we come to activation of the interface ra0, for this you need unzipped driver from Ralink placed into usb stick's directory 2870 (link to the driver is above).
Then run the terminal and execute the following sequence of commands (you need internet access):
Code: Select all
sudo aptitude update
sudo aptitude install build-essential
Copy the folder 2870 from the stick to home directory (as in Windows, open the folder, right click on the flash drive and select copy in your home directory).
Further, if the VID and PID of your device are missing from the file ..common\rtusb_dev_id.c, and you are certainly sure that the device is in based on rt2870, put the number (code?) of the device into the file and save it. Go to the terminal and execute the following commands:
Code: Select all
cd 2870
sudo make
sudo make install
When done, your compiled driver rt2870sta.ko will be in the directory / 2870/os/linux , which we install with command:
Code: Select all
sudo insmod / home/q1/2870/os/linux/rt2870sta.ko
I draw your attention that all paths will be as if you created a user is q1, and dad is the driver with the codes 2870 and also placed in the home directory.
Next, if the error was not properly proceed to action. Sticks adapter and check to see whether its Ubuntu team:
On the screen the list of connected USB-devices should be displayed, where you should see you wifi-stick also. If it's not in the list, look at the icon of USB device in the right bottom coner of virtual machine. It should have a green dot. If there is no green dot, it means that WINDOWS took over the control of your device. If that's the case, cick on the icon an select first menu item, the device should become active. Other option is to connect the adaptor to a different USB port. In any case there no point to go on with the procedure until you see your device with the command lsusb.
If everything ok, check if ra0 is up with the command:
as the result of the command execution it will be clear if interface become active or not. If it's on, move to replacement of VID and PID as described by BigHercules, sudo command shall be executed prior to the configuration of interface
Additional checks can be done by removing the device and stuck it on again. Then execute: