Skip to main content

Installing EDUP EP-AC1605 on Ubuntu Linux (14.04 LTS)

I recently bought a few EDUP EP-AC1605 USB 3.0 AC1200M Dual Band WiFi Adapters for a project and then had a few problems getting them installed on Linux.



I got them from AliExpress.com here:

https://www.aliexpress.com/item/EDUP-USB-3-0-Wireless-Wifi-Adapter-Dual-Band-2-4GHz-5GHz-1200Mbps-802-11AC-IEEE/32655418931.html?spm=2114.01010208.8.3.pkUTZH

The CD that came with them was pretty much useless for recent Linux distros.

The readme says:
Supporting Kernel:
===================
linux kernel 2.4 and 2.6 series.
Tested in Redhat 7.3 or later.

It turns out that the MediaTek chipset they use MT7612U <- the U=USB
has downloadable Linux driver src but it is the same as the CD version useless for anything with a more recent kernel than 2.6.

After a lot of searching I found a lot of people who gave up and returned the device.

After realising that Netgear used the same chipset in their A6210 I did some more searching and
I eventually found a solution here:  https://www.reddit.com/r/linux/comments/3wtawx/netgear_ac1200_a6210_support_drivers/

# git clone https://github.com/jurobystricky/Netgear-A6210
# cd Netgear-A6210


Or from a browser use this online tool here:
http://kinolien.github.io/gitzip/
To get the GIT files from
https://github.com/jurobystricky/Netgear-A6210

Then expand the ZIP into your home folder on Linux.

Before you can compile and install you must first edit and add the EDUP product USB vendor/ID codes to a file called: ~/Netgear-A6210/common/rtusb_dev_id.c

sudo gedit ~/Netgear-A6210/common/rtusb_dev_id.c

The codes can be checked with the USB device connected using:
lsusb

Look for MediaTek or whatever mine was 
Bus 006 Device 003: ID 0e8d:7612 MediaTek Inc. 

So I added:

{USB_DEVICE(0x0e8d, 0x7612), .driver_info = RLT_MAC_BASE}, /* MT7612U, EDUP EP-AC1605 from Aliexpress.com*/


as shown below

/****************************************************************************

 * Ralink Tech Inc.

 * 4F, No. 2 Technology 5th Rd.

 * Science-based Industrial Park

 * Hsin-chu, Taiwan, R.O.C.

 * (c) Copyright 2002, Ralink Technology, Inc.

 *

 * All rights reserved. Ralink's source code is an unpublished work and the

 * use of a copyright notice does not imply otherwise. This source code

 * contains confidential trade secret material of Ralink Tech. Any attemp

 * or participation in deciphering, decoding, reverse engineering or in any

 * way altering the source code is stricitly prohibited, unless the prior

 * written consent of Ralink Technology, Inc. is obtained.

 ****************************************************************************


    Module Name:

    rtusb_dev_id.c


 */


#define RTMP_MODULE_OS


#include "rtmp_comm.h"

#include "rt_os_util.h"

#include "rt_os_net.h"


/* module table */

USB_DEVICE_ID rtusb_dev_id[] = {

#ifdef MT76x2

{USB_DEVICE(0x0846, 0x9014), .driver_info = RLT_MAC_BASE}, /* Netgear WNDA3100v3 */

{USB_DEVICE(0x0B05, 0x180B), .driver_info = RLT_MAC_BASE}, /* ASUS USB-N53 */

{USB_DEVICE(0x0846, 0x9053), .driver_info = RLT_MAC_BASE}, /* MT7612U, Netgear A6210 */

{USB_DEVICE(0x0B05, 0x17EB), .driver_info = RLT_MAC_BASE}, /* 

ASUS USB-AC55 */

{USB_DEVICE(0x0e8d, 0x7612), .driver_info = RLT_MAC_BASE}, /* MT7612U, EDUP EP-AC1605 from Aliexpress.com*/

{USB_DEVICE(0x045e, 0x02e6), .driver_info = RLT_MAC_BASE}, /* Microsoft XBox One Wireless Adapter */

{USB_DEVICE(0x0E8D, 0x7612), .driver_info = RLT_MAC_BASE},

{USB_DEVICE_AND_INTERFACE_INFO(0x0E8D, 0x7632, 0xff, 0xff, 0xff), .driver_info = RLT_MAC_BASE},

{USB_DEVICE_AND_INTERFACE_INFO(0x0E8D, 0x7662, 0xff, 0xff, 0xff), .driver_info = RLT_MAC_BASE},

#endif

{ }/* Terminating entry */

};


MODULE_DEVICE_TABLE(usb, rtusb_dev_id);

Now you can compile and install.
NOTE: # sudo make (defaults to leaves debug code in driver)

# sudo make release
# sudo make install

I then did a reboot to get the drivers loaded.

PROBLEM SOLVED!

However when kernel updates are applied then the kernel drivers need to be recompiled or they stop working, you can repeat above manually or...

This is where DKMS is used to do this automatically
Refer to https://help.ubuntu.com/community/DKMS

Install DKMS

# sudo apt-get install dkms

Configure DKMS for the adapter

# cd ~/Netgear-A6210
~/Netgear-A6210# touch dkms.conf #create dkms.conf file
~/Netgear-A6210# gedit dkms.conf


~/Netgear-A6210# find /lib/modules/$(uname -r)/kernel/drivers/ | grep mt7662
/lib/modules/4.4.0-47-generic/kernel/drivers/net/wireless/mt7662u_sta.ko



Inside dkms.conf add the lines: 

MAKE[0]="make release"
CLEAN="make clean"
BUILT_MODULE_NAME[0]=mt7662u_sta
BUILT_MODULE_LOCATION[0]=/os/linux/
DEST_MODULE_LOCATION[0]=/kernel/drivers/net/wireless/
PACKAGE_NAME=Netgear-A6210
PACKAGE_VERSION=1.1
REMAKE_INITRD=no
AUTOINSTALL="yes"

# cd ~/Netgear-A6210
~/Netgear-A6210 # ls

ate         eeprom            mgmt              RT2870AP.dat
chips       History.txt       os                RT2870STACard.dat
common      include           phy               RT2870STA.dat
conf        iwpriv_usage.txt  rate_ctrl         sta
dkms.conf   mac               README.md         sta_ate_iwpriv_usage.txt
dkms.conf~  Makefile          README_STA_usb    tx_rx
doc         mcu               RT2870APCard.dat

~/Netgear-A6210# gedit Makefile

search for $(shell uname -r) and replace with ${kernelver} instead
....
MAKE = make

#LINUX_SRC = /lib/modules/$(shell uname -r)/build #USE FOLLOWING FOR DKMS

LINUX_SRC = /lib/modules/${kernelver}/build
....

explained here: http://stackoverflow.com/questions/8925062/problems-adding-dkms-support-to-kernel-module


~/Netgear-A6210# sudo cp -R . /usr/src/Netgear-A6210-1.1
~/Netgear-A6210# sudo dkms add -m Netgear-A6210 -v 1.1

Creating symlink /var/lib/dkms/Netgear-A6210/1.1/source ->
                 /usr/src/Netgear-A6210-1.1

DKMS: add completed.

TO FORCE A DKMS BUILD DO THIS:

~/Netgear-A6210# sudo dkms build -m Netgear-A6210 -v 1.1
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.4.0-47-generic.......................

If you get an error look in make.log
# sudo gedit /var/lib/dkms/Netgear-A6210/1.1/build/make.log


UPDATE: 10 DEC 2016
=================
Performance seems to be flakey especialy on 2.4 GHz band.

I think I will try this WiFi card instead....



Comments

davi.diniz said…
Thanks a lot!
network-manager crashed on boot.
sudo service network-manager restart was necessary.
dual-band is ok!
Rod Dines said…
People might want to also try these drivers from chipset manufacturer at this page:
https://www.mediatek.com/products/broadbandWifi/mt7612u
Which were not available when I initially wrote this blog post.
Rod Dines said…
Please also note that the Linux and Mac drivers are linked under transposed icons on that page

Popular posts from this blog

Install or Reinstall TeamViewer 11/12/13 Personal (Non-Commercial) License on Windows Server (2012/2012 R2/2016 etc) [Updated Dec 2017]

After running out of the TeamViewer commercial trial period I sought to find a solution to the problem of having to buy an expensive licence for my home server (which is only used for non-commercial personal use).[Update Dec 2017]: I can confirm that these procedures still apply and work with Teamviewer version 12 and 13 also (as tested on Windows Server 2016).
Procedure A: If TeamViewer is NOT Already Installed (Note: If it is already installed, then first follow procedure B. below)Download and Run the installer downloaded from http://www.teamviewer.com/. On the Welcome to TeamViewer page be sure to check the "Show advanced settings" check box (outlined in red at bottom left in picture), then click "Accept - next". Leave the "Advanced settings" installation window open (as shown above) and start Windows Explorer (i.e. the file manager, not Internet Explorer). Now go to your temp directory by typing "%tmp%" into the location bar and hitting enter.…

Migrating/cloning an Apple MAC OSX with Windows 7 / 8 / 10 Bootcamp partition to another hard or solid state (HDD / SSD) disk drive (Updated March 2018)

I got a Mac Book Pro 13" in 2012 that in 2016 I upgraded to a 240GB SSD from a similar sized 250GB HDD.  Since then I have followed this procedure a number of time for friends and customers. This week I again had to upgrade that same Mac Book Pro from the 240GB SSD to a new 480GB SSD and again came across a number of problems.  For this reason, I have decided to invest my time in documenting this troublesome process for the benefit of others and so next time I have to do it I won't have to remember and re-discover everything again.

TL;DR - The Crux of this article is that unfortunately, there is no easy way to just copy the whole old drive, with the different Mac and Windows Bootcamp partitions to a new drive. However, with this guide, the complex process is fully explained and broken up into five manageable and easy to understand processes along with their individual steps to do so.

NOTE: I use the word 'drive' loosely here but these processes could work to/or from eit…

Removing the WLAN / WiFi pcie card whitelist on Lenovo IdeaPad u410 Touch with BIOS update

WARNING! PLEASE READ THE ENTIRE POSTBEFORE USING / DOING ANYTHING!

BACKGROUND
I recently (early 2016) acquired a 2013 Lenovo IdeaPad u410 Touch.

It was not my first choice but still useful but I wanted to upgrade it to more recent tech and make it more usable as it is not the fastest CPU around, i.e. an i5-3337U dual core (quad thread) at 1.8GHz.
http://ark.intel.com/products/72055/Intel-Core-i5-3337U-Processor-3M-Cache-up-to-2_70-GHz


First thing I did was upgrade the BIOS to latest (as anyone would/should do really) version 65CN99WW (8/28/2014) available here:
http://support.lenovo.com/au/en/products/laptops-and-netbooks/ideapad-u-series-laptops/ideapad-u410?beta=false

I then added 2 x Kingston SO-DIMM KVR16LS11/8 1.35V (Low Voltage) 8G DDR3 1600 Notebook Ram SODIMM's despite the specs I could find all saying it would only take 8GB and it works fine with the 16GB as the Intel i5-3337U CPU (says 32GB) & Mobile Intel HM77 Express Chipset specifications suggest. 
https://www.lenovo.co…