Ralink RT2870 based USB Wireless N adapters (Ubuntu)

Okay now I dont mean to be a pain. But… the device is not connecting anymore. This Ubuntu robustness over Windows is proving to be a myth and is pissing me off to be honest.

Any idea how to make it work again?

I used the device on my windows laptop and it worked. On Ubuntu PC the light doesn’t come on.

Furthermore doing a lsusb shows it is indeed plugged in.

Router is also A OK

Any ideas?

Try:

sudo dkms remove mt7610u_sta/1.02 --all

then:

sudo dkms install mt7610u_sta/1.0

then reboot.

It worked thanks. What do those commands do? I see you used similar ones in the previous post

They force the dkms version of the drivers to recompile for the current kernel … I’m guessing you received a kernel update and the driver didn’t automatically get recompiled (as it should).

Write those 2 commands down in case it happens again when you get your next kernel update … theoretically it should be automatic, that’s the whole point in dkms, but maybe the dkms function of the drivers was incorrectly written (not really a Linux problem, more that the manufacturers don’t supply Linux drivers so it was left to the community to step in).

Makes sense. Thanks!

You’re most welcome :slight_smile:

Mark, you have been very helpful getting other people’s Ralink devices to work.

I have an Alfa AWUS052NH that is a

ID 148f:3572 Ralink Technology, Corp. RT3572 Wireless Adapter

The rt2800usb driver is not linking it -

[694176.601449] usb 3-6: New USB device found, idVendor=148f, idProduct=3572
[694176.601451] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[694176.601452] usb 3-6: Product: 802.11 n WLAN
[694176.601453] usb 3-6: Manufacturer: Ralink
[694176.601454] usb 3-6: SerialNumber: 1.0
[694176.721278] usb 3-6: reset high-speed USB device number 24 using xhci_hcd
[694176.870927] ieee80211 phy41: rt2x00_set_rt: Info - RT chipset 3572, rev 0223 detected
[694176.881925] ieee80211 phy41: rt2x00_set_rf: Info - RF chipset 0009 detected
[694176.882321] ieee80211 phy41: Selected rate control algorithm ‘minstrel_ht’
[694176.898852] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[694176.898888] ieee80211 phy41: rt2x00lib_request_firmware: Info - Loading firmware file ‘rt2870.bin’
[694176.898938] rt2800usb 3-6:1.0: firmware: direct-loading firmware rt2870.bin
[694176.898941] ieee80211 phy41: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36
[694177.051109] usb 3-6: USB disconnect, device number 24
[694177.105158] ieee80211 phy41: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x0500 with error -19

I found and installed MediaTek’s DPO_RT5572_LinuxSTA_2.6.1.3_20121022 version of the drivers which should support this device, but get different errors with it.

I was hoping to grab and use the 2010 drivers you have referenced in the feed, but the drop box location is no longer available and I can’t locate the file elsewhere.

Can you freshen up the link so I can grab and try that driver? Or maybe you have some insight for this device that might get me further?

I appreciate the help you have provided for the last 5+ years on this message feed! Thanks!

Geo

Is this the one you’re after my friend:

?

or do you mean:

or maybe:

I have no idea if those will compile against recent kernels though (in fact I’m nearly positive they won’t).

Let me know how you get on, and if it’s without luck maybe we can find another solution.

Hi everybody!
I have an issue with my USB dongle. It’s the rt2870 chip from NoNameChinaCorporation )
I’ve installed Debian 6 Squeeze:

Linux debian 2.6.32-5-686

and followed this instruction: https://wiki.samygo.tv/index.php?title=Using_NoN-Samsung_USB_WiFi_dongles_with_TV

but I can’t compile before I add

#define usb_buffer_alloc(a, b, c, d) usb_alloc_coherent(a, b, c, d)
#define usb_buffer_free(a, b, c, d) usb_free_coherent(a, b, c, d)

to ./common/cmm_mac_usb.c

Then I have a new error when I try to modprobe:

[ 4528.722646] rt2870sta: Unknown symbol usb_alloc_coherent
[ 4528.723334] rt2870sta: Unknown symbol usb_free_coherent

Anybody, help me please! )

Hi Ale-x, and welcome to the forum :slight_smile:

Here’s the premodified version from my dropbox (mentioned in the link you provided), but I’m unsure it’ll compile against the 2.6.32 kernel, it was modified for the 2.6.35 kernel

If that won’t compile (and it probably won’t), let me know and we’ll see if we can find the unmodified version that may compile against 2.6.32 … though it might just be easier to update to the 2.6.35 kernel.

Thank you for so fast reply.
Unfortunately, I can’t compile this driver (

/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c: In function ‘RTMPAllocUsbBulkBufStruct’:
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:52: error: implicit declaration of function ‘usb_alloc_coherent’
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:52: warning: assignment makes pointer from integer without a cast
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c: In function ‘RTMPFreeUsbBulkBufStruct’:
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:78: error: implicit declaration of function ‘usb_free_coherent’
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c: In function ‘RTMPFreeTxRxRingMemory’:
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:234: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:62: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:241: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:62: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:278: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:62: note: expected ‘UCHAR **’ but argument is of type ‘struct __HTTX_BUFFER **’
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c: In function ‘NICInitTransmit’:
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:507: warning: passing argument 3 of ‘RTMPFreeUsbBulkBufStruct’ from incompatible pointer type
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:62: note: expected ‘UCHAR **’ but argument is of type ‘struct __TX_BUFFER **’
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c: In function ‘RTMPAllocTxRxRingMemory’:
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:566: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:34: note: expected ‘VOID **’ but argument is of type ‘struct __HTTX_BUFFER **’
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:596: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:34: note: expected ‘VOID **’ but argument is of type ‘struct __TX_BUFFER **’
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:610: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:34: note: expected ‘VOID **’ but argument is of type ‘struct __TX_BUFFER **’
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:628: warning: passing argument 3 of ‘RTMPAllocUsbBulkBufStruct’ from incompatible pointer type
/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.c:34: note: expected ‘VOID **’ but argument is of type ‘UCHAR **’
make[4]: *** [/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/…/…/common/cmm_mac_usb.o] Error 1
make[3]: *** [module/home/alex/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-686’
make: *** [LINUX] Error 2

How to update the linux kernel to 2.6.35 ? I can see only 2.6.32 in aptitude

See if this will compile against 2.6.32
http://distfiles.lesslinux.org/2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2


I’m just putting these links here for future reference:
https://www.khattam.info/howto-install-linux-kernel-2-6-36-or-2-6-37-in-debian-squeeze-testing-or-ubuntu-or-any-debian-based-distribution-without-compiling-2010-11-13.html
and
http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.35.13-maverick/
and
http://old-releases.ubuntu.com/ubuntu/pool/main/w/wireless-crda/
linked to the Ubuntu kernel because there doesn’t seem to be a Debian 2.6.35 kernel
http://archive.debian.org/debian/pool/main/l/linux-2.6/
though compiling the 2.6.35 vanilla kernel is always an option
https://www.kernel.org/pub/linux/kernel/v2.6/

Thank you so much!
I’ve compiled this driver.

P.S. I found almost all except wireless-crda
Thank you again!

So it’s all working now ?

Nope. Now I have theese errors:

[11112.284041] usb 2-3: new full speed USB device using ohci_hcd and address 3
[11112.464042] usb 2-3: device descriptor read/64, error -62
[11112.748374] usb 2-3: device descriptor read/64, error -62
[11113.028041] usb 2-3: new full speed USB device using ohci_hcd and address 4
[11113.208041] usb 2-3: device descriptor read/64, error -62
[11113.492042] usb 2-3: device descriptor read/64, error -62
[11113.772041] usb 2-3: new full speed USB device using ohci_hcd and address 5
[11114.180034] usb 2-3: device not accepting address 5, error -62
[11114.356040] usb 2-3: new full speed USB device using ohci_hcd and address 6
[11114.764034] usb 2-3: device not accepting address 6, error -62
[11114.764361] hub 2-0:1.0: unable to enumerate USB device on port 3

And I’ve made mistake - it is RT5370 (I have disassembled the wifi dongle) )
But why I can’t see its VID:PID…

Do you still get those enumeration errors in dmesg when you use a different USB port ?

and still no output from:

lsusb

?

It seems the dongle is dead. I tried on Windows - Unknown Device and no PID & VID.

Ouch, sorry to hear that :frowning:

It’s ok )
I found these 2 pcs in old possessions and both don’t work, so I can throw them away with peace of mind )
I just want to try to make the dongles useful.
Anyway, thank you so much for the help. I really appreciate it.

You’re most welcome, sorry it came to nothing.