How to install Mediatek MT7612U driver for Wifi Adapter

Message
Author
gor9

Re: How to install Mediatek MT7612U driver for Wifi Adapter

#31 Post 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

gor9

Re: How to install Mediatek MT7612U driver for Wifi Adapter

#32 Post 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.

PIP436
Posts: 54
Joined: Thu Sep 15, 2022 4:56 am

Re: How to install Mediatek MT7612U driver for Wifi Adapter

#33 Post 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!

PIP436
Posts: 54
Joined: Thu Sep 15, 2022 4:56 am

Re: How to install Mediatek MT7612U driver for Wifi Adapter

#34 Post 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!

PIP436
Posts: 54
Joined: Thu Sep 15, 2022 4:56 am

Re: How to install Mediatek MT7612U driver for Wifi Adapter

#35 Post 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

PIP436
Posts: 54
Joined: Thu Sep 15, 2022 4:56 am

Re: How to install Mediatek MT7612U driver for Wifi Adapter

#36 Post 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

PIP436
Posts: 54
Joined: Thu Sep 15, 2022 4:56 am

Re: How to install Mediatek MT7612U driver for Wifi Adapter

#37 Post 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!

PIP436
Posts: 54
Joined: Thu Sep 15, 2022 4:56 am

Re: How to install Mediatek MT7612U driver for Wifi Adapter

#38 Post 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?

gor9

Re: How to install Mediatek MT7612U driver for Wifi Adapter

#39 Post 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

PIP436
Posts: 54
Joined: Thu Sep 15, 2022 4:56 am

Re: How to install Mediatek MT7612U driver for Wifi Adapter

#40 Post 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 ;-).

Post Reply

Return to “Hardware /Configuration”