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

Enable Mediatek mt7601u wifi driver in 4.2 tree #1090

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

Enable Mediatek mt7601u wifi driver in 4.2 tree #1090

clivem opened this issue Jul 28, 2015 · 26 comments

Comments

@clivem
Copy link

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.

@popcornmix
Copy link
Collaborator

Added.

@clivem
Copy link
Author

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.

@clivem
Copy link
Author

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: Add Mediatek mt7601u wifi driver from 4.2 kernel
See: raspberrypi/linux#1090
@popcornmix
Copy link
Collaborator

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: Add Mediatek mt7601u wifi driver from 4.2 kernel
See: raspberrypi/linux#1090
@clivem
Copy link
Author

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

@XECDesign
Copy link
Contributor

Added to the todo list.

@letetfly
Copy link

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...

@heniotierra
Copy link

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/.

@XECDesign
Copy link
Contributor

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

@heniotierra
Copy link

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.

@XECDesign
Copy link
Contributor

@popcornmix What's the preferred firmware here?

@popcornmix
Copy link
Collaborator

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.

@heniotierra
Copy link

+1

@MrEngman
Copy link

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

@pelwell
Copy link
Contributor

pelwell commented Sep 16, 2015

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

@clivem
Copy link
Author

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 as completed Sep 16, 2015
@ClaymorePT
Copy link

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.

@airtonoliveira-oplen
Copy link

Hi this link https://github.com/porjo/mt7601/raw/master/src/mcu/bin/MT7601.bin is not working...

@clivem
Copy link
Author

clivem commented Jul 2, 2016

Get it from the linux-firmware github....
http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/plain/mt7601u.bin

@airtonoliveira-oplen
Copy link

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

@clivem
Copy link
Author

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

@airtonoliveira-oplen
Copy link

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

@clivem
Copy link
Author

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.

@tomatos666
Copy link

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

@ClaymorePT
Copy link

ClaymorePT commented Jul 28, 2016

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

@clivem
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants