O
O
OldCreater2022-01-21 14:24:04
WiFi
OldCreater, 2022-01-21 14:24:04

How to install AC 600 WiFi adapter on MT7610U chip in Ubuntu 20.04.03?

Hello!
In Win10 it works without problems, but in Ubuntu it sees networks, tries to connect, but to no avail. There is firewood for the mt7601 chip on the Linux disk, so I did not install them. I did the operations that were advised in the article on the github for this chipset https://github.com/morrownr/USB-WiFi , but it did not help. I tried to install the driver from the office. Mediatek site https://www.mediatek.com/products/mt7610u , but it compiles with errors for me. I tried to install the driver from github https://github.com/xtknight/mt7610u-linksys-ae6000... , similarly.
make
[sudo] password for one:
make -C tools
make[1]: Entering directory '/home/one/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
gcc -g bin2h.c -o bin2h
make [1]: Leaving directory '/ home / one / mt7610u_wifi_sta_v3002_dpo_20130916 / tools'
/ home / one / mt7610u_wifi_sta_v3002_dpo_20130916 / tools / bin2h
chipset = mt7610u
cp -f os / linux / Makefile.6 / home / one / mt7610u_wifi_sta_v3002_dpo_20130916 / os / linux /Makefile
make -C /lib/modules/5.14.21-051421-generic/build SUBDIRS=/home/one/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-5.14 .21-051421-generic'
SYNC include/config/auto.conf.cmd
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/ kconfig/lexer.lex.c
YACC scripts/kconfig/parser.tab.[ch]
/bin/sh: 1: bison: not found
make[3]: *** [scripts/Makefile.host:17: scripts/kconfig/parser.tab.h] Error 127
make[3]: *** [scripts/kconfig/parser.tab.h] Deleting file 'scripts/kconfig/parser.tab.c'
make[2]: *** [Makefile:630: syncconfig] Error 2
make[1]: *** [Makefile:740: include/config/auto.conf.cmd] Error 2
make[1]: *** [include/config/auto.conf.cmd] Deleting file 'include/ generated/autoconf.h'
make[1]: Leaving directory '/usr/src/linux-headers-5.14.21-051421-generic'

Here is the log:
KMS make.log for mt7610u_sta-1.0 for kernel 5.11.1-051101- generic (x86_64)
Wed Jan 19, 2022 10:42:02 PM MSK
make -C tools
make[1]: Entering directory '/var/lib/dkms/mt7610u_sta/1.0/build/tools'
gcc -g bin2h.c -o bin2h
cp -f os/linux/Makefile.6 /var/lib/dkms/mt7610u_sta /1.0/build/os/linux/Makefile
make -C /lib/modules/5.9.10-050910-generic/build SUBDIRS=/var/lib/dkms/mt7610u_sta/1.0/build/os/linux modules
make[1] : Entering directory '/usr/src/linux-headers-5.9.10-050910-generic'
make[1]: Leaving directory '/var/lib/dkms/mt7610u_sta/1.0/build/tools'
/var/lib/dkms /mt7610u_sta/1.0/build/tools/bin2h
chipset = mt7610u
YACC scripts/kconfig/parser.tab.[ch]
/bin/sh: 1: bison: not found
make[3]: *** [scripts/Makefile.host :17: scripts/kconfig/parser.tab.h] Error 127
make[2]: *** [Makefile:606: syncconfig] Error 2
make[1]: *** [Makefile:711: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.9.10-050910-generic'
make: *** [Makefile:395: LINUX] Error 2

When installing a new kernel, it gives an error:
ERROR (dkms apport): binary package for mt7610u_sta: 1.0 not found
Error! Bad return status for module build on kernel: 5.9.16-050916-generic (x86_64)
Consult /var/lib/dkms/mt7610u_sta/1.0/build/make.log for more information.

Folder contents: /lib/firmware/mediatek$ls
mt7610e.bin mt7622_rom_patch.bin mt7663pr2h_rebb.bin
mt7610u.bin mt7650e.bin mt7668pr2h.bin
mt7615_cr4.bin mt7662u.bin mt7915_rom_patch.bin
mt7662u_rom_patch.bin mt7915_wa.bin mt7615_n9.bin
mt7615_rom_patch.bin mt7663_n9_rebb.bin mt7915_wm.bin
mt7622_n9.bin mt7663_n9_v3.bin mt8173
mt7622pr2h.bin mt7663pr2h.bin mt8183

susb -t
Port 3: Dev 4, If 0, Class = Vendor Specific Class, Driver=mt76x0u, 480M

sudo dkms statusmt
7610u_sta, 1.0: added
virtualbox, 6.1.26, 5.13.0-27-generic, x86_64: installed

sudo lshw -C network
*-network:1
description: Wireless interface
physical id: 2
bus info : [email protected]:3
logical name: wlx0cb82c0059f7
serial: 0c:b8:2c:00:59:f7
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=mt76x0u driverversion=5.14.21-051421-generic firmware=N/A ip=192.168.0.19 link=yes multicast=yes wireless=IEEE 802.11

dmesg | grep mt76
[ 7.515168] mt76x0u 2-3:1.0: ASIC revision: 76100002 MAC revision: 76502000
[ 7.873154] mt76x0u 2-3:1.0: EEPROM ver:02 fae:04
[ 7.940613] usbcore: registered new interface driver mt76x0u
[7.95u] mt76x0u 2-3:1.0 wlx0cb82c0059f7: renamed from wlan0

I am not a great Linux expert, so please help me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Syomov, 2022-01-21
@kotomyava

/bin/sh: 1: bison: not found - You don't have enough build tools for this driver and it won't build.
Need to install:sudo apt install bison

O
OldCreater, 2022-01-21
@OldCreater

So I thought, where does the bison?
Put a bison.
make issued the following:
make
make -C tools
make[1]: Entering directory '/home/one/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/one/mt7610u_wifi_sta_v3002_dpo_20130916/ tools'
/home/one/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h
chipset = mt7610u cp
-f os/linux/Makefile.6
-generic/build SUBDIRS=/home/one/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-5.14.21-051421-generic'
mkdir: cannot create directory '.tmp_7396': Permission denied
mkdir: cannot create directory '.tmp_7398': Permission denied
mkdir: cannot create directory '.tmp_7400': Permission denied
mkdir: cannot create directory '.tmp_7402': Permission denied
mkdir: cannot create directory '.tmp_7404': Permission denied
mkdir: cannot create directory '.tmp_7406': Permission denied
mkdir: cannot create directory '.tmp_7409': Permission denied
mkdir: cannot create directory '.tmp_7411': Permission denied
mkdir: cannot create directory '.tmp_7413': Permission denied
mkdir: cannot create directory '.tmp_7415': Permission denied
mkdir: cannot create directory '.tmp_7417': Permission denied
mkdir: cannot create directory '.tmp_7419': Permission denied
mkdir: cannot create directory '.tmp_7421': Permission denied
mkdir: cannot create directory '.tmp_7423': Permission denied
mkdir: cannot create directory '.tmp_7425': Permission denied
mkdir: cannot create directory '.tmp_7427': Permission denied
mkdir: cannot create directory '.tmp_7429': Permission denied
mkdir: cannot create directory '.tmp_7431': Permission denied
mkdir: cannot create directory '.tmp_7433': Permission denied
mkdir: cannot create directory '.tmp_7435': Permission denied
mkdir: cannot create directory '.tmp_7437': Permission denied
arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
mkdir: cannot create directory '.tmp_7439': Permission denied
mkdir: cannot create directory '.tmp_7441': Permission denied
mkdir: cannot create directory '.tmp_7446': Permission denied
mkdir: cannot create directory '.tmp_7448': Permission denied
mkdir: cannot create directory '.tmp_7450': Permission denied
mkdir: cannot create directory '.tmp_7452': Permission denied
mkdir: cannot create directory '.tmp_7454': Permission denied
mkdir: cannot create directory '.tmp_7456': Permission denied
mkdir: cannot create directory '.tmp_7458': Permission denied
mkdir: cannot create directory '.tmp_7460': Permission denied
mkdir: cannot create directory '.tmp_7462': Permission denied
mkdir: cannot create directory '.tmp_7464': Permission denied
mkdir: cannot create directory '.tmp_7466': Permission denied
mkdir: cannot create directory '.tmp_7468': Permission denied
mkdir: cannot create directory '.tmp_7471': Permission denied
mkdir: cannot create directory '.tmp_7473': Permission denied
mkdir: cannot create directory '.tmp_7476': Permission denied
mkdir: cannot create directory '.tmp_7478': Permission denied
mkdir: cannot create directory '.tmp_7480': Permission denied
mkdir: cannot create directory '.tmp_7482': Permission denied
mkdir: cannot create directory '.tmp_7484': Permission denied
mkdir: cannot create directory '.tmp_7486': Permission denied
mkdir: cannot create directory '.tmp_7488': Permission denied
mkdir: cannot create directory '.tmp_7490': Permission denied
mkdir: cannot create directory '.tmp_7492': Permission denied
mkdir: cannot create directory '.tmp_7494': Permission denied
mkdir: cannot create directory '.tmp_7496': Permission denied
SYNC include/config/auto.conf.cmd
mkdir: cannot create directory '.tmp_7519': Permission denied
mkdir: cannot create directory '.tmp_7521': Permission denied
mkdir: cannot create directory ' .tmp_7523': Permission denied
mkdir: cannot create directory '.tmp_7525': Permission denied
mkdir: cannot create directory '.tmp_7527': Permission denied
mkdir: cannot create directory '.tmp_7529': Permission denied
mkdir: cannot create directory '.tmp_7531': Permission denied
mkdir: cannot create directory '.tmp_7533': Permission denied
mkdir: cannot create directory '.tmp_7535': Permission denied
mkdir: cannot create directory '.tmp_7537': Permission denied
mkdir: cannot create directory '.tmp_7539': Permission denied
mkdir: cannot create directory '.tmp_7541': Permission denied
mkdir: cannot create directory '.tmp_7543': Permission denied
YACC scripts/kconfig /parser.tab.[ch]
bison: scripts/kconfig/parser.tab.h: cannot open: Permission denied
make[3]: *** [scripts/Makefile.host:17: scripts/kconfig/parser.tab. h] Error 1
make[2]: *** [Makefile:630: syncconfig] Error 2
make[1]: *** [Makefile:740: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory ' /usr/src/linux-headers-5.14.21-051421-generic'
make: *** [Makefile:404: LINUX] Error 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question