Skip to content

Commit

Permalink
Merge pull request jurobystricky#2 from Nagefire/master
Browse files Browse the repository at this point in the history
Support for kernel version >= 5.0.0
  • Loading branch information
kaduke committed Jun 4, 2019
2 parents 59e8623 + fcf1a23 commit 99a6cc9
Show file tree
Hide file tree
Showing 10 changed files with 602 additions and 583 deletions.
8 changes: 2 additions & 6 deletions Makefile
Expand Up @@ -53,15 +53,15 @@ release:
@echo "*** Building driver without debug messages ***"
@echo ""
cp -f os/linux/Makefile.6 $(RT28xx_DIR)/os/linux/Makefile
$(MAKE) -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
$(MAKE) -C $(LINUX_SRC) M=$(RT28xx_DIR)/os/linux modules

debug:
export DBGFLAGS
@echo ""
@echo "*** Building driver with debug messages ***"
@echo ""
cp -f os/linux/Makefile.6 $(RT28xx_DIR)/os/linux/Makefile
$(MAKE) -C $(LINUX_SRC) DBGFLAGS=-DDBG SUBDIRS=$(RT28xx_DIR)/os/linux modules
$(MAKE) -C $(LINUX_SRC) DBGFLAGS=-DDBG M=$(RT28xx_DIR)/os/linux modules

clean:
cp -f os/linux/Makefile.clean os/linux/Makefile
Expand All @@ -76,7 +76,3 @@ install:
$(MAKE) -C $(RT28xx_DIR)/os/linux -f Makefile.6 install

.PHONY: $(PHONY)




63 changes: 38 additions & 25 deletions README.md
Expand Up @@ -2,9 +2,9 @@
This driver supports Ralink / Mediatek mt766u, mt7632u and mt7612u chipsets.

In particular, the driver supports several USB dongles such as Netgear-A6210,
ASUS USB-AC55, ASUS USB-N53 and EDUP EP-AC1601.
ASUS USB-AC55, ASUS USB-N53 and EDUP EP-AC1601.

Linux kernel version up to 4.17 has been tested.
Linux kernel version up to 5.0.5 has been tested.

To build the driver, follow these steps:

Expand All @@ -14,45 +14,58 @@ To build the driver, follow these steps:
$ sudo make install

The driver is mostly tested on 64 bit Ubuntu 15.10 and Debian 8.3 with NETGEAR AC1200
High Gain Wifi USB Adapter.
Some other distro/dongle combinations work as well, for example
Linux Mint 17.3 "Rosa" - KDE (32-bit)/ASUS USB-N53 seems to work flawlessly
(as reported by Roland Bauer).
High Gain Wifi USB Adapter. Some other distro/dongle combinations work as well, for
example Linux Mint 17.3 "Rosa" - KDE (32-bit)/ASUS USB-N53 seems to work flawlessly
(as reported by Roland Bauer). I have tested it up kernel version 5.0.5 with Arch Linux
x86_64 and Arch Linux ARMv7 (Raspberry Pi 2 Model B).

The supported chipsets can be present in other devices. To include additional
devices, you need to add corresponding VendorID, DeviceID into the file
The supported chipsets can be present in other devices. To include additional
devices, you need to add corresponding VendorID, DeviceID into the file
"rtusb_dev_id.c"

The original code was downloaded from:
The original code was downloaded from:
http://cdn-cw.mediatek.com/Downloads/linux/MT7612U_DPO_LinuxSTA_3.0.0.1_20140718.tar.bz2

This is work in progress. The driver is functional. However, there are still
several issues that need to be addressed. In particular, hot-unplugging may
cause the network manager to become unreliable. After plugging the dongle back in,
you may need to restart the manager:
The driver provided at this link NO LONGER COMPILES, so do not attempt to use it. I
plan on maintaining this driver so that it continues to compile with the newest kernel
releases and I would like to deobfuscate it, which is a work in progress.

$ sudo service network-manager restart
I am working on creating a tarball for usage with Arch Linux and adding it the the AUR,
I may end up adding the package to other distros if requested.

This seems to be Linux distro dependent, but definitely observed on Ubuntu.
This is work in progress. The driver is functional, however, there are still several
issues that need to be addressed, such as the driver providing extraneous output
(for debugging purposes) to the kernel logs. Also, hot-unplugging may cause the
network manager to become unreliable. After plugging the dongle back in, you may need
to restart the manager:

At present, there is no LED support yet (Netgear-A6210 does not have
any LEDs, but other dongles do).
$ sudo service network-manager restart
or
$ sudo netctl restart <profile>

This seems to be Linux distro dependent, but has definitely been observed on Ubuntu,
I have not yet had any problems with the driver on Arch.

At present, there is no LED support.

EDUP EP-AC1601 works (or to be precise, should work), but at present there are
several problems such as frequent dropping of connection, failure to connect, wildly
oscillating signal strength etc. This also seems to depent on the Linux distro
a lot.

several problems such as frequent dropping of connection, failure to connect, wildly
oscillating signal strength etc. This "feature" also seems to depend on the Linux distro,
probably as a result of differing kernels, so please use the most up-to-date
installation provided.

## DKMS Install

On Debian-based distros, you can add the module to DKMS so it will automatically
build and install on each successive kernel upgrade. To do this, issue the following
commands from within the repo's folder:

$ cd ..
$ sudo mv Netgear-A6210/ /usr/src/netgear-a6210-2.5.0
$ sudo dkms install netgear-a6210/2.5.0
$ cd ..
$ sudo mv Netgear-A6210/ /usr/src/netgear-a6210-2.5.0
$ sudo dkms install netgear-a6210/2.5.0

To remove:

$ sudo dkms remove netgear-a6210/2.5.0 --all
$ sudo dkms remove netgear-a6210/2.5.0 --all

This process is automated by the install script as well.

0 comments on commit 99a6cc9

Please sign in to comment.