Driver for usb wifi MT7610U

27 views
Skip to first unread message

Christophe Vial

unread,
Mar 17, 2019, 4:59:44 PM3/17/19
to qubes...@googlegroups.com
Hi all, I'm trying to use a usb wifi adapter (TP-Link archer T2U).

the lsusb command returns

Bus 002 Device 002: ID 148f:761a Ralink Technology, Corp. MT7610U
("Archer T2U" 2.4G+5G WLAN Adapter

After some research I found the driver to install from
https://github.com/ulli-kroll/mt7610u

But the make command fails. I tried both in fedora-29 and debian9 vm,
but in both cases I get the same error :

make ARCH=x86_64 CROSS_COMPILE= -C
/lib/modules/4.14.74-1.pvops.qubes.x86_64/build M=/home/user/src/mt7610u
modules
make[1]: Entering directory
'/usr/lib/modules/4.14.74-1.pvops.qubes.x86_64/build'
make[2]: *** No rule to make target
'/home/user/src/mt7610u/os/linux/rt_profile.o', needed by
'/home/user/src/mt7610u/mt7610u.o'.  Stop.
make[1]: *** [Makefile:1527: _module_/home/user/src/mt7610u] Error 2
make[1]: Leaving directory
'/usr/lib/modules/4.14.74-1.pvops.qubes.x86_64/build'
make: *** [Makefile:370: modules] Error 2

Does anyone knows how to fix it ?

And if not, any recommendations for some usb wifi adapters working out
of the box ? I still have few days to return this one if I can't get it
working.







Frédéric Pierret

unread,
Mar 17, 2019, 5:17:09 PM3/17/19
to Christophe Vial, qubes...@googlegroups.com

Hi,

I just googled (https://wireless.wiki.kernel.org/en/users/drivers/mediatek) that it seems to be in 4.19+ kernels. From your error, you seem to run 4.14 kernel into you vm. Or we provide 4.19+ kernels. You need to update your dom0 (if it is not done) and change your vm settings to use kernel-4.19.15 which is the current LTS. We also provide mainline stable kernel by installing 'kernel-latest'. So if you are only interested in having more updated kernels only in your VM, install the package 'kernel-latest-qubes-vm' (in dom0: sudo qubes-dom0-update kernel-latest-qubes-vm) and change your vm settings to the more recent one.

Best regards,

Frédéric

--
You received this message because you are subscribed to the Google Groups "qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users...@googlegroups.com.
To post to this group, send email to qubes...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/Z0glcPBTr8ysTLe7JJX_K95S3BruPuVKAeqHIB2nPad1ANzOYUpWDhDmVTcRN56JaptfUPAKUySJ6iTNHxCy8e1AhKi4XnNkL_JRlh3kXq4%3D%40protonmail.com.
For more options, visit https://groups.google.com/d/optout.
signature.asc

Christophe

unread,
Mar 18, 2019, 10:32:57 AM3/18/19
to Frédéric Pierret, qubes...@googlegroups.com

Hello, thank you for your help.

sudo qubes-dom0-update kernel-latest-qubes-vm, did not find any package, by running sudo qubes-dom0-update -v I found out something was pointing to some non existing URL.

https://yum.qubes-os.org/r25-5/current/dom0/fc25/repodata/repomd.xml.metalink

After some research I did some changes in /etc/yum.repos.d/qubes-dom0.repo, I replaced all the $releasever by 4.0, I got an important amount of updates after this and I was finally able to user kernel 4.20.3-1 in my VMs.

Unfortunately this still didn't solve my wifi adapter problem. When I now assign the wifi adapter to a vm with the qvm-usb attach command, it appears briefly in the lsusb results of the vm, but then just disappears.

Best regards,

Christophe

Frédéric Pierret

unread,
Mar 19, 2019, 5:08:49 AM3/19/19
to Christophe, qubes...@googlegroups.com

Hi,

Sorry for the few trouble you had with the .repo files which has been corrected in recent updates.

Have a look into your VM where you attached your wifi adapter. Does something like 'bad usb cable' appear?

Best,

Frédéric

signature.asc

Christophe

unread,
Mar 19, 2019, 8:10:02 AM3/19/19
to Frédéric Pierret, qubes...@googlegroups.com

Hi, yes the error in the VM is about bad usb cable when I use the 4.20 kernel.


[   50.803667] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   50.840384] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   51.761645] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[   54.425794] mt76x0u: probe of 1-1:1.0 failed with error -110

It seems that the problem is specific to kernel 4.20 according this bug report https://bugzilla.kernel.org/show_bug.cgi?id=202243

There seem to be a patch, but it's still not clear for me how to apply it. They also say it's working fine with 4.19 kernel.

I'm trying to install the 4.19 kernel, but there seem to still be some wrong repo config on my system, when I run 'sudo qubes-dom0-update kernel-latest-devel-4.19.2-3.pvops.qubes.x86_64' the package is downloaded but then it returns an Error : Unable to find a match.

Best regards,

Christophe

Reply all
Reply to author
Forward
0 new messages