Enable Mediatek mt7601u wifi driver in 4.2 tree #1090

Closed
clivem opened this Issue Jul 28, 2015 · 26 comments

Comments

Projects
None yet
10 participants
Contributor

clivem commented Jul 28, 2015

Please enable the Mediatek mt7601u wifi driver in the 4.2 tree.

CONFIG_WL_MEDIATEK=y
CONFIG_MT7601U=m

I don't actually use it myself, but remember someone opened an issue in the past about getting a driver included for this wifi dongle, to which the response was something along the lines of, "when it's upstreamed we'll enable it". It got added with 4.2rc3 IIRC.

Collaborator

popcornmix commented Jul 28, 2015

Added.

Contributor

clivem commented Aug 11, 2015

Popcornmix, I just noticed the other "issue" that was closed, someone suggesting moving to 4.2 quickly, to gain in-tree support for the mt7601u. What about back-porting the driver from 4.2 to 4.1. I've been applying the following on top of RPI 4.1 tree....
http://www3.squeezecommunity.org/patches/0001-backport-mediatek-mt7601u-from-v4.2-rc3.patch
Just a suggestion. There do seem to be quite a few RPI users with a mt7601u based dongle and most of them seem to struggle with compiling modules to support it. I have put many gigs of data through the driver patched into RPI 4.1 kernel without any issues.

Contributor

clivem commented Aug 13, 2015

Ok, cool. See you have a applied the backport patch to rpi-4.1.y. Also need to make sure the Linux distribution (raspbian????) supplies the firmware for an out-of-the-box experience. The driver needs to load /lib/firmware/mt7601u.bin to bring the dongle up. Don't think that has been added to linux-firmware.git yet. Seem to recall that is obtained from the MediaTek vendor tarball. (File is called MT7601.bin in their tarball.) This is from memory. Not in front of my "work" computer at the moment. I'll post a new comment later today confirming this.

popcornmix added a commit to raspberrypi/firmware that referenced this issue Aug 13, 2015

kernel: Bump to 4.1.5
kernel: Add Mediatek mt7601u wifi driver from 4.2 kernel
See: raspberrypi/linux#1090
Collaborator

popcornmix commented Aug 13, 2015

Okay, rpi-update should contain the driver. Can you test it and confirm it works?

Note: We don't normally support out of tree drivers, but as this is from upstream 4.2 and looks safe, I've included it until we move to 4.2. If there are problems reported I'll drop the patch.

@XECDesign would be good to include the firmware file for this in repo.

popcornmix added a commit to Hexxeh/rpi-firmware that referenced this issue Aug 13, 2015

kernel: Bump to 4.1.5
kernel: Add Mediatek mt7601u wifi driver from 4.2 kernel
See: raspberrypi/linux#1090
Contributor

clivem commented Aug 13, 2015

Just a quick note.... The firmware I have been using is obtained from downloading the vendor (MediaTek) driver from http://www.mediatek.com/en/downloads1/downloads/mt7601u-usb/
Extract the archive and ....
cp DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/mcu/bin/MT7601.bin /lib/firmware/mt7601u.bin

Added to the todo list.

I have testet this 4.1.5 with dwa-127 with mt7601u chip. Only had to manually provide the MT7601.bin to the location /lib/firmware/MT7601u.bin to get i work. Thats it.
Thx for putting it almost in place, much easier and quicker than compiling your self or waiting for 4.2 to officially be released.

EDIT: Not successful with hostapd yet...

@popcornmix popcornmix referenced this issue in OpenELEC/OpenELEC.tv Aug 19, 2015

Closed

[rbp]Add MediaTek WiFi driver option (unset) #4283

Hey, thanks!

It was me who opened the previous issue. The timing was just perfect since today I had to do a clean install of Raspbian, after messing some things up accidentally. :) And I can also confirm it's working after copying MT7601.bin to /lib/firmware/.

This should go in the next release
RPi-Distro/firmware-nonfree@cff948c

Yes, but there's one thing to note. The driver from Mediatek is the old one. The new one (which is to be released with kernel 4.2) was written based on Mediatek's, but seems like a better driver.

Here is the new driver's source: https://github.com/kuba-moo/mt7601u.

@popcornmix What's the preferred firmware here?

Collaborator

popcornmix commented Sep 4, 2015

We're using the driver from 4.2 (which is the kuba-moo one). I believe that recommends using the mediatek firmware as described by @clivem in #1090 (comment)
So, I think mt7601u.bin is fine.

MrEngman commented Sep 4, 2015

To download and install the firmware I find it rather easier using the command

sudo wget https://github.com/porjo/mt7601/raw/master/src/mcu/bin/MT7601.bin -O /lib/firmware/mt7601u.bin
Contributor

pelwell commented Sep 16, 2015

@clivem I think this issue is fixed - Close if you agree.

Contributor

clivem commented Sep 16, 2015

Yes, closing this "issue"...... The mt7601u driver is working very nicely with those 4x "cherry picked" patches applied. I'm currently stress testing the driver, transferring 16GB files backward and forward across the network. Seeing sustained transfers greater than 8MB/s..... So it's a nice "cheap" alternative to the usual RTL8188CUS recommendation, when you can still pick up generic MT7601U dongles for less than £3 on ePay, with the external antenna, which might prove useful in less than ideal circumstances, where your Pi is some distance from AP, and the external antenna is the better option, than the built in antenna with the RTL8188CUS nano dongle. YMMV.

I'm not recommending this (or any other vendor)..... But just so others can see what I'm currently testing the mt7601u driver with on Pi. (I have several of these as well as the built-in antenna, nano model.) http://www.ebay.co.uk/itm/400937071929

@clivem clivem closed this Sep 16, 2015

Hello!
I know this issue has been closed for a while, but I'm having trouble in using a mt7601u usb device in ad-hoc mode or AP mode.
Can you tell me if the kernel 4.2 module for mt7601u support these modes? I have already tried to change the operation mode using iwconfig, bu I always get "Operation not supported".
I check the sources and there is code implemented for the ad-hoc mode, which causes me some confusion about the support.

Contributor

clivem commented Jul 2, 2016

file found ok, but dmesg: mt7601u 1-1.5:1.0: Invalid firmware image

Contributor

clivem commented Jul 2, 2016

Erm, don't know what the problem is for you. That's the firmware I use.

mt7601u 1-1.5:1.0: ASIC revision: 76010001 MAC revision: 76010500
mt7601u 1-1.5:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
mt7601u 1-1.5:1.0: Warning: unsupported EEPROM version 0d
mt7601u 1-1.5:1.0: EEPROM ver:0d fae:00
usbcore: registered new interface driver mt7601u

Sorry, file is ok, but still not working yet, raspbian lite 4.4.13+

   mt7601u 1-1.5:1.0: ASIC revision: 76010001 MAC revision: 76010500
   mt7601u 1-1.5:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
   mt7601u 1-1.5:1.0: Error: your device needs default EEPROM file and this driver doesn't support it!
   mt7601u: probe of 1-1.5:1.0 failed with error -22
   usbcore: registered new interface driver mt7601u
Contributor

clivem commented Jul 2, 2016

I get "unsupported EEPROM" from several different mt7601u devices I have, but have never seen that "Error: your device needs default EEPROM file and this driver doesn't support it!" msg before.

Hello,
i have the same problem. Some one have a working link?

I'm able to use the wireless device as a client but not as an Access Point,
under OpenWRT (linux 4.4 kernel)

On 28 July 2016 at 12:02, tomatos666 notifications@github.com wrote:

Hello,
i have the same problem. Some one have a working link?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1090 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHTtIeTSA3bQ_g9pgxcDrvI_EEdy_aG0ks5qaIxagaJpZM4FhBwM
.

Carlos Miguel Ferreira
Researcher at Telecommunications Institute
Aveiro - Portugal
Work E-mail - cmf@av.it.pt
Skype & GTalk -> carlosmf.pt@gmail.com
LinkedIn -> http://www.linkedin.com/in/carlosmferreira

Contributor

clivem commented Jul 28, 2016

i have the same problem. Some one have a working link?

Not a working link. Just that the driver developer was aware that there were problems with some devices.

kuba-moo/mt7601u#37 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment