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

0 Members and 1 Guest are viewing this topic.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17126
  • Karma: 434
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #210 on: June 29, 2017, 09:52:15 pm »
I seriously doubt this driver will compile against 4 series kernels.

I also doubt if it's the driver you require.

What's the output from:
Code: [Select]
lsusb
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: 9
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #211 on: August 20, 2017, 10:35:38 pm »
Hi Mark, I have exactly this problem.

I have a Linux version 4 which is > 2.6.35 and so I tried the edited version of your opening post with no luck. I get exactly the same error.

Any idea's on what I can do?

Offline DeanP

  • Jr. Member
  • **
  • Posts: 9
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #212 on: August 20, 2017, 10:47:51 pm »
I have kernel 4.10.0-28-generic.

The results of doing lsusb gives me a bunch of listings. I cant copy it all as its from a computer that has no internet but amongst them there is a MediaTek Inc. item which is the wireless USB device.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17126
  • Karma: 434
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #213 on: August 20, 2017, 11:18:54 pm »
What we're looking for is the IDvendor:IDdevice string from the output from:
Code: [Select]
lsusb
(if it's a USB wireless card)

or
Code: [Select]
lspci -vnn | grep -i net
(if it's an onboard PCI wireless card)

The ID string will look like this example:
10ec:b723
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: 9
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #214 on: August 21, 2017, 06:20:46 pm »
Bus 006 Device 002: ID 0e8d:7610 MediaTek Inc.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17126
  • Karma: 434
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #215 on: August 21, 2017, 08:51:39 pm »
Your wireless adapter uses the MT7610U chipset.

Okay you're going to NEED an internet connection to do this, so either connect to your router with an ethernet cable, or borrow a wireless adapter that works OOTB.

At this point I'm assuming you're running Ubuntu or an Ubuntu based distro....

Once connected to the internet, open a terminal and run these commands in sequence:-
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get dist-upgrade
Once that has finished, REBOOT  <-- IMPORTANT

Once rebooted, connect to the internet again, open a terminal and run these commands in sequence:
Code: [Select]
sudo apt-get install build-essential linux-headers-$(uname -r) git dkms
then
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: 9
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #216 on: August 21, 2017, 09:33:04 pm »
Okay internet is connected through cable

I have immediately bumped into an issue on your very first step. I get the following:
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/

I googled this and people gave plenty of warnings about possible risks of typing in wrong commands to fix this.

This is a fresh out the box Ubuntu with no prior tinkering. And it was booted fresh. No multiple processes running.


EDIT: After trying numerous times, the first step finally worked randomly. So much for Linux "robustness". Will update as I go by
« Last Edit: August 21, 2017, 09:37:23 pm by DeanP »

Offline DeanP

  • Jr. Member
  • **
  • Posts: 9
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #217 on: August 21, 2017, 09:58:52 pm »
Your wireless adapter uses the MT7610U chipset.

Okay you're going to NEED an internet connection to do this, so either connect to your router with an ethernet cable, or borrow a wireless adapter that works OOTB.

At this point I'm assuming you're running Ubuntu or an Ubuntu based distro....

Once connected to the internet, open a terminal and run these commands in sequence:-
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get dist-upgrade
Once that has finished, REBOOT  <-- IMPORTANT

Once rebooted, connect to the internet again, open a terminal and run these commands in sequence:
Code: [Select]
sudo apt-get install build-essential linux-headers-$(uname -r) git dkms
then
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 ?

Right after I hit enter of the last step, it seems to execute the command then a GUI prompt comes up: System program problem detected. Do you want to report the problem now? I reported it and then it says sorry, Ubunu 16.04 has experienced an internal error. If you notice further problems, try restarting the computerl. I clicked send error report to help fix this problem. Im going to restart and see if the device is working.

Offline DeanP

  • Jr. Member
  • **
  • Posts: 9
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #218 on: August 21, 2017, 10:03:05 pm »
Your wireless adapter uses the MT7610U chipset.

Okay you're going to NEED an internet connection to do this, so either connect to your router with an ethernet cable, or borrow a wireless adapter that works OOTB.

At this point I'm assuming you're running Ubuntu or an Ubuntu based distro....

Once connected to the internet, open a terminal and run these commands in sequence:-
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get dist-upgrade
Once that has finished, REBOOT  <-- IMPORTANT

Once rebooted, connect to the internet again, open a terminal and run these commands in sequence:
Code: [Select]
sudo apt-get install build-essential linux-headers-$(uname -r) git dkms
then
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 ?

IT WORKS!!! ITS ALIVE!!!! Man who are you, did you write the embedded system code for the adaptor? THANK YOU SO MUCH.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17126
  • Karma: 434
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #219 on: August 21, 2017, 11:03:34 pm »
IT WORKS!!! ITS ALIVE!!!! Man who are you, did you write the embedded system code for the adaptor? THANK YOU SO MUCH.

Nah mate not me, I'm just another Linux 'user' .. but glad it's now working, and you're most welcome :)
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: 9
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #220 on: September 11, 2017, 07:17:30 pm »
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?
« Last Edit: September 11, 2017, 07:21:16 pm by DeanP »

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17126
  • Karma: 434
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #221 on: September 11, 2017, 10:37:52 pm »
Try:
Code: [Select]
sudo dkms remove mt7610u_sta/1.02 --all
then:
Code: [Select]
sudo dkms install mt7610u_sta/1.0
then reboot.
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: 9
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #222 on: September 12, 2017, 12:35:45 am »
It worked thanks. What do those commands do? I see you used similar ones in the previous post

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17126
  • Karma: 434
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #223 on: September 12, 2017, 01:14:20 pm »
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).
« Last Edit: September 12, 2017, 01:17:27 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 DeanP

  • Jr. Member
  • **
  • Posts: 9
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Ralink RT2870 based USB Wireless N adapters (Ubuntu)
« Reply #224 on: September 12, 2017, 01:41:20 pm »
Makes sense. Thanks!

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal