OpenWrt Forum Archive

Topic: MT7610U support - status and possibilities

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

so i got one of these cheap chinese 1T1R 802.11ac USB dongles

official driver source is hosted by MediaTek
http://www.mediatek.com/en/downloads/mt7610u-usb/

like already expected, i cant cross compile it to BB mips 3.10.49

/home/ubuntu/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_linux.c: In function '__RtmpOSFSInfoChange':
/home/ubuntu/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_linux.c:1109:20: error: incompatible types when assigning to type 'int' from type 'kuid_t'
   pOSFSInfo->fsuid = current_fsuid();
                    ^
/home/ubuntu/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_linux.c:1110:20: error: incompatible types when assigning to type 'int' from type 'kgid_t'
   pOSFSInfo->fsgid = current_fsgid();
  struct net_device *net_dev = (struct net_device *)pNetDev;
                     ^
make[2]: *** [/home/ubuntu/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_linux.o] Error 1
make[1]: *** [_module_/home/ubuntu/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux] Error 2
make[1]: Leaving directory `/home/ubuntu/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.49'
make: *** [LINUX] Error 2
ubuntu@ip-172-31-28-180:~/mt7610u_wifi_sta_v3002_dpo_20130916$

the patched src of porjo at https://github.com/porjo/mt7601 does not even start to compile
breaks with "as missing" loop... but builds and installs fine on an Ubuntu 14.04 (Amazon EC2)

it would be really great to get them running on BB or CC,
as these are darn cheap, tiny and could be used for small low consumption .ac APs or bridges

(Last edited by Xer0 on 24 Apr 2015, 19:00)

If you use google you would have found an answer for the first compile error:
see http://www.arnelborja.com/compiling-rt2 … in-fedora/
(found via a stackexchange post that is one of the first 3 results)

CC currently supports 3.18 and above (3.19 was removed, 4.0 is available on some platforms)

so like the readme of that git repo states :  try to compile https://github.com/kuba-moo/mt7601u
which supports Kernel  3.19+ with a Kernel 4.0 trunk.

mh i did not check that link first as its for 7601U (802.11n only)

but is there a chance building it for 3.10, should i keep trying?

Did you need *compile* only.

Maybe I can do this.
(If I have some time besides my other driver)

mh yeah basically i need only a working .ko for BB mips ar71xx
i considered rt530 too (Hame A1) but it has double power draw

@Xer0

I've found two drivers on the Mediatek site:
mt7610u_wifi_sta_v3002_dpo_20130916.tar.bz2
MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.tar.bz2

I've done a brief check on the first one.
It uses (old) wireless extensions.

And for testing a have a TP-LINK Archer T2U
https://wikidevi.com/wiki/TP-LINK_Archer_T2U

So I can do a simple test on this HW on my laptop

Some update.

The sources for mt7610 and mt7612 are horrible.
First one supports the requested device aka my TP-LINK T2U
And second is for a similar device with UBS3 and 2T2R

I need some time to get through.

thank you very much for trying!

Since this Thread Topic is MT7610U, I'll post something related to it. Trying various source releases provided I couln't get the TP-LINK Archer T2U to work. I the end I found this one: https://github.com/Myria-de/mt7610u_wif … o_20130916 and it's working. (German: https://www.myria.de/computer/1308-tp-l … ux-nutzen)

Doing this:

mkdir ~/src
cd ~/src
git clone https://github.com/Myria-de/mt7610u_wifi_sta_v3002_dpo_20130916.git
cd mt7610u_wifi_sta_v3002_dpo_20130916
make clean
make
sudo make install

After reboot it worked. Only tested on x86-64 PC. There seems to be raspi support so it might cross-compile.

(Last edited by waschmi on 4 Nov 2015, 09:39)

okay, got it compiled and packaged for openwrt.

posting makefile and folder:  http://speedy.sh/CwE2g/mt7610u.tar.gz

it's based on https://github.com/olivluca/mt7601-openwrt  but with myria.de sources for mt7610u.

It would be nice if some developer could take a look at it, because at any time I didn't know what I was doing.

(Last edited by waschmi on 23 Nov 2015, 20:56)

waschmi wrote:

okay, got it compiled and packaged for openwrt.

posting makefile and folder:  http://speedy.sh/CwE2g/mt7610u.tar.gz

it's based on https://github.com/olivluca/mt7601-openwrt  but with myria.de sources for mt7610u.

It would be nice if some developer could take a look at it, because at any time I didn't know what I was doing.

Im a newbie in OpenWrt domain. I used your package for Archer T1U, which seems to be based on Mediatek MT7610U .

https://wikidevi.com/wiki/TP-LINK_TL-WDN5200

http://www.mediatek.com/en/products/con … e/mt7610u/

Linux driver support for Archer T1U is available on TP-Link website:
http://www.tp-link.de/download/Archer-T1U.html#Treiber

But wifi detect doesn't detect anything even though I have installed all relevant packages and kmod-mt7610u. any suggestion please?

(Last edited by afaqbabar on 8 Jan 2016, 00:43)

waschmi wrote:

okay, got it compiled and packaged for openwrt.

posting makefile and folder:  http://speedy.sh/CwE2g/mt7610u.tar.gz

it's based on https://github.com/olivluca/mt7601-openwrt  but with myria.de sources for mt7610u.

It would be nice if some developer could take a look at it, because at any time I didn't know what I was doing.



Hi Waschmi

Thanks for your work on this.

I would like to use your package in my build environment so that I can support the TP-Link T2U device.

I have working build environments for CC and recent Trunk versions of OpenWrt, but  (being a newbie at this) I don't understand how to add your package to the build environment so that it gets compiled and is available in menuconfig.

I have looked at the OpenWrt wiki docs about compiling individual packages, but it seems they are about updating existing packages rather than adding a completely new package. I think I am not understanding something quite basic...

Would you be able to tell me what I need to do to add your package please?

Specifically, where in the directory structure do I need to place a copy of the files from your tar.gz, and what commands do I need to run to get it compiled and to make it available in menuconfig.


Thanks in advance for any help.

T

I made a little progress on this as follows:

1. Download the tar.gz file, unpack and place a copy of the directory in the build environment in
       ./feeds/packages

2. Ran    $   make package/symlinks           (Ref:  https://wiki.openwrt.org/doc/howto/build.a.package)

3. Ran    $   make menuconfig                    and added kmod-mt7610u (from Kernel Modules / Wireless Drivers)   to the device .config

4. Tried to build the firmware but it failed with an error message about being unable to find
          https://github.com/Myria-de/mt7610u_wif … master.zip

So I downloaded the file manually and placed it in the  ./dl  directory

5. Tried to build the firmware but it failed with an error message as follows:


  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/dev/openwrt/Build-DD-A/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/mt7610u_sta.mod.o

  LD [M]  /home/dev/openwrt/Build-DD-A/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/mt7610u_sta.ko

make[5]: Leaving directory `/home/dev/openwrt/Build-DD-A/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/linux-4.1.20'

make[4]: Leaving directory `/home/dev/openwrt/Build-DD-A/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/mt7610u_wifi_sta_v3002_dpo_20130916-master'

touch /home/dev/openwrt/Build-DD-A/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/mt7610u_wifi_sta_v3002_dpo_20130916-master/.built

mkdir -p /home/dev/openwrt/Build-DD-A/bin/ar71xx/packages /home/dev/openwrt/Build-DD-A/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/mt7610u_wifi_sta_v3002_dpo_20130916-master/ipkg-ar71xx/kmod-mt7610u/CONTROL /home/dev/openwrt/Build-DD-A/staging_dir/target-mips_34kc_musl-1.1.14/pkginfo

ERROR: module '/home/dev/openwrt/Build-DD-A/build_dir/target-mips_34kc_musl-1.1.14/linux-ar71xx_generic/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/mt7650u_sta.ko' is missing.


Where to from here????????

Hi elektroman

Thanks for the link.

Any tips on how to add it to an OpenWrt build environment please?

Please read in this thread
https://forum.openwrt.org/viewtopic.php?pid=332656
at the end.

You must adopt the cmdline to your current OpenWRT build

But be warned :
I have tested (successfully) this/these device(s) currently not on other arches as X86_64.
I know there are some memory leaks /issues with this driver.

The last test with cross-compile I have done was some months ago.
The driver itself bails out memory exhaust or so.

If the tests are OK I will remove the crosscompile notice on my github page.

TIA
HAns Ulli Kroll

Does anyone have a build for the MT7610 usb device that will cross compile on openwrt, I looked as the above links and not able to understand how to cross compile it into a build.

The link   speedy.sh/CwE2g/mt7610u.tar.gz no longer exits.

I need to be able to put this device into Monitor mode

The discussion might have continued from here.