Peppermint OS

Support => Advanced Topics => Topic started by: cavy on February 24, 2017, 02:23:05 am

Title: RT2870STA wifi Driver
Post by: cavy on February 24, 2017, 02:23:05 am
Hi fellow pepperminters,

I have hit a brickwall with this driver install. Only MS instructions with packaging, Linux drivers were on mini CD. Extracted tar.bz and tried to read the 'makefile' and 'read-me' files, as clear as mud.

Came across this forum Q&A, during my research: http://linuxforums.org.uk/index.php?topic=852.15;PHPSESSID=f419mtmladgbe8nn2dcito7qt2 , even downloaded the drivers from page 2, treid them, as they had instructions.

Then tried cloned drivers from  GIT, but their instructions resulted in failure and numerous errors during make.

Enclose read-me and makefile, hopefully you will translate this for me and give me some pointers how to correctly read such documents. My head hurts...!

Also inxi -F, iwconfig, sudo lshw -C network, sudo iwlist scanning, lsmod

SPECS

Spoiler (click here to view / hide)
[close]


THE DEVICE  "WOSUK Wifi Dongle 600Mbps Dual Band 2.4G/5G AC600 Wireless Usb Network Adapter Card Usb"

&
 
File MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.tar.bz2  3.4Mb
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 24, 2017, 02:25:23 am
As I maxed out: have TO post these spoilers separate

READ-ME

Spoiler (click here to view / hide)
[close]


MAKEFILE

Spoiler (click here to view / hide)
[close]
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 24, 2017, 04:32:58 am
Those instructions are very old...

What's the output from:
Code: [Select]
lsusband
Code: [Select]
sudo lshw -C networkand
Code: [Select]
rfkill list
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 03:36:22 am
G'Day mate  :D

lsusb

Code: [Select]
anthony@tower ~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 10d5:000d Uni Class Technology Co., Ltd
Bus 001 Device 004: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 003: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

sudo lshw -C network

Code: [Select]
anthony@tower ~ $ sudo lshw -C network
[sudo] password for anthony:
  *-network               
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 31
       serial: d0:17:c2:8a:4d:1b
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.7-4 ip=192.168.0.11 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:124 memory:f7000000-f701ffff

rfkill list  (this didn't return anything?)

Code: [Select]
anthony@tower ~ $
anthony@tower ~ $ rfkill list
anthony@tower ~ $

 8)
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 03:44:16 am
With my old coal powered usb wifi dongle. That was plug and go, unlike the newer and allegedly better dual band thingie, lol...!   :-\

 sudo lshw -C network

Code: [Select]
anthony@tower ~ $ sudo lshw -C network
  *-usb:1                 
       description: Wireless interface
       product: MT7601U Wireless Adapter
       vendor: Ralink Technology, Corp.
       physical id: 7
       bus info: usb@1:7
       logical name: wlx243c200b907e
       version: 0.00
       serial: 24:3c:20:0b:90:7e
       capabilities: usb-2.01 ethernet physical wireless
       configuration: broadcast=yes driver=mt7601u driverversion=4.4.0-64-generic firmware=N/A ip=192.168.0.14 link=yes maxpower=160mA multicast=yes speed=480Mbit/s wireless=IEEE 802.11bgn
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 25, 2017, 12:12:00 pm
Unplug the USB wifi adapter that isn't working .. wait 5 seconds .. replug the USB wifi adapter .. post the output from:
Code: [Select]
dmesg | tail -n 50
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 12:29:49 pm

dmesg | tail -n 50

Spoiler (click here to view / hide)
[close]

PULL COUNT TO 5 AND REINSERT

Spoiler (click here to view / hide)
[close]

Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 25, 2017, 12:43:49 pm
Okay you've confused the hell outa me with post #4 .. are these BOTH MT7601 adapters ?

Was the one you just replugged the one that doesn't work ?
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 01:16:18 pm
Sorry about that   ::)

Both are for the non-working device, before and after being pulled/replugged, which need the drivers from this MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.tar.bz2
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 25, 2017, 01:27:45 pm
With just the NON working dongle plugged in .. REBOOT

Once rebooted, post the output from:
Code: [Select]
lsusband
Code: [Select]
lsmod
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 01:35:45 pm
lsusb

Spoiler (click here to view / hide)
[close]


lsmod

Spoiler (click here to view / hide)
[close]
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 25, 2017, 03:09:11 pm
Connect with an ethernet cable and run these commands in sequence:
Code: [Select]
cd ~/Desktopthen
Code: [Select]
wget https://dl.dropboxusercontent.com/u/11876059/mt7610u-driver.tar.gzthen
Code: [Select]
tar xvf mt7610u-driver.tar.gzthen
Code: [Select]
cd ~/Desktop/mt7610u-driverthen
Code: [Select]
makethen
Code: [Select]
sudo make installthen
Code: [Select]
sudo depmod -athen
Code: [Select]
sudo modprobe mt7610udid wireless spring to life ?

If so, does it survive a reboot ?

If so, you can delete the mt7610u-driver directory from the desktop, but I suggest you keep the mt7610u-driver.tar.gz archive somewhere as you may need to rebuild the driver after a kernel upgrade.
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 25, 2017, 03:38:51 pm
Okey Cokey m8  :o 

wow...........! I had a few this evening, and will do this tomorrow, that is some homework assignment.

So I had the wrong tar ball, like your "Linux in the UK forum" Q&A with Noobuntu back in 2011.

Cheers, I'll let you know how I got on some time tomorrow  :D
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 25, 2017, 04:12:38 pm
The new adapter is an MT7610U .. the earlier one is an MT7601U .. they are differnt chips so require different drivers, and neither really want rt2870sta

I doubt the drivers from my posting on linuxforums.org.uk would still compile against the later 4.x kernels anyway.
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 26, 2017, 03:43:09 am
Failed at sudo make install it gave this make: *** No rule to make target 'install'. Stop. as reason. Enclose full read out of terminal install.   :-\  Very similar to previous attempts   :(

Spoiler (click here to view / hide)
[close]
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 26, 2017, 02:00:12 pm
Okay I've fixed the makefile to include an "install" rule .. so let's get rid of the old copy:
Code: [Select]
cd ~/Desktopthen
Code: [Select]
rm mt7610u-driver.tar.gzthen
Code: [Select]
rm -r mt7610u-driver


And now let's try again...

Connect with an ethernet cable and run these commands in sequence:
Code: [Select]
cd ~/Desktopthen
Code: [Select]
wget https://dl.dropboxusercontent.com/u/11876059/mt7610u-driver.tar.gzthen
Code: [Select]
tar xvf mt7610u-driver.tar.gzthen
Code: [Select]
cd ~/Desktop/mt7610u-driverthen
Code: [Select]
makethen
Code: [Select]
sudo make installthen
Code: [Select]
sudo modprobe mt7610udid wireless spring to life ?

If so, does it survive a reboot ?

If so, you can delete the mt7610u-driver directory from the desktop, but I suggest you keep the mt7610u-driver.tar.gz archive somewhere as you may need to rebuild the driver after a kernel upgrade.
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 27, 2017, 01:37:32 am
Good morning  :)

It made it past the sudo make install, produced nothing for the sudo modprobe mt7610u, previously was FATAL.  8)  After reboot the wifi network, then became available with usual addresses, not before...?   :-\

When I inserted usb aerial and enter my wifi-password it did attempt to seek wifi signal, more of a tease than anything.  :-\  As our American buddies say, close, but no cigar lol.  :P


Spoiler (click here to view / hide)
[close]



It seems that this usb aerial with its alleged dual band 2G and 5G signal is a sack of manure, do you know of a reasonable priced dongle that will give me preferably a minimum of 300mbps, which I can just plug and go..?   ;)

Regards Cavy   :D
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 27, 2017, 06:37:18 am
Before you look for another, what's the output from:
Code: [Select]
rfkill listand
Code: [Select]
sudo lshw -C networkand
Code: [Select]
iwlist scan
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 27, 2017, 10:11:48 am

With the iwlist scan, it lists mine and my neighbours wifi   ;)

Spoiler (click here to view / hide)
[close]
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 27, 2017, 12:43:11 pm
So what makes you say it's not working ?
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 27, 2017, 01:38:59 pm

 ;)  https://sites.google.com/site/myonlinepixies/home/gremlins   ;)


 :-\
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 27, 2017, 02:10:02 pm
that image is showing the wireless adapter as "DISABLED" .. yet the "lshw" output above doesn't show it as disabled  :-\

check it's not disabled with
Code: [Select]
sudo lshw -C networkand
Code: [Select]
rfkill list
and if it's NOT disabled, try deleting any wireless profiles in networkmanager and recreating one.
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 27, 2017, 02:27:38 pm
If I knew its device name, it might work. But how...?  :(

The old coal powered dongle identifies itself no probs.   ;)

 ;)  update with pixs https://sites.google.com/site/myonlinepixies/home/gremlins  ;)
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 27, 2017, 02:37:57 pm
You are confusing matters again by posting images of output from the old working adapter .. this is irrelevant, and just confuses matters .. I ONLY want info about the non-working adapter.

And can you not post images, rather the terminal output .. I can't copy/paste from an image.

what is the output from:
Code: [Select]
rfkill list
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 27, 2017, 02:44:49 pm
Okay removed other dongle image.

This is the entire output from previous question.

Code: [Select]
anthony@tower ~ $ sudo lshw -C network
[sudo] password for anthony:
  *-network               
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 31
       serial: d0:17:c2:8a:4d:1b
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.7-4 ip=192.168.0.11 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:124 memory:f7000000-f701ffff
  *-network DISABLED
       description: Wireless interface
       physical id: 2
       logical name: wlan0
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=RALINK WLAN multicast=yes wireless=Ralink STA
anthony@tower ~ $ rfkill list
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
anthony@tower ~ $ iwlist scan
lo        Interface doesn't support scanning.

enp0s31f6  Interface doesn't support scanning.

wlan0     Failed to read scan data : Network is down

anthony@tower ~ $


rfkill list same as previous.

Code: [Select]
anthony@tower ~ $ rfkill list
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
anthony@tower ~ $
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on February 27, 2017, 03:31:13 pm
Okay you'll have to give me a day or so to test out some other drivers building against the 4.4 kernel in a VM, because I'm currently running the 4.8 kernel series so the build may be going differently.
(I'll try to do this tomorrow)

Meanwhile, let's get rid of that driver:
Code: [Select]
cd ~/Desktop/mt7610u-driverthen
Code: [Select]
sudo make uninstall
Title: Re: RT2870STA wifi Driver
Post by: cavy on February 28, 2017, 03:00:57 am
Okey Dokey mate   :D

Drivers uninstalled following your above instructions. Cheers  8)

Your earlier comment about possible issues arising after a kernel upgrade:

If so, you can delete the mt7610u-driver directory from the desktop, but I suggest you keep the mt7610u-driver.tar.gz archive somewhere as you may need to rebuild the driver after a kernel upgrade.

I have read somewhere (probably Pjotr's site), about pinning your known working kernel to eliminate potential issues with drivers after an upgrade.   ;)  I will bow to your opinion on this matter, if you do not think it is a wise move.   ;)
Title: Re: RT2870STA wifi Driver
Post by: PCNetSpec on March 01, 2017, 12:46:08 pm
I haven't forgotten this cavy, just feeling a bit **it today :-X