RalinkRT73
⇤ ← Revision 1 as of 2006-06-13 08:23:40
3449
Comment: Work in Progress
|
4647
Work in Progress
|
Deletions are marked like this. | Additions are marked like this. |
Line 69: | Line 69: |
To compile, first make sure that you have the essential build tools and the kernel headers matching your kernel version, as described in [wiki:KernelSourceDriver KernelSource Driver]. Then, it was a case of following the instructions given in the README that came with the sources. {{{ cp -v Makefile.6 ./Makefile # Because we are using kernel v2.**6** make all }}} (When building, I get a lot of errors of the form `warning: "DBG" is not defined`. This is no cause for concern, and these warnings can be supressed by uncommenting the line `#CFLAGS += -DDBG` in the Makefile) Now copy the newly created kernel module, and the provided firmware, into their correct directories: {{{ sudo cp -v rt73.ko /lib/modules/`uname -r`/kernel/drivers/usb/net/ sudo mkdir -pv /etc/Wireless/RT73STA sudo cp -v rt73.bin /etc/Wireless/RT73STA/ }}} (These locations don't seem to fit in with Dapper's filesystem, but we'll leave them in for the moment, anyway. What looks more logical to me is to create the RT73STA directory in {{{/lib/firmware/`uname -r`}}}, and place all the files in this directory. In this case, one would also have to edit the paths to the files in 'rt_config.h') |
ContentsBRTableOfContents(2) |
This is a template page to set up wireless driver pages under WifiDocs Anchor(top)
1. Driver Information
Enter general driver information here
- Driver Name:
- Module Name:
2. Support Channels
Enter general help that will work at anytime with the driver. See section below if it's release specific
2.1. WEP info
Enter anything related to getting wep to work
2.2. WPA info
Enter anything related to getting WPA to work
3. Ubuntu Release Specific Info
Under the correct section enter anything that is specifc to the release only. See above general section if it is not release specific
3.1. Hoary 5.04
3.2. Breezy 5.10
3.3. Dapper 6.06
To see if your USB device would be supported by this driver, have a look at the information printed on the device. In my case, the model information reads "Model No.: DWL-G122 H/W Ver.:C1 F/W Ver.:3.00" What's important here is that the hardware version is C1 - earlier models are covered by different drivers.
Also note the output of the lsusb command, which, in my case, produces the following line: Anchor(lsusb_id)
Bus 003 Device 002: ID 07d1:3c03 D-Link System
Note the two hexadecimal ID numbers (07d1:3c03), as they'll be used later when compiling the driver source.
4. Compile Newer Driver
To compile the driver, I first downloaded the source from the Ralink support page, found at this [http://www.ralinktech.com/supp-1.htm link]. The source can be found in the Linux table, in the section headed 'RT73 (RT2571W)', and from the link marked [http://www.ralinktech.com/drivers/Linux/RT73_Linux_STA_Drv1.0.3.0.tar.gz USB] At the time of writing, the driver is version 1.0.3.0, date 2006/04/28.
You can download and unpack the sources with the following commands:
wget http://www.ralinktech.com/drivers/Linux/RT73_Linux_STA_Drv1.0.3.0.tar.gz tar -xvf RT73_Linux_STA_Drv1.0.3.0.tar.gz
Once the source files were unpacked, I followed the advice in [http://61.222.76.235/phpbb2/viewtopic.php?p=8430 this] forum posting to edit the source files. What you have to do is edit the file named 'Module/rtmp_def.h'. Find the section headed by the comment // VENDOR ID and add the IDs that were reported by the lsusb command [#lsusb_id earlier.]
In my case, I added the lines:
#define DLVID1 0x07d1 // D-Link DWL-G122 rev C1 #define DLPID1 0x3c03
In the line starting with #define RT73_USB_DEVICES, just lower down, I then added the two IDs I had just defined, like so:
{USB_DEVICE(DLVID1,DLPID1)}, \
To compile, first make sure that you have the essential build tools and the kernel headers matching your kernel version, as described in [wiki:KernelSourceDriver KernelSource Driver]. Then, it was a case of following the instructions given in the README that came with the sources.
cp -v Makefile.6 ./Makefile # Because we are using kernel v2.**6** make all
(When building, I get a lot of errors of the form warning: "DBG" is not defined. This is no cause for concern, and these warnings can be supressed by uncommenting the line #CFLAGS += -DDBG in the Makefile)
Now copy the newly created kernel module, and the provided firmware, into their correct directories:
sudo cp -v rt73.ko /lib/modules/`uname -r`/kernel/drivers/usb/net/ sudo mkdir -pv /etc/Wireless/RT73STA sudo cp -v rt73.bin /etc/Wireless/RT73STA/
(These locations don't seem to fit in with Dapper's filesystem, but we'll leave them in for the moment, anyway. What looks more logical to me is to create the RT73STA directory in /lib/firmware/`uname -r`, and place all the files in this directory. In this case, one would also have to edit the paths to the files in 'rt_config.h')
Section on compiling newer/latest driver
4.1. Specific Release Notes
Instructions should be generic and add any notes that are release specific in this section. Then create an anchor link where needed in instructions. Anchor example
[[Anchor(name)]] - This would be the anchor you are linking to [#name {any words describing go here}] this is how you would enter the link in the instructions to link to the anchor
Here is an example, if you click on [#top this link] it will take you back to the top of page.
WifiDocs/Driver/RalinkRT73 (last edited 2008-08-06 16:21:04 by localhost)