Help compiling rt3370 driver

9 replies [Last post]
skbochs
Offline
Joined: 02/20/2011

I bought a USB wifi dongle with the rt3370 chipset to use in place of the non-free rtl8192se that came with my netbook. I downloaded the driver source from Ralink but the installation instructions are really confusing.

I first tried just running "make"… everything seemed fine until it tried this:

cp -f /home/skbochs/Sources/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/rt3070sta.ko /tftpboot
cp: cannot create regular file `/tftpboot': Permission denied
make: *** [LINUX] Error 1

It couldn't complete because I ran make without superuser privileges, but I don't get what it's trying to do.

I found this for the rt2870, but I'm not sure if it applies here.

skbochs
Offline
Joined: 02/20/2011

OK, I've read around and it turns out the Makefile is just being stupid about where it should install the driver. So, following this guide for the rt3070sta, I do this:

$ sudo cp os/linux/rt3070sta.ko /lib/modules/2.6.32-28-generic/kernel/drivers/net/wireless/
$ sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
$ sudo depmod -a
$ sudo modprobe rt3070sta

What I get for that last one is:

FATAL: Error inserting rt3070sta (/lib/modules/2.6.32-28-generic/kernel/drivers/net/wireless/rt3070sta.ko): Unknown symbol in module, or unknown parameter (see dmesg)

So I check dmesg:

[11846.791902] rt3070sta: module license 'unspecified' taints kernel.
[11846.791913] Disabling lock debugging due to kernel taint
[11846.792375] rt3070sta: Unknown symbol usb_alloc_urb
[11846.792873] rt3070sta: Unknown symbol usb_free_urb
[11846.793990] rt3070sta: Unknown symbol usb_register_driver
[11846.794733] rt3070sta: Unknown symbol usb_put_dev
[11846.795017] rt3070sta: Unknown symbol usb_get_dev
[11846.795541] rt3070sta: Unknown symbol usb_submit_urb
[11846.796906] rt3070sta: Unknown symbol usb_control_msg
[11846.797849] rt3070sta: Unknown symbol usb_deregister
[11846.799124] rt3070sta: Unknown symbol usb_kill_urb
[11846.799396] rt3070sta: Unknown symbol usb_buffer_free
[11846.800637] rt3070sta: Unknown symbol usb_buffer_alloc

I'm worried that the first line is what's causing the problem. To my knowledge, the driver is 100% Free Software — which is why I bought the thing.

At any rate, I look up the problem and find this discussion. I followed everything up to the point about adding

{USB_DEVICE(0x1737,0x0078)}, /* Linksys WUSB100v2 */

to usb_main_dev.c. I have two questions:

  1. Which #endif am I supposed to place this before?
  2. Do I replace the hex with the ID off of my own dongle?

Here's what I got with lsusb:

Bus 001 Device 007: ID 148f:3370 Ralink Technology, Corp.

So, I'm guessing that I need to insert

{USB_DEVICE(0x148f,0x3370)},

but I'm not sure where, or whether that even applies to this newer driver.

skbochs
Offline
Joined: 02/20/2011

Well, this is just great. I just went back to Ralink's website, and I noticed there was a separate firmware download link for the 3370. I clicked on the link, and found that it was non-free. So I guess they've given up on free drivers. Grrr.

UPDATE: Since this whole thing was based on a false assumption about the driver's freedom, feel free to delete this thread. Thanks.

Ark74

I am a member!

I am a translator!

Offline
Joined: 07/15/2009

On Sun, 20 Feb 2011 08:50:30 +0100 (CET), name at domain wrote:
> Well, this is just great. I just went back to Ralink's website, and I
> noticed
> there was a separate firmware download link for the 3370. I clicked on
the
>
> link, and found that it was non-free. So I guess they've given up on
free
> drivers. Grrr.

Gee, that's bad news.
As i usually ask, would you submit that wireless card to h-node with a
"doesn't work with free software"?
So this don't happen to others.
Thanks :)

--
Luis A. Guzmán García
http://ark.switnet.org
¡Se Libre! -- http://fsfla.org/selibre/

skbochs
Offline
Joined: 02/20/2011

Done. Didn't realize h-node was for listing non-free hardware as well as free. :-P

This was my first addition to h-node, so I'm hoping I did everything correctly: Ralink corp. RT3370

AndrewT

I am a translator!

Offline
Joined: 12/28/2009

Thanks for the submission. When you have time, please submit your other hardware, too.

tonicucoz
Offline
Joined: 11/09/2009

thanks skbochs!

> Done. Didn't realize h-node was for
> listing non-free hardware as well as free. :-P

h-node try to list all the hardware and specify what works and what doesn't work with free software

> This was my first addition to h-node, so I'm hoping I did
> everything correctly: Ralink corp. RT3370

it seems that everything is ok :)

SirGrant

I am a member!

I am a translator!

Offline
Joined: 07/27/2010

The reason it lists hardware that doesn't run with free software is so that users know what to avoid.

sadie
Offline
Joined: 03/10/2011

En mi caso, con un Toshiba y tres particiones con Trisquel y Ubuntu, he observado que al arrancar el sistema en una de las particiones tarda algo en responder después del Grub -como si se lo pensase-. En esos segundos aparece también un cursor -plano- en la parte superior izquierda, pero el sistema termina arrancando. El retraso en mi caso no creo que sea debido a Trisquel sino al hecho de tener el sistema instalado en una "segunda" partición (la instalación de Trisquel en la "primera" partición no tiene ningún retraso). Si el problema se produce después de que el sistema comience a cargarse, puedes probar a deshabilitar la splash para ver en qué punto se cuelga. Si no comienza siquiera a cargarse igual es un problema de la BIOS que se puede solucinar actualizándola o modificando algunos de los parámetros de configuración -¿alguno relativo al disco duro, quizás?

quiliro@congresolibre.org
Offline
Joined: 10/28/2010

name at domain">
> Well, this is just great. I just went back to Ralink's website, and I
> noticed
> there was a separate firmware download link for the 3370. I clicked on the
> link, and found that it was non-free. So I guess they've given up on free
> drivers. Grrr.
>

Don give up on free drivers. Give up on user subjugating hardware.
--
Saludos.

Quiliro Ordóñez
(02)2595632
(02)3401517
09-6782520
Si me equivocó, al menos se que soy quién se equivocó y no que me dieron
equivocándome.
Quito, Ecuador