Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MT7612U driver is not working. #3014

Closed
qtopie opened this issue Jun 16, 2019 · 21 comments
Closed

MT7612U driver is not working. #3014

qtopie opened this issue Jun 16, 2019 · 21 comments

Comments

@qtopie
Copy link

qtopie commented Jun 16, 2019

Describe the bug
I wanted to use a wifi dongle on raspberry pi 3 with mt7612u driver, but failed to make it work.

To reproduce

  • Fresh install latest stretch-lite image and update kernel : 4.19.42-v7+
  • Download mt7612u wifi driver bin file into /lib/firmware
  • Insert wifi dongle, and run sudo usb_modeswtich ... command to switch into wifi mode.
  • Run ifconfig and dmesg to see results.

Expected behaviour
New wlan interface should show up, and no errors in dmesg messge.

Actual behaviour
No new wlan interface can be found, and dmesg got:

[   33.873306] usb 1-1.5: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[   33.873320] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   33.873329] usb 1-1.5: Product: 802.11ac WLAN
[   33.873338] usb 1-1.5: Manufacturer: MediaTek Inc.
[   33.873347] usb 1-1.5: SerialNumber: 000000000
[   34.121756] usb 1-1.5: reset high-speed USB device number 5 using dwc_otg
[   34.252792] mt76x2u 1-1.5:1.0: ASIC revision: 76120044
[   34.271279] mt76x2u: probe of 1-1.5:1.0 failed with error -22

System

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
  • Which model of Raspberry Pi? e.g. Pi3B+, PiZeroW
    Pi3B+

  • Which OS and version (cat /etc/rpi-issue)?

Raspberry Pi reference 2019-04-08
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, e910bf55ac92e27c6e77043e8995bcb5e0a2d742, stage2
  • Which firmware version (vcgencmd version)?
Mar 27 2019 15:45:53 
Copyright (c) 2012 Broadcom
version 2e98b31d18547962e564bdf88e57b3df7085c29b (clean) (release) (start)
  • Which kernel version (uname -a)?
Linux raspberrypi 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l GNU/Linux

Logs

[   32.679911] usb 1-1.5: USB disconnect, device number 4
[   33.741783] usb 1-1.5: new high-speed USB device number 5 using dwc_otg
[   33.873306] usb 1-1.5: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[   33.873320] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   33.873329] usb 1-1.5: Product: 802.11ac WLAN
[   33.873338] usb 1-1.5: Manufacturer: MediaTek Inc.
[   33.873347] usb 1-1.5: SerialNumber: 000000000
[   34.121756] usb 1-1.5: reset high-speed USB device number 5 using dwc_otg
[   34.252792] mt76x2u 1-1.5:1.0: ASIC revision: 76120044
[   34.271279] mt76x2u: probe of 1-1.5:1.0 failed with error -22
[   34.271367] usbcore: registered new interface driver mt76x2u

Additional context
N/A

@ghost
Copy link

ghost commented Jun 16, 2019

Where exactly is the driver from?

@qtopie
Copy link
Author

qtopie commented Jun 16, 2019

The driver is included in the firmware, installed by sudo apt dist-upgrade. see #2890. And bin file is from https://github.com/ulli-kroll/mt7612u/tree/master/mcu/bin. I've checked mt7612u is working on ubuntu 18.04 x64 on my laptop

@ghost
Copy link

ghost commented Jun 16, 2019

Does it work with the stock vendor supplied firmware, or is that the same as the one on that github repo?

@qtopie
Copy link
Author

qtopie commented Jun 16, 2019

I've tried both, neither is working on raspberry pi. But bin files can work on my laptop.

@lategoodbye
Copy link
Contributor

This driver has been introduced with 4.19 and still contains a lot of bugs for non-x86 platforms.
Are you able to test rpi-5.1?
Which wifi dongle are you using?

@cybex-dev
Copy link

cybex-dev commented Jun 17, 2019

I have the same problem as @artificerpi.

Kernel

$ uname -a
Linux gateway 4.19.50-v7+ #1234 SMP Thu Jun 13 11:06:37 BST 2019 armv7l GNU/Linux

dmest output

$ dmesg | grep mt76
[    3.573362] mt76x2u 1-1.2:1.0: ASIC revision: 76120044
[    3.591524] mt76x2u: probe of 1-1.2:1.0 failed with error -22
[    3.591660] usbcore: registered new interface driver mt76x2u

I have posted the module (driver) code on my github - cybex-dev. This is the module code given by the manufacturer, as is.

Please note however that the manufacturer code does not seem to compile correctly.

@cybex-dev
Copy link

any updates for us?

@qtopie
Copy link
Author

qtopie commented Jun 26, 2019

@lategoodbye Thanks. It works on rpi-5.1.y

[  116.410847] usb 1-1.4: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[  116.410864] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  116.410877] usb 1-1.4: Product: 802.11ac WLAN
[  116.410890] usb 1-1.4: Manufacturer: MediaTek Inc.
[  116.410903] usb 1-1.4: SerialNumber: 000000000
[  116.659813] usb 1-1.4: reset high-speed USB device number 5 using dwc_otg
[  116.791276] mt76x2u 1-1.4:1.0: ASIC revision: 76120044
[  116.823546] mt76x2u 1-1.4:1.0: ROM patch build: 20140408060640a
[  116.975644] mt76x2u 1-1.4:1.0: Firmware Version: 0.0.00
[  116.975654] mt76x2u 1-1.4:1.0: Build: 1
[  116.975661] mt76x2u 1-1.4:1.0: Build Time: 201406241830____
[  118.211340] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[  118.213166] usbcore: registered new interface driver mt76x2u
[  519.023105] wlan1: authenticate with **:**:**:**:**:**
[  520.821733] wlan1: send auth to **:**:**:**:**:** (try 1/3)
[  520.827379] wlan1: authenticated
[  520.830158] wlan1: associate with **:**:**:**:**:** (try 1/3)
[  520.837322] wlan1: RX AssocResp from **:**:**:**:**:** (capab=0xc11 status=0 aid=1)
[  520.842802] wlan1: associated
[  520.912608] cryptd: max_cpu_qlen set to 1000
[  520.993817] wlan1: Limiting TX power to 30 (30 - 0) dBm as advertised by **:**:**:**:**:**
[  521.000561] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready

@qtopie qtopie closed this as completed Jul 1, 2019
@JFrandon
Copy link

I heve the same issue
@artificerpi How do I install "rpi-5.1.y" ?

I have a Raspberry Pi 2B kernel 4.19.59-v7+

@pelwell
Copy link
Contributor

pelwell commented Jul 24, 2019

You would have to build it yourself (see https://www.raspberrypi.org/documentation/linux/kernel/building.md), but if someone can identify the necessary commits (and if they cherry-pick successfully) we would be open to back-porting them to rpi-4.19.y.

@lategoodbye
Copy link
Contributor

The driver was / is under heavy reworking, so i expect a lot of changes between 4.19 and 5.1.

@Y2Kot
Copy link

Y2Kot commented Sep 18, 2019

I've update my kernel to 5.1 version, however I got
in dmesg | grep mt76

[    6.067522] mt76x0u 1-1.4:1.0: ASIC revision: 76100002 MAC revision: 76502000
[    6.078647] mt76x0u 1-1.4:1.0: mediatek/mt7610e.bin not found, switching to mediatek/mt7610u.bin
[    6.078693] mt76x0u 1-1.4:1.0: Direct firmware load for mediatek/mt7610u.bin failed with error -2
[    6.103586] mt76x0u: probe of 1-1.4:1.0 failed with error -2
[    6.103735] usbcore: registered new interface driver mt76x0u

in lsusb:
Bus 001 Device 004: ID 148f:761a Ralink Technology, Corp. MT7610U ("Archer T2U" 2.4G+5G WLAN Adapter
uname -a:
Linux raspberrypi 5.1.21-v7l+ #1 SMP Tue Sep 17 13:49:26 PDT 2019 armv7l GNU/Linux
how can I install driver on 5.1 kernel? It's raspberry pi4

@pelwell
Copy link
Contributor

pelwell commented Sep 18, 2019

You have an MT7610, not an MT7612U, so this is the wrong place for your question. However, the Linux firmware repo appears to have firmwares that should work: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek

@Y2Kot
Copy link

Y2Kot commented Sep 18, 2019

sorry. My wrong. Two last questions: how can I install bins from you url? And should I update to 5.3 to make it work?

@pelwell
Copy link
Contributor

pelwell commented Sep 18, 2019

In your browser, click on the file you want, then click on '(plain)' to download it. And stay away from 5.3 for now - it's not really ready yet; 5.2 should be fine.

@kmahyyg
Copy link

kmahyyg commented Oct 16, 2019

I can confirm that there must be some necessary modification in Kernel, at least version 5.3 is what we want.

  • EDUP AC-1616 (MT7612U confirmed by manufacturer) is working only on my laptop with Arch Linux with kernel 5.3.6, none of my friends' 5.2.0 (don't work at all) or 4.19 in raspbian(no AP mode support) is working.

So may I ask if there's any support chart or progressing chart for 5.3.x kernel? Can we have AP mode support in kernel 4.19.x in raspbian?

@qtopie
Copy link
Author

qtopie commented Oct 18, 2019

@kmahyyg I think you should watch codes changes in upstream linux kernel . AP mode is not supported in 4.19.x, and it's not stable. I can confirm that starting from 5.1.12-v7+, mt7612u is working fine in Raspbian.

@kmahyyg
Copy link

kmahyyg commented Oct 18, 2019

@kmahyyg I think you should watch codes changes in upstream linux kernel . AP mode is not supported in 4.19.x, and it's not stable. I can confirm that starting from 5.1.12-v7+, mt7612u is working fine in Raspbian.

Thanks for your reply. That's why I comment here. I think there might be some schedule about the kernel upgrade in raspbian since rpi doesn't have mainline kernel support. Currently, except my RPI, all my devices were upgraded to 5.3.7 kernel. Sorry for disturbing. Thank you for your guys' hard work.

@JamesH65
Copy link
Contributor

We do run behind mainline and although there is a mainline kernel that is specifically for Pi, it doesn't have all the features we need for our devices, so we have to patch in all the required changes. That takes a while, to do it and to test it and to fix any problems, which is why we are on 4.19. Newer kernels are being tested. Not sure which is our next release, or when that will be. 5.3 is currently very flakey.

@pelwell
Copy link
Contributor

pelwell commented Oct 19, 2019

If we had to ship a newer kernel today it would be 5.2. As James said, there are a few issues with our 5.3 fork.

@evilhard2
Copy link

Hi
I installed kali linux on ORANGE PI 5. I updated kali. But I still have the same problem I can't get my alfa awuso36acm usb key to work.

When I am in a terminal and I type lsusb I see the mediatek mt7612u. but nothing wants to work.

Thanks you for helping me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants