Unable to install MT7601u Driver

I had bought a Tenda W311MI 150Mbps Wireless Nano USB Adapter:
https://www.tendacn.com/en/product/w311mi%20auto-install.html

But, Unfortuantely, the aur for this adapter’s chipset driver is not maintained anymore and not working. And Manual Installation of the driver provided from source “MT7601U_LinuxAP_3.0.0.1_20130802” (from the official website) results in following error:

$ sudo make
make -C tools
make[1]: Entering directory ‘~/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/tools’
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory ‘~/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/tools’
~/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/tools/bin2h
cp -f os/linux/Makefile.6 ~/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/Makefile
make -C /lib/modules/5.8.11-1-MANJARO/build SUBDIRS=~/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux modules
make[1]: Entering directory ‘/usr/lib/modules/5.8.11-1-MANJARO/build’
scripts/Makefile.build:44: arch/x86/entry/syscalls/Makefile: No such file or directory
make[2]: *** No rule to make target ‘arch/x86/entry/syscalls/Makefile’. Stop.
make[1]: *** [arch/x86/Makefile:217: archheaders] Error 2
make[1]: Leaving directory ‘/usr/lib/modules/5.8.11-1-MANJARO/build’
make: *** [Makefile:388: LINUX] Error 2

According to this and this Tenda W311MI should work out of box – you have driver in kernel. So you don’t need to install anything.

Check if device is recognized by lsusb. Also check if rt2800usb module isn’t blacklisted in /etc/modprobe.d/blacklist.conf

I tried their method but it didn’t work. And, there’s some subtle differences:
gary@ubuntu:/proc$ lsusb
Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp.

but in my case:
$ lsusb
Bus 001 Device 013: ID 0bda:b711 Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (After Modeswitch)

$ sudo usb_modeswitch -KW -v 0bda -p b711

Take all parameters from the command line

  • usb_modeswitch: handle USB devices with multiple modes
  • Version 2.6.1 © Josua Dietze 2017
  • Based on libusb1/libusbx

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x0bda
DefaultProduct= 0xb711

StandardEject=1

Look for default devices …
found USB ID 1d6b:0003
found USB ID 13d3:3496
found USB ID 13d3:5a01
found USB ID 0bda:0129
vendor ID matched
found USB ID 0bda:b711
vendor ID matched
product ID matched
found USB ID 1d6b:0002
Found devices in default mode (1)
Access device 015 on bus 001
Get the current device configuration …
Current configuration number is 1
Use interface number 0
with class 255
Error: can’t use storage command in MessageContent with interface 0; interface class is 255, expected 8. Abort

at the time usb_modswitch command is used:
journalctl -f

Oct 10 15:54:22 hellblazer dbus-daemon[571]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.859' (uid=0 pid=7518 comm="sudo usb_modeswitch -KW -v 0bda -p b711 " label="unconfined")
Oct 10 15:54:22 hellblazer audit[7518]: USER_ACCT pid=7518 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="dawkinsdirac" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
Oct 10 15:54:22 hellblazer audit[7518]: CRED_REFR pid=7518 uid=0 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
Oct 10 15:54:22 hellblazer kernel: audit: type=1101 audit(1602323662.986:273): pid=7518 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="dawkinsdirac" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
Oct 10 15:54:22 hellblazer kernel: audit: type=1110 audit(1602323662.986:274): pid=7518 uid=0 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
Oct 10 15:54:22 hellblazer dbus-daemon[571]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Oct 10 15:54:22 hellblazer sudo[7518]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.

any help please??? :frowning:

You probably should create this unit. Unfortunately, I won’t help here, I don’t know how to do it :confused:


EDIT: I found something on Arch forum, this probably is bug. See proposed solutions there.

1 Like

I had enabled home service and created user for that too. That didn’t seem to work either.
https://wiki.archlinux.org/index.php/Systemd-homed