LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Sun Dec 10, 2017 4:24 pm

Here's what I was trying so far.

Code: Select all

sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install git build-essential
git clone  https://github.com/xSmallDeadGuyx/mt7610u_wifi_sta_v3002_dpo_20130916
cd ~/mt7610u_wifi_sta_v3002_dpo_20130916
make
sudo make install
sudo depmod -a
sudo update-initramfs -u


After the git command, I edited the file

Code: Select all

rtusb_dev_id.c

of the common folder in order to add this line to the known devices:

Code: Select all

   {USB_DEVICE(0x148F,0x761A)}, /* TP-LINK Archer T2UH */


I also edited the

Code: Select all

RT2870STA.dat

to match my country settings, so

Code: Select all

CountryRegion=5
CountryRegionABand=7
CountryCode=

became

Code: Select all

CountryRegion=1
CountryRegionABand=9
CountryCode=DE


Then I continued with the cd command and the make command.
But at this point of the build procedure, I ended up with an Error 2 message.

How can I build this driver to make it work on my system
where kernel x86_64 Linux 4.8.0-58-generic is used, please?
Last edited by Centauri39 on Sun Dec 10, 2017 5:32 pm, edited 1 time in total.

JeremyB
Level 17
Level 17
Posts: 7754
Joined: Fri Feb 21, 2014 8:17 am

Re: LM 18.1 MATE 64bit -_Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby JeremyB » Sun Dec 10, 2017 4:56 pm

I would try the source code from https://github.com/ulli-kroll/mt7610u

Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

Re: LM 18.1 MATE 64bit -_Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Sun Dec 10, 2017 5:04 pm

This zip doesn't have the

Code: Select all

rtusb_dev_id.c

so I don't know if the wanted device is included.

JeremyB
Level 17
Level 17
Posts: 7754
Joined: Fri Feb 21, 2014 8:17 am

Re: LM 18.1 MATE 64bit -_Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby JeremyB » Sun Dec 10, 2017 5:09 pm


Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

Re: LM 18.1 MATE 64bit -_Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Sun Dec 10, 2017 5:24 pm

I cannot find this device in the file.

It must be

Code: Select all

   {USB_DEVICE(0x148F,0x761A)}, /* TP-LINK Archer T2UH */
Last edited by Centauri39 on Sun Dec 10, 2017 5:29 pm, edited 2 times in total.

JeremyB
Level 17
Level 17
Posts: 7754
Joined: Fri Feb 21, 2014 8:17 am

Re: LM 18.1 MATE 64bit -_Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby JeremyB » Sun Dec 10, 2017 5:28 pm

Centauri39 wrote:I cannot find this device in the file.

It must be

Code: Select all

   {USB_DEVICE(0x148F,0x761A)}, /* TP-LINK Archer T2UH */

Code: Select all

   { USB_DEVICE(0x148f, 0x761a) },   /* TP-Link TL-WDN5200 */

Is in the file and is a match as the /* TP-LINK Archer T2UH */ is just a comment

Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

Re: LM 18.1 MATE 64bit -_Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Sun Dec 10, 2017 5:30 pm

Ok, now I can see it, too.

So, only the ID is relevant and the comment doesn't matter?

JeremyB
Level 17
Level 17
Posts: 7754
Joined: Fri Feb 21, 2014 8:17 am

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby JeremyB » Sun Dec 10, 2017 5:34 pm

That is correct, the comment isn't really needed. I still don't know the source code will work as chili555 gave up on these devices in Ubuntu 16.04 back in July, this source code is newer than that so there is some hope

Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Sun Dec 10, 2017 5:45 pm

sudo make install is failing.

It says:
*** No rule to create "install". End.

JeremyB
Level 17
Level 17
Posts: 7754
Joined: Fri Feb 21, 2014 8:17 am

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby JeremyB » Sun Dec 10, 2017 5:49 pm

Try

Code: Select all

sudo cp mt7610u.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless

Code: Select all

sudo depmod -a

Reboot

Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Sun Dec 10, 2017 7:22 pm

I removed your suggestion and reinstalled the other one.

Now there's a
mt7610u_sta.ko
in the folder
/lib/modules/$(uname -r)/kernel/drivers/net/wireless


According to

Code: Select all

modinfo mt7610u_sta

is present and loaded.
Still it doesn't work.
When the device is attached, Mint doesn't even boot.

I even tried to blacklist the rt2800usb, but no chance.

Here's what I checked so far:

Code: Select all

user-pc@user-MS-7977 ~ $ modinfo mt7610u_sta
filename:       /lib/modules/4.8.0-58-generic/kernel/drivers/net/wireless/mt7610u_sta.ko
version:        3.0.0.2
license:        GPL
description:    RT2870 Wireless Lan Linux Driver
author:         Paul Lin <paul_lin@ralinktech.com>
license:        GPL
srcversion:     482A8ACE9906E746EC10091
alias:          usb:v0E8Dp7650d*dc*dsc*dp*icFFisc02ipFFin*
alias:          usb:v0E8Dp7630d*dc*dsc*dp*icFFisc02ipFFin*
alias:          usb:v20F4p806Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB31d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v293Cp5702d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v057Cp8502d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0951d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p7610d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p3425d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3D02d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0075d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17DBd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17D1d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp760Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp761Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pB711d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA711d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13B1p003Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E8Dp7610d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp7610d*dc*dsc*dp*ic*isc*ip*in*
depends:        cfg80211
vermagic:       4.8.0-58-generic SMP mod_unload modversions
parm:           mac:wireless mac addr (charp)
parm:           debug:log verbosity level (0: off, 1: error only [default], 2: warnings, 3: trace, 4: info, 5: loud) (long)


Code: Select all

user-pc@user-MS-7977 ~ $ iwconfig
enp3s0    no wireless extensions.

wlxe8de271d36e6  IEEE 802.11  ESSID:"WEB4user" 
          Mode:Managed  Frequency:5.22 GHz  Access Point: CC:CE:1E:E0:10:33   
          Bit Rate=6 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=61/70  Signal level=-49 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:1  Invalid misc:116   Missed beacon:0

ra0       Ralink STA 
         
lo        no wireless extensions.


Code: Select all

user-pc@user-MS-7977 ~ $ ifconfig -a
enp3s0    Link encap:Ethernet  HWaddr 68:05:ca:43:95:6d 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:170 errors:0 dropped:1 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16310 (16.3 KB)  TX bytes:0 (0.0 B)
          Interrupt:19 Memory:df1c0000-df1e0000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2286 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2286 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:201594 (201.5 KB)  TX bytes:201594 (201.5 KB)

ra0       Link encap:Ethernet  HWaddr 00:00:00:00:00:00 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlxe8de271d36e6 Link encap:Ethernet  HWaddr e8:de:27:1d:36:e6 
          inet addr:192.168.178.21  Bcast:192.168.178.255  Mask:255.255.255.0
          inet6 addr: fe80::eade:27ff:fe1d:36e6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6191 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5161 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4689153 (4.6 MB)  TX bytes:680771 (680.7 KB)


Code: Select all

user-pc@user-MS-7977 ~ $ iwlist chan
enp3s0    no frequency information.

wlxe8de271d36e6  32 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
          Channel 36 : 5.18 GHz
          Channel 38 : 5.19 GHz
          Channel 40 : 5.2 GHz
          Channel 44 : 5.22 GHz
          Channel 46 : 5.23 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 54 : 5.27 GHz
          Channel 56 : 5.28 GHz
          Channel 60 : 5.3 GHz
          Channel 62 : 5.31 GHz
          Channel 64 : 5.32 GHz
          Channel 100 : 5.5 GHz
          Channel 102 : 5.51 GHz
          Channel 104 : 5.52 GHz
          Channel 108 : 5.54 GHz
          Channel 110 : 5.55 GHz
          Channel 112 : 5.56 GHz
          Channel 116 : 5.58 GHz
          Current Frequency:5.22 GHz (Channel 44)

ra0       0 channels
lo        no frequency information.


Code: Select all

user-pc@user-MS-7977 ~ $ nmcli d
DEVICE           TYPE      STATE         CONNECTION 
wlxe8de271d36e6  wifi      connected     WEB4user
enp3s0           ethernet  disconnected  --         
lo               loopback  unmanaged     --         
ra0              wifi      unmanaged     --         


Code: Select all

user-pc@user-MS-7977 ~ $ nmcli dev status
DEVICE           TYPE      STATE         CONNECTION 
wlxe8de271d36e6  wifi      connected     WEB4user
enp3s0           ethernet  disconnected  --         
lo               loopback  unmanaged     --         
ra0              wifi      unmanaged     --         


Code: Select all

user-pc@user-MS-7977 ~ $ nmcli dev wifi list
*  SSID                MODE   CHAN  RATE       SIGNAL  BARS  SECURITY 
   WEB2user         Infra  40    54 Mbit/s  92      ▂▄▆█  WPA1 WPA2
   WEB1user         Infra  5     54 Mbit/s  85      ▂▄▆█  WPA1 WPA2
   WEB3user         Infra  4     54 Mbit/s  75      ▂▄▆_  WPA1 WPA2
*  WEB4user         Infra  44    54 Mbit/s  67      ▂▄▆_  WPA1 WPA2
   o2-WLAN01           Infra  40    54 Mbit/s  62      ▂▄▆_  WPA2     
   o2-WLAN01           Infra  1     54 Mbit/s  55      ▂▄__  WPA2     
   TELE2INTERNET-2247  Infra  6     54 Mbit/s  32      ▂▄__  WPA2     
   EPPIsFritzBox       Infra  8     54 Mbit/s  15      ▂___  WPA1 WPA2

*  SSID  MODE  CHAN  RATE  SIGNAL  BARS  SECURITY
Last edited by Centauri39 on Sun Dec 10, 2017 7:32 pm, edited 1 time in total.

JeremyB
Level 17
Level 17
Posts: 7754
Joined: Fri Feb 21, 2014 8:17 am

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby JeremyB » Sun Dec 10, 2017 7:26 pm

I have no further suggestions as the source code you are using might be older than the 4.8 kernel

Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Sun Dec 10, 2017 7:38 pm

Ok, let me try the one from your link again.

I'll be back as soon as possible...

Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Sun Dec 10, 2017 7:57 pm

No, sorry

Code: Select all

sudo make install

still failing with the same message.

but the mt7610u.ko is present in the mentioned wireless folder.

JeremyB
Level 17
Level 17
Posts: 7754
Joined: Fri Feb 21, 2014 8:17 am

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby JeremyB » Mon Dec 11, 2017 6:25 pm

With that version you have to do the steps from viewtopic.php?p=1399465#p1399428 as there is no install instructions in the Makefile. The sudo make install command does the same if it is coded in the Makefile
I would do a

Code: Select all

echo "blacklist mt7610u_sta" | sudo tee /etc/modprobe.d/mt7610u_sta.conf

Reboot

Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Tue Dec 12, 2017 3:54 am

So, I do the same as I do with the other version, but instead of

Code: Select all

sudo make install
I perform the copy command?

JeremyB
Level 17
Level 17
Posts: 7754
Joined: Fri Feb 21, 2014 8:17 am

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby JeremyB » Tue Dec 12, 2017 6:56 am

The copy and sudo depmod commands

Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Tue Dec 12, 2017 10:02 am

Still doesn't work.

Code: Select all

sudo cp mt7610u.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless

doesn't produce that folder and the .ko file isn't there either.

And this command

Code: Select all

echo "blacklist mt7610u_sta" | sudo tee /etc/modprobe.d/mt7610u_sta.conf

results in blacklisting the mt7610u_sta driver.
But this is actually the driver I'm looking for, isn't it?
The rt2800usb is the one meant to be blacklisted.

EDIT:
Sorry, in fact, the copy command did work (looks like I just confused the target folder),
but are you sure it's the mt7610u_sta driver I should blacklist?

Centauri39
Level 3
Level 3
Posts: 194
Joined: Sun Mar 23, 2014 2:20 pm

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby Centauri39 » Tue Dec 12, 2017 1:46 pm

This freaking device still doesn't work.

JeremyB
Level 17
Level 17
Posts: 7754
Joined: Fri Feb 21, 2014 8:17 am

Re: LM 18.1 MATE 64bit - Driver for usb wifi adapter "TP-Link Archer T2UH" wanted

Postby JeremyB » Tue Dec 12, 2017 2:57 pm

I suspect that you will have better luck with the 4.4 kernel, 4.8 hasn't been supported since August
https://ubuntuforums.org/showthread.php ... st13670888
Chili555 says it won't work with 4.8, so 4.4 might work


Return to “Wireless”