Page 1 of 1

How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 4:13 am
by PIP436
Hi, I recently purchased a wifi-adapter from Amazon: AlfaAWUS036ACM. On the Alfa web page it says it uses the Mediatek MT7612U IC. After repeated correspondence with their tech support, I haven't been able to get clear instructions to install the driver on Debian 11, let alone get the adapter to work. Wondering if anyone has succeeded in doing this or could walk me through the steps from the beginning.

This is the Alfa instructions page: https://docs.alfa.com.tw/Support/Linux/MT7612U/#debian

This is the page they sent me to download the driver: https://www.mediatek.com/products/broad ... fi/mt7612u .

They also sent me a PDF with installation instructions for a file called RT2870, which I gather is realtek, but I don't know what this has to do with the mediatek driver and I can't get Alfa to explain.

Truly appreciate any help on this.

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 8:04 am
by PIP436

Code: Select all

System:    Kernel: 5.10.0-18-amd64 [5.10.140-1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-18-amd64 
           root=UUID=<filter> ro quiet splash 
           init=/lib/systemd/systemd 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.2.1_x64 Wildflower September 18  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop System: HP product: HP 290 G4 Microtower PC v: N/A serial: <filter> 
           Chassis: type: 3 serial: <filter> 
           Mobo: HP model: 877E v: A (SMVB) serial: <filter> UEFI: AMI v: F.23 date: 04/01/2021 
CPU:       Info: 6-Core model: Intel Core i5-10500 bits: 64 type: MT MCP arch: Comet Lake 
           family: 6 model-id: A5 (165) stepping: 3 microcode: F0 cache: L2: 12 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 74399 
           Speed: 800 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 
           5: 800 6: 800 7: 800 8: 800 9: 801 10: 801 11: 800 12: 800 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable 
           Type: retbleed mitigation: Enhanced IBRS 
           Type: spec_store_bypass 
           mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 
           mitigation: Enhanced IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: SW sequence 
           Type: srbds mitigation: Microcode 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel CometLake-S GT2 [UHD Graphics 630] vendor: Hewlett-Packard driver: i915 
           v: kernel bus-ID: 00:02.0 chip-ID: 8086:9bc8 class-ID: 0300 
           Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.16.1 driver: 
           loaded: modesetting unloaded: fbdev,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
           s-diag: 582mm (22.9") 
           Monitor-1: HDMI-1 res: 1920x1080 hz: 60 dpi: 94 size: 521x293mm (20.5x11.5") 
           diag: 598mm (23.5") 
           OpenGL: renderer: Mesa Intel UHD Graphics 630 (CML GT2) v: 4.6 Mesa 20.3.5 
           direct render: Yes 
Audio:     Device-1: Intel Comet Lake PCH cAVS vendor: Hewlett-Packard driver: snd_hda_intel 
           v: kernel alternate: snd_sof_pci bus-ID: 00:1f.3 chip-ID: 8086:06c8 class-ID: 0403 
           Sound Server-1: ALSA v: k5.10.0-18-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000 bus-ID: 01:00.0 
           chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: down mac: <filter> 
           Device-2: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter 
           vendor: Hewlett-Packard driver: rtl8821ce v: v5.5.2.1_35598.20191029 
           modules: rtw88_8821ce,wl port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:c821 class-ID: 0280 
           IF: wlan0 state: up mac: <filter> 
Bluetooth: Device-1: Realtek Realtek Bluetooth 4.2 Adapter type: USB driver: btusb v: 0.8 
           bus-ID: 1-14:5 chip-ID: 0bda:b00a class-ID: e001 serial: <filter> 
           Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 2.1 lmp-v: 4.2 
           sub-v: 7644 hci-v: 4.2 rev: 829a 
           Info: acl-mtu: 1021:8 sco-mtu: 255:12 link-policy: rswitch hold sniff park 
           link-mode: slave accept service-classes: rendering, capturing, object transfer, audio 
RAID:      Hardware-1: Intel SATA Controller [RAID mode] driver: ahci v: 3.0 port: 5060 
           bus-ID: 00:17.0 chip-ID: 8086.2822 rev: class-ID: 0104 
Drives:    Local Storage: total: 1.12 TiB used: 18.3 GiB (1.6%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Toshiba model: KBG40ZNV256G KIOXIA 
           size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
           type: SSD serial: <filter> rev: HP00AE00 temp: 23.9 C scheme: GPT 
           ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD5000AAKX-00ERMA0 
           size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: N/A 
           serial: <filter> rev: 1H15 scheme: GPT 
           ID-3: /dev/sdb maj-min: 8:16 vendor: KIOXIA model: EXCERIA SATA SSD size: 447.13 GiB 
           block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> 
           rev: 18.1 scheme: GPT 
Partition: ID-1: / raw-size: 230.22 GiB size: 225.54 GiB (97.97%) used: 18.3 GiB (8.1%) fs: ext4 
           dev: /dev/nvme0n1p2 maj-min: 259:2 
           ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat 
           dev: /dev/nvme0n1p1 maj-min: 259:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 
           dev: /dev/nvme0n1p3 maj-min: 259:3 
Sensors:   System Temperatures: cpu: 42.0 C mobo: 27.8 C 
           Fan Speeds (RPM): N/A 
Repos:     Packages: note: see --pkg apt: 1969 lib: 986 flatpak: 0 
           Active apt repos in: /etc/apt/sources.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb-src http://deb.debian.org/debian buster main contrib non-free
           3: deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
           4: deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free
           5: deb http://deb.debian.org/debian buster-updates main contrib non-free
           6: deb-src http://deb.debian.org/debian buster-updates main contrib non-free#this file is empty by default. Sources are under /etc/apt/souces.list.d
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/megasync.list 
           1: deb [signed-by=/usr/share/keyrings/meganz-archive-keyring.gpg] https://mega.nz/linux/repo/Debian_11/ ./
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://ftp.linux.org.tr/mx/repo/mx/repo/ bullseye main non-free
Info:      Processes: 288 Uptime: 1d 14m wakeups: 0 Memory: 7.6 GiB used: 3.05 GiB (40.1%) 
           Init: systemd v: 247 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: N/A alt: 10 
           Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: UEFI

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 8:40 am
by j2mcgreg
I have a question: Why aren't you using the HP's internal wifi card?

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:08 am
by PIP436
Thanks for the question. I am using the HP's internal wifi card.

Here's the story. We recently had fiber installed. It's supposed to get a download speed of 300 mbps. With a wire connection, or with the mesh unit we have installed in another room it gets that speed or close to it. But the company that installed it insisted on making the wall connection on the other side of the room from where my PC is located. With the PC's internal wifi card (or with a standard TP link USB adapter) I get 40 mbps, at best, which is about the speed I had with adsl). For an additional monthly fee, I I can get another mesh unit to bring the wifi signal to the PC and then plug into the mesh (which would get me up to 300 mbps). I thought this Alfa usb adapter with high gain antenna, which is supposed to work with Debian Linux, would improve the signal enough to get a respectable speed without another mesh. Anyway, that was the plan.

But as I said before, Alfa doesn't have clear instructions for how to install the driver, and all attempts to get useful help from them have led nowhere. Any ideas? Is there a standard way to install this type of driver on MX Linux?

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:08 am
by Huckleberry Finn
PIP436 wrote: Wed Sep 21, 2022 4:13 am... a file called RT2870, which I gather is realtek ...
"Ralink" (which's owned by Mediatek and which's already in the kernel since 2.6.31)

Just install the 5.18 kernel with 2 clicks and try.

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:13 am
by Huckleberry Finn
If still not:

Code: Select all

sudo apt update ; sudo apt install firmware-ralink -y

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:14 am
by gor9
I have not updated a kernel for me is 5.10.0-18-amd64

we appear to have a number of mediatek kernel modules so plug in usb dongle and show full output of

Code: Select all

lsusb
its possible our kernel has mt76x2u.ko and that may be a match

Code: Select all

modinfo SNIP
alias:          usb:v045Ep02FEd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v045Ep02E6d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846p9053d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2C4Ep0103d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E8Dp7632d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pB711d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v057Cp8503d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E8Dp7612d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p180Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17EBd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1833d*dc*dsc*dp*ic*isc*ip*in*

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:23 am
by PIP436
I posted lsusb and this is the output

shalom@desktop:~
$ lsusb
Bus 002 Device 002: ID 0e8d:7612 MediaTek Inc. MT7612U 802.11a/b/g/n/ac Wireless Adapter
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 062a:4106 MosArt Semiconductor Corp. Wireless Mouse 2.4G
Bus 001 Device 003: ID 04ca:009c Lite-On Technology Corp. USB Keyboard
Bus 001 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 0bda:b00a Realtek Semiconductor Corp. Realtek Bluetooth 4.2 Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
shalom@desktop:~
$

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:26 am
by gor9
Bus 002 Device 002: ID 0e8d:7612 MediaTek Inc. MT7612U 802.11a/b/g/n/ac Wireless Adapter
alias: usb:v0E8Dp7612d*dc*dsc*dp*ic*isc*ip*in*

match

modinfo also reveals it needs
firmware: mt7662_rom_patch.bin
firmware: mt7662.bin

both are in firmware-misc-nonfree and your alfa link suggested enabling that non-free repo.

If you are not sure, post contents of
/etc/apt/sources.list.d/debian.list

here is mine as example
deb http://deb.debian.org/debian bullseye main contrib non-free

add it then run

Code: Select all

sudo apt update
sudo install firmware-misc-nonfree

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:37 am
by PIP436
Hi gor9, I see that it's a match. Can you please explain what I need to do with the firmware it also needs? At Huckleberry's suggestion I ran the command: sudo apt update ; sudo apt install firmware-ralink -y. What do I need to do now?

Here's the result:
shalom@desktop:~
$ sudo apt update ; sudo apt install firmware-ralink -y
[sudo] password for shalom:
Hit:1 http://deb.debian.org/debian buster InRelease
Get:2 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB]
Hit:4 http://deb.debian.org/debian buster-updates InRelease
Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
Hit:6 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:7 http://deb.debian.org/debian bullseye InRelease
Get:8 http://deb.debian.org/debian-security buster/updates/main Sources [261 kB]
Get:9 https://mega.nz/linux/repo/Debian_11 ./ InRelease [2,959 B]
Get:10 http://deb.debian.org/debian-security buster/updates/main i386 Packages [357 kB]
Get:11 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [358 kB]
Get:12 http://deb.debian.org/debian-security buster/updates/main Translation-en [194 kB]
Hit:13 http://ftp.linux.org.tr/mx/repo/mx/repo bullseye InRelease
Fetched 1,255 kB in 2s (836 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
firmware-ralink
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 17.7 kB of archives.
After this operation, 23.6 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/non-free amd64 firmware-ralink all 20190114-2 [17.7 kB]
Fetched 17.7 kB in 0s (72.4 kB/s)
Selecting previously unselected package firmware-ralink.
(Reading database ... 294291 files and directories currently installed.)
Preparing to unpack .../firmware-ralink_20190114-2_all.deb ...
Unpacking firmware-ralink (20190114-2) ...
Setting up firmware-ralink (20190114-2) ...

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:40 am
by gor9
for the moment ignore ralink firmware. I have editted above post. See if that helps

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:48 am
by j2mcgreg
@PIP436 wrote:
At Huckleberry's suggestion I ran the command: sudo apt update ; sudo apt install firmware-ralink -y. What do I need to do now?
Plug in the Mediatek device and see if it works.

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:55 am
by Huckleberry Finn
In the meantime, yes, no harm (re)installing that, but firmware-misc-nonfree is already installed ootb on MX21:

firmware-misc-nonfree 20210818-1~mx21+1

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 10:02 am
by gor9
oops in post 2, OP already has non-free as well. hmm.

try a manual modprobe?

Code: Select all

sudo modprobe mt76x2u

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 10:07 am
by gor9
are you using network applet?

bring down all wired and wireless networks, in post 2 wired is down so

Code: Select all

sudo ifconfig wlan0 down
then use network applet to create a new wlan connection

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 10:34 am
by PIP436
Nothing happens when I plug the adopter in. Was there something specific I missed doing with the downloaded file I extracted?

Ran command sudo ifconfig wlan0 down and then restarted wifi network. Plugged in adapter again. Nothing!

Also ran this install command:

$ sudo apt update ; sudo apt install firmware-ralink -y
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
Hit:3 http://deb.debian.org/debian-security buster/updates InRelease
Hit:4 http://deb.debian.org/debian buster-updates InRelease
Hit:5 http://ftp.linux.org.tr/mx/repo/mx/repo bullseye InRelease
Hit:6 http://deb.debian.org/debian bullseye-updates InRelease
Get:7 https://mega.nz/linux/repo/Debian_11 ./ InRelease [2,959 B]
Hit:8 http://deb.debian.org/debian bullseye InRelease
Hit:9 https://dl.google.com/linux/chrome/deb stable InRelease
Fetched 2,959 B in 1s (2,823 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
firmware-ralink is already the newest version (20190114-2).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


Still nothing. Yikes!

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 10:40 am
by Huckleberry Finn
PIP436 wrote: Wed Sep 21, 2022 10:34 am...
firmware-ralink is already the newest version (20190114-2).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded...
Because you had already installed that:
PIP436 wrote: Wed Sep 21, 2022 9:37 am...
After this operation, 23.6 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/non-free amd64 firmware-ralink all 20190114-2 [17.7 kB]
Fetched 17.7 kB in 0s (72.4 kB/s)
Selecting previously unselected package firmware-ralink.
(Reading database ... 294291 files and directories currently installed.)
Preparing to unpack .../firmware-ralink_20190114-2_all.deb ...
Unpacking firmware-ralink (20190114-2) ...
Setting up firmware-ralink (20190114-2) ...

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 10:43 am
by Huckleberry Finn
If you haven't: Don't forget to disable "Secure Boot" in Bios settings.

Normally it's supported since kernel 4.19 :https://linux-hardware.org/?id=usb:0e8d ... e=2#status

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 10:47 am
by gor9
not sure what you mean by restarted wifi. we don't want your device from post 2 please

try this in case your existing wifi module is grabbing cfg* module
EDIT oops missing an -r

Code: Select all

sudo modprobe -r mt76x2u
sudo modprobe -r rtw88_8821ce
sudo modprobe  mt76x2u
dmesg
now check the end of your dmesg....does wifi firmware for the mt* show up?

something like.....
firmware: direct-loading firmware mt7662_rom_patch.bin
firmware: direct-loading firmware mt7662.bin
?

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 10:53 am
by gor9
if that works....you should see my output....but I do not have your device so can not confirm firmware loading

Code: Select all

lsmod | grep mt
mt76x2u                28672  0
mt76x2_common          28672  1 mt76x2u
mt76x02_usb            20480  1 mt76x2u
mt76_usb               36864  2 mt76x02_usb,mt76x2u
mt76x02_lib            86016  3 mt76x02_usb,mt76x2u,mt76x2_common
mt76                   77824  5 mt76_usb,mt76x02_lib,mt76x02_usb,mt76x2u,mt76x2_common
mac80211              995328  5 mt76,mt76_usb,mt76x02_lib,mt76x02_usb,mt76x2u
cfg80211              983040  5 mt76,mt76x02_lib,mac80211,mt76x02_usb,r8188eu
usbcore               331776  7 xhci_hcd,usbhid,mt76_usb,xhci_pci,mt76x02_usb,r8188eu,mt76x2u
we do not want to see cfg associated with your rtw88 kernel module

EDIT

it should be safe to pull out and re-insert usb dongle then check ifconfig to see if wlan* is up for your usb dongle

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 11:03 am
by gor9
oops my output contains another dongle so ignore r8188eu
edit
sorry bed time for me

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 11:47 am
by Huckleberry Finn
When it's attached: What does this show?

Code: Select all

rfkill

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 12:01 pm
by j2mcgreg
This probably should have been done at the outset.

Wireless throughput is generally slower than Ethernet, but 300 Mbps dropping to 40 is a major concern, and your existing internal wifi card is certainly capable of much higher speeds. Could you temporarily move your desktop closer to the signal source to see if you get a substantial increase in bandwidth?

The reasons for doing this are twofold:

1) you need to verify that that your ISP's equipment is outputting the signal speed that they claim

- and -

2) If doing the step above yields positive results, you need to identify the interference source that is causing your available bandwidth to drop by 85%.

FWIW I too have fibre internet and my new Win 11 desktop with a wired connection gets 494 Mbps (download) while my Probook running MX 21 and 25 feet away from the router gets 400 Mbps over wifi which represents a roughly 20% bandwidth drop.

It would also help if you could give us the make and model(s) of your ISP's equipment. There may be adjustments that a user can make in the router that will increase bandwidth output.

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 12:14 pm
by PIP436
$ rfkill
ID TYPE DEVICE SOFT HARD
0 wlan phy0 unblocked unblocked
1 bluetooth hci0 unblocked unblocked
2 wlan phy1 unblocked unblocked

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 12:46 pm
by Huckleberry Finn

Code: Select all

git clone https://github.com/jeremyb31/mt7612u.git ; cd mt7612u ; make ; sudo make installfw

Code: Select all

sudo cp mt7612u.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless ; sudo depmod -a
Reboot.

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 1:05 pm
by PIP436
wasn't sure what "uname" was. First I put in my user name shalom, then I just tried it as uname. Neither worked...

shalom@desktop:~
$ git clone https://github.com/jeremyb31/mt7612u.git ; cd mt7612u ; make ; sudo make installfw
Cloning into 'mt7612u'...
remote: Enumerating objects: 11518, done.
remote: Total 11518 (delta 0), reused 0 (delta 0), pack-reused 11518
Receiving objects: 100% (11518/11518), 6.25 MiB | 4.13 MiB/s, done.
Resolving deltas: 100% (9117/9117), done.
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-18-amd64/build M=/home/shalom/mt7612u modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-18-amd64'
CC [M] /home/shalom/mt7612u/ap/ap_mbss.o
CC [M] /home/shalom/mt7612u/ap/ap.o
/home/shalom/mt7612u/ap/ap.c: In function ‘DOT1X_InternalCmdAction’:
/home/shalom/mt7612u/ap/ap.c:1893:2: warning: ISO C90 forbids variable length array ‘FrameBuf’ [-Wvla]
1893 | u8 FrameBuf[frame_len];
| ^~
/home/shalom/mt7612u/ap/ap.c: In function ‘DOT1X_EapTriggerAction’:
/home/shalom/mt7612u/ap/ap.c:1954:2: warning: ISO C90 forbids variable length array ‘FrameBuf’ [-Wvla]
1954 | u8 FrameBuf[frame_len];
| ^~
CC [M] /home/shalom/mt7612u/ap/ap_assoc.o
CC [M] /home/shalom/mt7612u/ap/ap_auth.o
CC [M] /home/shalom/mt7612u/ap/ap_connect.o
CC [M] /home/shalom/mt7612u/ap/ap_mlme.o
CC [M] /home/shalom/mt7612u/ap/ap_sanity.o
/home/shalom/mt7612u/ap/ap_sanity.c: In function ‘PeerAssocReqCmmSanity’:
/home/shalom/mt7612u/ap/ap_sanity.c:298:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
298 | if (eid_ptr->Len == sizeof(VHT_CAP_IE))
| ^
/home/shalom/mt7612u/ap/ap_sanity.c:310:3: note: here
310 | case IE_VHT_OP:
| ^~~~
/home/shalom/mt7612u/ap/ap_sanity.c:311:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
311 | if (eid_ptr->Len == sizeof(VHT_OP_IE))
| ^
/home/shalom/mt7612u/ap/ap_sanity.c:318:3: note: here
318 | case IE_OPERATING_MODE_NOTIFY:
| ^~~~
CC [M] /home/shalom/mt7612u/ap/ap_sync.o
CC [M] /home/shalom/mt7612u/ap/ap_wpa.o
CC [M] /home/shalom/mt7612u/ap/ap_data.o
CC [M] /home/shalom/mt7612u/ap/ap_autoChSel.o
CC [M] /home/shalom/mt7612u/ap/ap_qload.o
CC [M] /home/shalom/mt7612u/ap/ap_cfg.o
CC [M] /home/shalom/mt7612u/ap/ap_mbss_inf.o
CC [M] /home/shalom/mt7612u/os/linux/ap_ioctl.o
CC [M] /home/shalom/mt7612u/sta/assoc.o
CC [M] /home/shalom/mt7612u/sta/auth.o
CC [M] /home/shalom/mt7612u/sta/auth_rsp.o
CC [M] /home/shalom/mt7612u/sta/sync.o
CC [M] /home/shalom/mt7612u/sta/sanity.o
CC [M] /home/shalom/mt7612u/sta/rtmp_data.o
CC [M] /home/shalom/mt7612u/sta/connect.o
CC [M] /home/shalom/mt7612u/sta/wpa.o
CC [M] /home/shalom/mt7612u/sta/sta_cfg.o
CC [M] /home/shalom/mt7612u/sta/sta.o
CC [M] /home/shalom/mt7612u/os/linux/sta_ioctl.o
CC [M] /home/shalom/mt7612u/mgmt/mgmt_vht.o
CC [M] /home/shalom/mt7612u/common/vht.o
/home/shalom/mt7612u/common/vht.c: In function ‘build_vht_op_ie’:
/home/shalom/mt7612u/common/vht.c:378:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
378 | vht_op.basic_mcs_set.mcs_ss2 = VHT_MCS_CAP_7;
/home/shalom/mt7612u/common/vht.c:379:2: note: here
379 | case 1:
| ^~~~
CC [M] /home/shalom/mt7612u/common/crypt_md5.o
CC [M] /home/shalom/mt7612u/common/crypt_sha2.o
CC [M] /home/shalom/mt7612u/common/crypt_hmac.o
CC [M] /home/shalom/mt7612u/common/crypt_aes.o
CC [M] /home/shalom/mt7612u/common/crypt_arc4.o
CC [M] /home/shalom/mt7612u/common/mlme.o
/home/shalom/mt7612u/common/mlme.c: In function ‘RTMPCheckHt’:
/home/shalom/mt7612u/common/mlme.c:5105:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
5105 | pAd->MlmeAux.HtCapability.MCSSet[2] = 0xff;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/home/shalom/mt7612u/common/mlme.c:5106:2: note: here
5106 | case 2:
| ^~~~
/home/shalom/mt7612u/common/mlme.c:5107:39: warning: this statement may fall through [-Wimplicit-fallthrough=]
5107 | pAd->MlmeAux.HtCapability.MCSSet[1] = 0xff;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/home/shalom/mt7612u/common/mlme.c:5108:2: note: here
5108 | case 1:
| ^~~~
CC [M] /home/shalom/mt7612u/common/cmm_wep.o
CC [M] /home/shalom/mt7612u/common/action.o
CC [M] /home/shalom/mt7612u/common/cmm_data.o
CC [M] /home/shalom/mt7612u/common/rtmp_init.o
CC [M] /home/shalom/mt7612u/common/rtmp_init_inf.o
CC [M] /home/shalom/mt7612u/common/cmm_tkip.o
CC [M] /home/shalom/mt7612u/common/cmm_aes.o
CC [M] /home/shalom/mt7612u/common/cmm_sync.o
CC [M] /home/shalom/mt7612u/common/cmm_sanity.o
CC [M] /home/shalom/mt7612u/common/cmm_info.o
CC [M] /home/shalom/mt7612u/common/cmm_cfg.o
/home/shalom/mt7612u/common/cmm_cfg.c: In function ‘RT_CfgSetFixedTxPhyMode’:
/home/shalom/mt7612u/common/cmm_cfg.c:621:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
621 | fix_tx_mode = value;
| ~~~~~~~~~~~~^~~~~~~
/home/shalom/mt7612u/common/cmm_cfg.c:622:4: note: here
622 | default:
| ^~~~~~~
CC [M] /home/shalom/mt7612u/common/cmm_wpa.o
CC [M] /home/shalom/mt7612u/common/cmm_radar.o
CC [M] /home/shalom/mt7612u/common/spectrum.o
CC [M] /home/shalom/mt7612u/common/rtmp_timer.o
CC [M] /home/shalom/mt7612u/common/rt_channel.o
CC [M] /home/shalom/mt7612u/common/cmm_profile.o
CC [M] /home/shalom/mt7612u/common/cmm_asic.o
CC [M] /home/shalom/mt7612u/common/scan.o
CC [M] /home/shalom/mt7612u/common/cmm_cmd.o
CC [M] /home/shalom/mt7612u/common/uapsd.o
CC [M] /home/shalom/mt7612u/common/ps.o
CC [M] /home/shalom/mt7612u/common/sys_log.o
CC [M] /home/shalom/mt7612u/common/txpower.o
CC [M] /home/shalom/mt7612u/rate_ctrl/ra_ctrl.o
/home/shalom/mt7612u/rate_ctrl/ra_ctrl.c: In function ‘RTMPSetSupportMCS’:
/home/shalom/mt7612u/rate_ctrl/ra_ctrl.c:2493:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
2493 | if (vht_cap->mcs_set.rx_mcs_map.mcs_ss2 < VHT_MCS_CAP_NA)
| ^
/home/shalom/mt7612u/rate_ctrl/ra_ctrl.c:2507:5: note: here
2507 | case 1:
| ^~~~
CC [M] /home/shalom/mt7612u/rate_ctrl/alg_legacy.o
CC [M] /home/shalom/mt7612u/chips/rtmp_chip.o
CC [M] /home/shalom/mt7612u/mgmt/mgmt_entrytb.o
CC [M] /home/shalom/mt7612u/tx_rx/wdev_tx.o
CC [M] /home/shalom/mt7612u/os/linux/rt_profile.o
CC [M] /home/shalom/mt7612u/phy/phy.o
CC [M] /home/shalom/mt7612u/phy/rf.o
CC [M] /home/shalom/mt7612u/phy/rlt_phy.o
CC [M] /home/shalom/mt7612u/mac/rtmp_mac.o
CC [M] /home/shalom/mt7612u/mac/ral_nmac.o
CC [M] /home/shalom/mt7612u/rate_ctrl/alg_grp.o
CC [M] /home/shalom/mt7612u/common/ba_action.o
CC [M] /home/shalom/mt7612u/mgmt/mgmt_ht.o
/home/shalom/mt7612u/mgmt/mgmt_ht.c: In function ‘RTMPSetHT’:
/home/shalom/mt7612u/mgmt/mgmt_ht.c:276:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
276 | ht_cap->MCSSet[2] = 0xff;
| ~~~~~~~~~~~~~~~~~~^~~~~~~
/home/shalom/mt7612u/mgmt/mgmt_ht.c:277:3: note: here
277 | case 2:
| ^~~~
/home/shalom/mt7612u/mgmt/mgmt_ht.c:278:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
278 | ht_cap->MCSSet[1] = 0xff;
| ~~~~~~~~~~~~~~~~~~^~~~~~~
/home/shalom/mt7612u/mgmt/mgmt_ht.c:279:3: note: here
279 | case 1:
| ^~~~
CC [M] /home/shalom/mt7612u/common/cmm_txbf.o
CC [M] /home/shalom/mt7612u/common/cmm_txbf_cal.o
CC [M] /home/shalom/mt7612u/common/rt_os_util.o
CC [M] /home/shalom/mt7612u/os/linux/rt_linux.o
/home/shalom/mt7612u/os/linux/rt_linux.c: In function ‘RtmpDrvAllMacPrint’:
/home/shalom/mt7612u/os/linux/rt_linux.c:1393:12: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
1393 | orig_fs = get_fs();
| ^~~~~~
| sget_fc
/home/shalom/mt7612u/os/linux/rt_linux.c:1393:12: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
/home/shalom/mt7612u/os/linux/rt_linux.c:1394:2: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
1394 | set_fs(KERNEL_DS);
| ^~~~~~
| sget_fc
/home/shalom/mt7612u/os/linux/rt_linux.c:1394:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
1394 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNFS_NS
/home/shalom/mt7612u/os/linux/rt_linux.c:1394:9: note: each undeclared identifier is reported only once for each function it appears in
/home/shalom/mt7612u/os/linux/rt_linux.c: In function ‘RtmpDrvAllE2PPrint’:
/home/shalom/mt7612u/os/linux/rt_linux.c:1444:12: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
1444 | orig_fs = get_fs();
| ^~~~~~
/home/shalom/mt7612u/os/linux/rt_linux.c:1445:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
1445 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNFS_NS
/home/shalom/mt7612u/os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’:
/home/shalom/mt7612u/os/linux/rt_linux.c:1488:12: error: incompatible types when assigning to type ‘mm_segment_t’ from type ‘int’
1488 | orig_fs = get_fs();
| ^~~~~~
/home/shalom/mt7612u/os/linux/rt_linux.c:1489:9: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
1489 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNFS_NS
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.10.0-18-common/scripts/Makefile.build:291: /home/shalom/mt7612u/os/linux/rt_linux.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.10.0-18-common/Makefile:1856: /home/shalom/mt7612u] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-18-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-18-amd64'
make: *** [Makefile:615: modules] Error 2
[sudo] password for shalom:
cp -n firmware/* /lib/firmware
shalom@desktop:~/mt7612u
$ sudo cp mt7612u.ko /lib/modules/$(shalom -r)/kernal/drivers/net/wireless ; sudo depmod -a
shalom: command not found
cp: cannot stat 'mt7612u.ko': No such file or directory
shalom@desktop:~/mt7612u
$ sudo cp mt7612u.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless ; sudo depmod -a
cp: cannot stat 'mt7612u.ko': No such file or directory
shalom@desktop:~/mt7612u
$

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 1:18 pm
by Huckleberry Finn
It's not installed for this or that reason: cp: cannot stat 'mt7612u.ko': No such file or directory

What happens if you just:

Code: Select all

sudo usb_modeswitch -KW -v 0e8d -p 7612
or

Code: Select all

sudo usb_modeswitch -KW -v 0e8d -p 2870
?

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 1:26 pm
by Huckleberry Finn
In the meantime we are using the code tags for outputs, especially long ones, like this:

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 2:25 pm
by Stevo
That driver code failed to build on the 5.10 kernel. Maybe it had not been updated for it. A look at the actual page on github for it usually answers some questions like that.

Code: Select all

c1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.10.0-18-common/scripts/Makefile.build:291: /home/shalom/mt7612u/os/linux/rt_linux.o] Error 1
Edit: yeah, pretty old.
MT7612U for Linux

Tested with latest -stable, v4.15.6

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 2:37 pm
by Stevo
Please plug it in and run "dmesg" in a terminal. We should see some messages about what the regular mt76 kernel driver is trying to do with the thing. Please copy and paste into a message in this thread, highlight it, and then hit the code button </> above the message box.

And it's also a USB 3.0 device, so make sure to plug it into a USB 3 port for full performance.

https://wikidevi.wi-cat.ru/ALFA_Network_AWUS036ACM

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 8:18 pm
by gor9
I had a look at how updated the git source mentioned at post 25.....it is also old...I found a couple more and then I found
https://github.com/morrownr/7612u

its readme SNIP
USB WiFi adapters based on the mt7612u chipset have been supported in-kernel since Linux kernel v4.19 (2018), therefore, there is no need to install a driver if using a modern release of Ubuntu, Raspberry Pi OS, Linux Mint, Kali, Fedora or Manjaro. (and others)
so I suggest, lets just see if OP can reply to post 19.

that is.....after removing the realtek wifi module.....with usb dongle inserted does he see in dmesg that the meditatek firmware is loaded or not?

2) leaping ahead.....if realtek module is unloaded or blacklisted.....IMHO wlan0 will then associate with the mediatek module

but I agree I know nothing about the real speed of the two wireless devices so yes OP please reply to post 23
It would also help if you could give us the make and model(s) of your ISP's equipment. There may be adjustments that a user can make in the router that will increase bandwidth output.
I was a little tired last nite....but I still believe his current kernel should still work with the mediatek kernel
Whether he should ....or stay with realtek a very good question

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Wed Sep 21, 2022 9:14 pm
by gor9
Ok so looking at page 1 and amazon site, realtek alleges it has max of 300 Mbs and mediatek on 5Ghz alleges max of 867 Mbs

that suggests OP could look at blacklisting both the wired and realtek modules, reboot and allegedly the only module that will load will be our mediatek
assuming there the firmware has loaded.

suggests

Code: Select all

sudo su

echo 'blacklist r8169
blacklist rtw88_8821ce
blacklist wl ' > /etc/modprobe.d/mediatek.conf
full reboot to test if mediatek is good.

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Thu Sep 22, 2022 3:18 am
by PIP436

Code: Select all

shalom@desktop:~
$ sudo usb_modeswitch -KW -v 0e8d -p 7612
[sudo] password for shalom: 
Take all parameters from the command line


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.6.1 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0e8d
DefaultProduct= 0x7612

StandardEject=1

Look for default devices ...
  found USB ID 0e8d:7612
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0003
  found USB ID 062a:4106
  found USB ID 04ca:009c
  found USB ID 046d:c534
  found USB ID 0bda:b00a
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 002 on bus 002
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

shalom@desktop:~
$ sudo usb_modeswitch -KW -v 0e8d -p 2870
Take all parameters from the command line


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.6.1 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0e8d
DefaultProduct= 0x2870

StandardEject=1

Look for default devices ...
  found USB ID 0e8d:7612
   vendor ID matched
  found USB ID 1d6b:0003
  found USB ID 062a:4106
  found USB ID 04ca:009c
  found USB ID 046d:c534
  found USB ID 0bda:b00a
  found USB ID 1d6b:0002
 No devices in default mode found. Nothing to do. Bye!

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Thu Sep 22, 2022 3:27 am
by PIP436

Code: Select all

shalom@desktop:~
$ sudo usb_modeswitch -KW -v 0e8d -p 7612
[sudo] password for shalom: 
Take all parameters from the command line


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.6.1 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0e8d
DefaultProduct= 0x7612

StandardEject=1

Look for default devices ...
  found USB ID 0e8d:7612
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0003
  found USB ID 062a:4106
  found USB ID 04ca:009c
  found USB ID 046d:c534
  found USB ID 0bda:b00a
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 002 on bus 002
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

shalom@desktop:~
$ sudo usb_modeswitch -KW -v 0e8d -p 2870
Take all parameters from the command line


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.6.1 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0e8d
DefaultProduct= 0x2870

StandardEject=1

Look for default devices ...
  found USB ID 0e8d:7612
   vendor ID matched
  found USB ID 1d6b:0003
  found USB ID 062a:4106
  found USB ID 04ca:009c
  found USB ID 046d:c534
  found USB ID 0bda:b00a
  found USB ID 1d6b:0002
 No devices in default mode found. Nothing to do. Bye!

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Thu Sep 22, 2022 3:31 am
by PIP436
Gor9 I tried this, but still not working. :
sudo su

echo 'blacklist r8169
blacklist rtw88_8821ce
blacklist wl ' > /etc/modprobe.d/mediatek.conf

Huck, tried this, nothing:
Code: Select all
sudo usb_modeswitch -KW -v 0e8d -p 7612
or
Code: Select all
sudo usb_modeswitch -KW -v 0e8d -p 2870

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Thu Sep 22, 2022 3:43 am
by PIP436
re message #19, just saw the edit re: mising "r". Re-ran demsg and now get this. Is that progress?:

47.962221] usb 2-4: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[ 47.962228] usb 2-4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 47.962231] usb 2-4: Product: Wireless
[ 47.962234] usb 2-4: Manufacturer: MediaTek Inc.
[ 47.962236] usb 2-4: SerialNumber: 000000000
[ 48.697329] usb 2-4: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 48.719139] mt76x2u 2-4:1.0: ASIC revision: 76120044
[ 48.744883] mt76x2u 2-4:1.0: firmware: direct-loading firmware mt7662_rom_patch.bin
[ 48.744885] mt76x2u 2-4:1.0: ROM patch build: 20141115060606a
[ 48.879045] mt76x2u 2-4:1.0: firmware: direct-loading firmware mt7662.bin
[ 48.879061] mt76x2u 2-4:1.0: Firmware Version: 0.0.00
[ 48.879064] mt76x2u 2-4:1.0: Build: 1
[ 48.879067] mt76x2u 2-4:1.0: Build Time: 201507311614____
[ 49.607954] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 49.609597] usbcore: registered new interface driver mt76x2u
[ 593.414976] usbcore: deregistering interface driver mt76x2u

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Thu Sep 22, 2022 4:27 am
by PIP436
Just want to say, everyone has really been trying to help me out here, so thanks for all your ideas. I think I've tried all that was suggested, but so far no go. Since I'm not at all a technical person, I have a couple of probably stupid general questions if anyone would consider them:

1) Has anyone tried looking at the driver file Alfa initially sent me, maybe look at the readme? Here it is again https://www.mediatek.com/products/broad ... fi/mt7612u. Anything helpful there?

2) Perhaps someone would like to try and actually install this driver on their own machine and see if it works, then I could replicate your steps.

Again, thanks MX for being such a great, responsive forum!

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Thu Sep 22, 2022 5:11 am
by PIP436
Just went back to post #23 and tried moving my PC within as few feet of the Fiber Modem/router. Using either the internal wifi card or a simple TP-Link usb dongle, I get 48 mpbs, that's all! In contrast, my wife's Asus / windows laptop gets 287 mpbs at that location (and about the same in another room near a mesh unit). Why would that be?? My PC is a recent HP Intel core I5 model. So the Alfa usb dongle probably isn't the solution even if the driver worked! I posted quick system info at the beginning of this thread. I could do it again if that helps. I know this wasn't my original problem, but what do you think?

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Thu Sep 22, 2022 7:49 am
by gor9
Hi
post 56 is progress because you have firmware loading.
I think I've tried all that was suggested, but so far no go
What is output to (EDIT)

Code: Select all

sudo ifconfig
inxi -Nxxx
allegedly....with no ethernet or HP wireless modules ....wlan0 IMHO should be the mediatek.

2) post 38 is the TP link....mentioned in post 4 but I gather that is not an option due to its slow speed for you.

3) What we did not discuss is whether the option of using the wired using Power over Ethernet connections. It won't work if the router is not on the same wiring circuit.
Amazon call them powerline network adapters.

and going back to post 4....if you paid this company for cabling ....surely you were entitled to tell them where to cable it. Generally speaking ethernet speed is 1Gbps.
and speaking of wifi.....5Ghz is affected more by thicker walls, metal walls, larger distances and thicker floors if 2 storey.

4) post 37 yes I have.
firstly when you download it....it claims to end in .bz2 but when you run file against it....its only a tar file
unpacks to a dir called DPO
I get a make error or 2 similar to others make errors already discussed.

as a reference for others if interested....
from post 1 download link is
https://d86o2zu8ugzlg.cloudfront.net/me ... 18.tar.bz2

Code: Select all

file *
MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.tar.bz2: gzip compressed data, last modified: Fri Jul 18 11:00:17 2014, from Unix, original size modulo 2^32 12277760
tar jxvf * 
bzip2: (stdin) is not a bzip2 file.
mv MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.tar.bz2 mediatek.tar
tar xvf *
# unpacks
cd DPO
sed 's|STA|AP|' -i Makefile # Based on README in doc folder....could be wrong

make -j5
make -C tools
make[1]: Entering directory '/home/gor/Downloads/DPO/tools'
gcc -g bin2h.c -o bin2h
cp -f os/linux/Makefile.6 /home/gor/Downloads/DPO/os/linux/Makefile
make -C /lib/modules/5.19.0-4.2-liquorix-amd64/build SUBDIRS=/home/gor/Downloads/DPO/os/linux modules
make[1]: Entering directory '/usr/lib/modules/5.19.0-4.2-liquorix-amd64/build'
make[1]: *** No rule to make target 'modules'.  Stop.
make[1]: Leaving directory '/usr/lib/modules/5.19.0-4.2-liquorix-amd64/build'
make: *** [Makefile:391: LINUX] Error 2
make: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/gor/Downloads/DPO/tools'
/home/gor/Downloads/DPO/tools/bin2h
chipset = mt7662u
chipset = mt7632u
chipset = mt7612u
The error got me

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Thu Sep 22, 2022 8:40 am
by PIP436
Well, thanks for trying. Given my test of the wifi near the router and the limited speed (see post #38), it seems to me I should give up on the Alfa / ralink/ mediateck issue. I'll try to return the wifi adapter to Amazon.

Meanwhile, how can I go about checking the wifi configuration to see what's limiting the wifi speed. ? I can google this question and see what's out there. Or if anyone on the forum has some advice for me on this it would be greatly appreciated. I can open a new question if you're not all tired of me ;-).

Re: How to install Mediatek MT7612U driver for Wifi Adapter

Posted: Thu Sep 22, 2022 10:08 am
by j2mcgreg
@PIP436 wrote:
Meanwhile, how can I go about checking the wifi configuration to see what's limiting the wifi speed. ? I can google this question and see what's out there. Or if anyone on the forum has some advice for me on this it would be greatly appreciated. I can open a new question if you're not all tired of me ;-).
You probably should start a new thread, but in the interim here are a couple of possibilities:

- for whatever reason, you could currently be limited to accessing a 2.4 GHz network. Try to access the router and then set up a new 5GHz network with a unique SSID. Once that is in place, try accessing it and see if you get a speed boost.

- it also could be a DNS issue. Here's Google's info site on how to use its public DNS servers instead of those provided by your ISP:
https://developers.google.com/speed/public-dns