RalinkRT73

Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2006-06-13 08:23:40
Size: 3449
Editor: 84-72-25-133
Comment: Work in Progress
Revision 3 as of 2006-06-13 09:49:21
Size: 5651
Editor: 84-72-25-133
Comment: First draft
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
  ''Enter general driver information here''
Line 13: Line 12:
  * Driver Name:
  * Module Name:
  * Driver Name: RT73_Linux_STA_Drv1.0.3.0
  * Module Name: rt73.ko
Line 20: Line 18:


== WEP info ==
  ''Enter anything related to getting wep to work''


== WPA info ==
  ''Enter anything related to getting WPA to work''

Line 32: Line 20:

== Hoary 5.04 ==

== Breezy 5.10 ==
Line 57: Line 40:
(There is also a firmware archive available from the same page, but the md5sum of the firmware contained therein is the same as that of the firmware in the sources archive, so it's only necessary for you to download the sources archive. This might change as time progresses, however, so it might be worthwhile to check yourself)
Line 69: Line 54:
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)
Line 70: Line 61:
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/
dos2unix rt73sta.dat
sudo cp -v rt73sta.dat /etc/Wireless/RT73STA/rt73sta.dat
}}}
(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')
Line 71: Line 71:
Once done, all I had to do was insert the module, and plug in my device, and the network was up and running!
{{{
$ sudo insmod /lib/modules/`uname -r`/kernel/drivers/usb/net/rt73.ko
$ dmesg
  [ nnn.nnnnn] rtusb init ====>
  [ nnn.nnnnn] usbcore: registered new driver rt73
$ # Plug in wireless adapter here
$ dmesg
  [ nnn.nnnnn] usb 1-1: new full speed USB device using uhci_hcd and address 2
  [ nnn.nnnnn] idVendor = 0x7d1, idProduct = 0x3c03
  [ nnn.nnnnn] rausb0 (WE) : Driver using old /proc/net/wireless support, please fix driver !
  [ nnn.nnnnn] rt73 driver version - 1.0.3.0
  [ nnn.nnnnn] rausb0: no IPv6 routers present
}}}
Line 72: Line 86:
  ''Section on compiling newer/latest driver'' #TODO: What is the Dapper/Debian standard method of loading this module on boot?
Line 74: Line 88:
== 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.
== WEP info ==
Line 77: Line 90:
  Anchor example
  {{{
  [[Anchor(name)]] - This would be the anchor you are linking to
The above description is all it took to connect to my OPEN wireless connection point. Connecting with WEP is another story. At the moment, if I try and set a WEP key with the GNOME network manager, my entire system hangs. I'll carry on playing around, and post any further results here. Some open questions:
1. Is it easy to fix the driver so it doesn't use old /proc/net/wireless support
1. Which is more relevant to the config - the /etc/network/interfaces file, or the rt73sta.dat file?
Line 81: Line 94:
  [#name {any words describing go here}] this is how you would enter the link in the instructions to link to the anchor
  }}}
== WPA info ==
  ''Enter anything related to getting WPA to work''
Line 84: Line 97:
  Here is an example, if you click on [#top this link] it will take you back to the top of page. == Reader Comments ==
???
Line 86: Line 100:
CategoryNetworking CategoryNetworking CategoryNetworking

This is a template page to set up wireless driver pages under WifiDocs Anchor(top)

1. Driver Information

  • Driver Name: RT73_Linux_STA_Drv1.0.3.0
  • Module Name: rt73.ko

2. Support Channels

  • Enter general help that will work at anytime with the driver. See section below if it's release specific

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. 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

(There is also a firmware archive available from the same page, but the md5sum of the firmware contained therein is the same as that of the firmware in the sources archive, so it's only necessary for you to download the sources archive. This might change as time progresses, however, so it might be worthwhile to check yourself)

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/
dos2unix rt73sta.dat
sudo cp -v rt73sta.dat /etc/Wireless/RT73STA/rt73sta.dat

(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')

Once done, all I had to do was insert the module, and plug in my device, and the network was up and running!

$ sudo insmod /lib/modules/`uname -r`/kernel/drivers/usb/net/rt73.ko
$ dmesg
  [ nnn.nnnnn] rtusb init ====>
  [ nnn.nnnnn] usbcore: registered new driver rt73
$ # Plug in wireless adapter here
$ dmesg
  [ nnn.nnnnn] usb 1-1: new full speed USB device using uhci_hcd and address 2
  [ nnn.nnnnn] idVendor = 0x7d1, idProduct = 0x3c03
  [ nnn.nnnnn] rausb0 (WE) : Driver using old /proc/net/wireless support, please fix driver !
  [ nnn.nnnnn] rt73 driver version - 1.0.3.0
  [ nnn.nnnnn] rausb0: no IPv6 routers present

#TODO: What is the Dapper/Debian standard method of loading this module on boot?

4.1. WEP info

The above description is all it took to connect to my OPEN wireless connection point. Connecting with WEP is another story. At the moment, if I try and set a WEP key with the GNOME network manager, my entire system hangs. I'll carry on playing around, and post any further results here. Some open questions: 1. Is it easy to fix the driver so it doesn't use old /proc/net/wireless support 1. Which is more relevant to the config - the /etc/network/interfaces file, or the rt73sta.dat file?

4.2. WPA info

  • Enter anything related to getting WPA to work

4.3. Reader Comments

???


CategoryNetworking CategoryNetworking

WifiDocs/Driver/RalinkRT73 (last edited 2008-08-06 16:21:04 by localhost)