Author Topic: Ralink RT2870 based USB Wireless N adapters (Ubuntu)  (Read 241979 times)

0 Members and 1 Guest are viewing this topic.

Offline Ale-x

  • Jr. Member
  • **
  • Posts: 7
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #240 on: October 23, 2017, 02:45:00 pm »
I can't believe! I fixed it!
I just heated rt5370 with my Lukey rework station, only F-2000 flux paste was used!
And dongle works again )

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17681
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #241 on: October 23, 2017, 07:40:21 pm »
Nice, so the drivers are working too ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline DeanP

  • Jr. Member
  • **
  • Posts: 13
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #242 on: December 02, 2017, 05:43:26 pm »
Mark its me again from 2 pages back - I'm updating my Ralink driver by doing a remove and an install as you recommended 2 pages back everytome Linux updates. I'm getting absolutely dumbfounded by Linux's horrific reliability.

Any commands of mine containing sudo are magically "hanging".

Its similar to what this chap experiences:

https://askubuntu.com/questions/326194/sudo-hangs-without-prompting-for-password

So my machine is useless now. Any hints?

Offline DeanP

  • Jr. Member
  • **
  • Posts: 13
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #243 on: December 02, 2017, 05:48:26 pm »
A restart fixed it.

Seriously this operating system is way too hyped

Offline DeanP

  • Jr. Member
  • **
  • Posts: 13
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #244 on: February 17, 2018, 06:54:15 pm »
Try:
Code: [Select]
sudo dkms remove mt7610u_sta/1.02 --all
then:
Code: [Select]
sudo dkms install mt7610u_sta/1.0
then reboot.

Hi Mark, this always used to work for me (your remove command should actually write ...sta/1.0 and not ...sta/1.02).

Now it has stopped working.

When I try the install (the second command) I get a bad exit status of 2. it says the binary package is not found.

Looking at the detailed log, I get this:
Quote
In function ‘memcpy’,
    inlined from ‘rt_ioctl_iwaplist’ at /var/lib/dkms/mt7610u_sta/1.0/build/os/linux/../../os/linux/sta_ioctl.c:696:2:
./include/linux/string.h:305:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter
    __read_overflow2();
    ^
scripts/Makefile.build:308: recipe for target '/var/lib/dkms/mt7610u_sta/1.0/build/os/linux/../../os/linux/sta_ioctl.o' failed
make[2]: *** [/var/lib/dkms/mt7610u_sta/1.0/build/os/linux/../../os/linux/sta_ioctl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:1550: recipe for target '_module_/var/lib/dkms/mt7610u_sta/1.0/build/os/linux' failed
make[1]: *** [_module_/var/lib/dkms/mt7610u_sta/1.0/build/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-32-generic'
Makefile:394: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2


Any ideas how to resolve this?
« Last Edit: February 17, 2018, 08:35:38 pm by DeanP »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17681
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #245 on: February 19, 2018, 04:56:14 pm »
Okay let's start from scratch...

Uninstall and remove the old dkms driver
Code: [Select]
sudo dkms uninstall mt7610u_sta/1.0
then
Code: [Select]
sudo dkms remove mt7610u_sta/1.0 --all
and remove the dmks source:
Code: [Select]
sudo rm -rv /usr/src/mt7610u_sta-1.0
delete the old downloaded driver source
Code: [Select]
sudo rm -rv ~/mt7610u-driver
then re-download the driver:
Code: [Select]
mkdir ~/mt7610u-driver
then
Code: [Select]
cd ~/mt7610u-driver
then
Code: [Select]
git clone https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes.git
then
Code: [Select]
cd ~/mt7610u-driver/mt7610u-linksys-ae6000-wifi-fixes
then
Code: [Select]
sudo cp -R . /usr/src/mt7610u_sta-1.0
then
Code: [Select]
sudo dkms add mt7610u_sta/1.0
then
Code: [Select]
sudo dkms build mt7610u_sta/1.0
then
Code: [Select]
sudo dkms install mt7610u_sta/1.0
then
Code: [Select]
sudo modprobe mt7610u_sta
did wireless spring to life ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline DeanP

  • Jr. Member
  • **
  • Posts: 13
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #246 on: February 19, 2018, 06:32:36 pm »
As soon as I hit enter on the last command, I get a "system programme problem detected" prompt where it asks me whether I want to report the problem.

Also when I reboot the same prompt comes up as soon as loading up.

Anyway, what has changed since before is I do see that my wifi wireless modem shows on the top right but after clicking it I get more prompts including "connection activation failed" and "(2) active connection removed before it was initialised"

Im trying to see why that is
« Last Edit: February 19, 2018, 06:37:56 pm by DeanP »

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17681
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #247 on: February 19, 2018, 08:24:57 pm »
Quote
Im trying to see why that is

New kernel patched for Spectre/Meltdown .. the new kernel obviously doesn't like that driver once compiled.

Let's try another driver
Code: [Select]
sudo dkms uninstall mt7610u_sta/1.0
then
Code: [Select]
sudo dkms remove mt7610u_sta/1.0 --all
and remove the dmks source:
Code: [Select]
sudo rm -rv /usr/src/mt7610u_sta-1.0
delete the old downloaded driver source
Code: [Select]
sudo rm -rv ~/mt7610u-driver
then
Code: [Select]
mkdir ~/mt7610u
then
Code: [Select]
cd ~/mt7610u
then
Code: [Select]
git clone https://github.com/ulli-kroll/mt7610u.git
then
Code: [Select]
cd ~/mt7610u/mt7610u
then
Code: [Select]
make
then
Code: [Select]
sudo make installfw
then
Code: [Select]
sudo rm -rv /etc/Wireless/RT2870STA
then
Code: [Select]
sudo mkdir /etc/Wireless/RT2870STA
then
Code: [Select]
sudo cp -v RT2870STA.dat /etc/Wireless/RT2870STA/
then
Code: [Select]
sudo install -d /lib/modules/$(uname -r)/kernel/drivers/net/wireless/
then
Code: [Select]
sudo install -m 644 -c mt7610u.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless/
then
Code: [Select]
sudo depmod -a $(uname -r)
then
Code: [Select]
sudo rmmod mt7610u_sta
then
Code: [Select]
sudo modprobe mt7610u
did wireless spring to life ?



To UNINSTALL
Code: [Select]
sudo rmmod mt7610u
then
Code: [Select]
sudo rm -v /lib/modules/$(uname -r)/kernel/drivers/net/wireless/mt7610u.ko
then
Code: [Select]
sudo rm -rv /etc/Wireless/RT2870STA
then
Code: [Select]
sudo rm -v /lib/firmware/mt7610u.bin
then
Code: [Select]
sudo rm -v /lib/firmware/mt7650u.bin
then
Code: [Select]
sudo depmod -a $(uname -r)
« Last Edit: February 19, 2018, 08:57:21 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline decker

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #248 on: July 29, 2018, 03:35:03 pm »
Hello  :),

i have a Hama rt2870 based Wlan Adapter. (00062740)

I was trying to change PID/VID but it didtn work out : ra0       no private ioctls.

So i was trying to compile the driver wich also didnt work, dont know what to do next. ( driver: https://www.dropbox.com/s/kn385v8muztotdv/2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2?dl=0 )

------------------------
4.15.0-29-generic
------------------------
Bus 001 Device 004: ID 148f:2870 Ralink Technology, Corp. RT2870 Wireless Adapter
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
------------------------
rt2800usb               32768  0
rt2x00usb               20480  1 rt2800usb
rt2800lib               114688  1 rt2800usb
rt2x00lib                 53248  3 rt2800lib,rt2800usb,rt2x00usb
mac80211            778240  3 rt2800lib,rt2x00lib,rt2x00usb
cfg80211              622592  2 rt2x00lib,mac80211
------------------------

need to restart Oracle to reproduce the make errors

edit: ps: forgot to say : i am new with linux
« Last Edit: July 29, 2018, 07:17:02 pm by decker »

Offline decker

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #249 on: July 29, 2018, 05:46:51 pm »
make
(click to show/hide)

make install
(click to show/hide)

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal