Package Details: mt7601u-ap-dkms 3.0.0.3-3

Git Clone URL: https://aur.archlinux.org/mt7601u-ap-dkms.git (read-only)
Package Base: mt7601u-ap-dkms
Description: Kernel module for Ralink MT7601U chipset wireless adaptors with Access Point (AP / Master) support.
Upstream URL: http://www.ralinktech.com
Licenses: GPL
Submitter: nous
Maintainer: indra17r
Last Packager: indra17r
Votes: 1
Popularity: 0.000000
First Submitted: 2015-02-06 19:18
Last Updated: 2018-06-20 17:04

Latest Comments

nous commented on 2017-10-26 10:37

I no longer use this, feel free to adopt.

wushuzh commented on 2017-09-06 09:08

I tried the patch from pcjason. But there is a error during installation.

==============================================================
(1/1) installing mt7601u-ap-dkms [------------------------------------------------] 100%
Creating symlink /var/lib/dkms/mt7601u-ap/3.0.0.4/source ->
/usr/src/mt7601u-ap-3.0.0.4

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=4.12.10-1-ARCH.....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.12.10-1-ARCH (x86_64)
Consult /var/lib/dkms/mt7601u-ap/3.0.0.4/build/make.log for more information.
>>> You might need to modprobe mt7601Uap manually.
>>> Also, you *must* change the default values (especially WPAPSK)
>>> in /etc/Wireless/RT2870AP/RT2870AP.dat
>>> Read the documentation in /usr/src/mt7601u-ap-3.0.0.3/doc.
:: Running post-transaction hooks...
(1/2) Install DKMS modules
==> dkms install mt7601u-ap/3.0.0.4 -k 4.12.10-1-ARCH
Error! Bad return status for module build on kernel: 4.12.10-1-ARCH (x86_64)
Consult /var/lib/dkms/mt7601u-ap/3.0.0.4/build/make.log for more information.
(2/2) Arming ConditionNeedsUpdate...

gyscos commented on 2017-08-12 21:11

The md5 for master.zip is wrong.

shyokou commented on 2017-02-21 12:49

Just read your pastebin and found those compiler errors due to old base of 2013 coding style ;-(

Have you tried the patch set from "pcjason commented on 2016-10-10 19:54" yet? Whatsoever, you might have to correct/cast many prototypes of variables defined in either header of c source files ...

Since I have encountered frequently freezed kernel panic w/ this aur on my x86_64 box, it takes time to find a fixable way ...

> B3l3tte commented on 2017-01-09 20:32
>> Got the following crash log, after changing the sha256sum to current value ...
>> http://pastebin.com/QUJ9ZVpF
>> What should I do ?
>> I'm quite lost ...

B3l3tte commented on 2017-01-09 20:32

Got the following crash log, after changing the sha256sum to current value ...
http://pastebin.com/QUJ9ZVpF
What should I do ?
I'm quite lost ...

pcjason commented on 2016-10-10 19:54

First time using the AUR, so hopefully this is an acceptable usage of the comments section. I generated the following patch that can be used on top of this package to make use of the https://github.com/eywalink/mt7601u repository and fix the issue as described at http://lo-li.net/tag/linux:

diff --git a/PKGBUILD b/PKGBUILD
index 9361251..89351f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@

_pkgname=mt7601u-ap
pkgname=${_pkgname}-dkms
-pkgver=3.0.0.3
+pkgver=3.0.0.4
_pkg=${_pkgname}-${pkgver}
pkgrel=1
pkgdesc="Kernel module for Ralink MT7601U chipset wireless adaptors with Access Point (AP / Master) support."
@@ -14,22 +14,23 @@ depends=('dkms')
conflicts=()
install=${pkgname}.install
options=(!strip)
-source=("https://github.com/housq/mt7601u/archive/master.zip"
-#http://www.mediatek.com/AmazonS3/Downloads/linux/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2"
-# "https://mt7601-openwrt.googlecode.com/hg/patches/001-DPO_MT7601U_LinuxSTA_3.0.0.4_20130913-Linux-3.17.0-v2.patch"
-# "https://mt7601-openwrt.googlecode.com/hg/patches/002-rt2870-mt7601Usta-kuid_t-kgid_t.patch"
+source=("https://github.com/eywalink/mt7601u/archive/master.zip"
"mt7601u-ap.conf"
- "dkms.conf")
+ "dkms.conf"
+ "mt7601u-ap.patch")

-sha256sums=('952e6200163132fd1ee3f01b739b842129dfc05282e6366c80ac191d87b38da6'
+sha256sums=('d5ced1d272815f525da767ec13c4527a1749d12802a8f8088b5af184add7958a'
'5cb57146dcbc238feff1c0e1836dea995c33180892327eba02804a0755ce9a81'
- 'a4d4f94c9492f344d4baa05d5f5ce132eb3bf0f9fb6eec161a87eea9450ebc12')
+ 'a4d4f94c9492f344d4baa05d5f5ce132eb3bf0f9fb6eec161a87eea9450ebc12'
+ '546be68c9719898400a32d0ae54183143aff6eca25a3505a3bafdff0692f36ce')

prepare() {
rm -rf "${srcdir}/mt7601u-master"
cd "${srcdir}"
unzip master.zip
- mv "${srcdir}/mt7601u-master" "${srcdir}/${_pkg}/"
+ mv "${srcdir}/mt7601u-master" "${srcdir}/${_pkg}/"
+ cd "${srcdir}/${_pkg}"
+ patch -p1 -i "${srcdir}/mt7601u-ap.patch"
}

build() {
diff --git a/mt7601u-ap.patch b/mt7601u-ap.patch
new file mode 100644
index 0000000..cbd58dd
--- /dev/null
+++ b/mt7601u-ap.patch
@@ -0,0 +1,17 @@
+diff -aur mt7601u-ap-3.0.0.4/src/os/linux/rt_linux.c mt7601u-ap-3.0.0.4.new/src/os/linux/rt_linux.c
+--- mt7601u-ap-3.0.0.4/src/os/linux/rt_linux.c 2015-03-13 08:35:03.000000000 +0000
++++ mt7601u-ap-3.0.0.4.new/src/os/linux/rt_linux.c 2016-10-10 17:19:38.199400707 +0000
+@@ -1161,9 +1161,11 @@
+
+ int RtmpOSFileRead(RTMP_OS_FD osfd, char *pDataPtr, int readLen)
+ {
++ DBGPRINT(RT_DEBUG_ERROR, ("add: %p %p\n", osfd->f_op, osfd->f_op->read));
++
+ /* The object must have a read method */
+- if (osfd->f_op && osfd->f_op->read) {
+- return osfd->f_op->read(osfd, pDataPtr, readLen, &osfd->f_pos);
++ if (osfd->f_op) {
++ return vfs_read(osfd, pDataPtr, readLen, &osfd->f_pos);
+ } else {
+ DBGPRINT(RT_DEBUG_ERROR, ("no file read method\n"));
+ return -1;

shyokou commented on 2016-08-12 00:04

Git package changes from time to time, where sha256sum does nothing mean ;-)

Pacman depends upon libarchive, preferring bsdtar over unzip ;-)

https://github.com/housq/mt7601u/ is even with https://github.com/chenyuyou/mt7601u, but they are all 3-commit behind https://github.com/eywalink/mt7601u ... Why ;-)

nous commented on 2015-02-09 17:06

If anyone finds a way to make this work at speeds higher than 54MBps, please share.