Package Details: dkms-mt7601u v3.0.0.4-1

Package Base: dkms-mt7601u
Description: Driver for Ralink MT7601U chipset wireless adaptors
Upstream URL: http://www.ralinktech.com
Category: kernels
Licenses: GPL
Submitter: maneulyori
Maintainer: maneulyori
Last Packager: None
Votes: 2
First Submitted: 2014-02-04 11:52
Last Updated: 2014-02-05 05:08

Latest Comments

Comment by nous

2015-01-28 16:51

All packages below provide the same module; please contact each other and consider merging:
https://aur.archlinux.org/packages/dkms-mt7601/
https://aur.archlinux.org/packages/dkms-mt7601u/
https://aur.archlinux.org/packages/dkms-mt7601u-latest/

Comment by nous

2015-01-28 11:11

Please, also include the patch from https://github.com/porjo/mt7601.

Comment by pritambaral

2014-06-17 10:49

The __DATE__ and __TIME__ macros trigger warnings in GCC 4.9+, and Linux has enabled -Werror on them from 3.13.

Another patch fixes the error reported by tarsian666, and has also been included in the PKGBUILD here: https://gist.github.com/pritambaral/a383302b42b0006a5b30

Comment by xzy3186

2014-05-10 11:52

This driver can not be compiled with a 3.14 kernel (tried both -ck and official kernel). The relevant output is attached:

DKMS make.log for dkms-mt7601u-v3.0.0.4 for kernel 3.14.3-1-ck (i686)
Sat May 10 20:47:25 JST 2014
make -C tools
make[1]: Entering directory '/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/tools'
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/tools/bin2h
cp -f os/linux/Makefile.6 /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/Makefile
make -C /lib/modules/3.14.3-1-ck/build SUBDIRS=/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux modules
make[1]: Entering directory '/usr/lib/modules/3.14.3-1-ck/build'
CC [M] /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../os/linux/rt_profile.o
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../os/linux/rt_profile.c:331:16: warning: unused variable ‘pAd’ [-Wunused-variable]
RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)pAdSrc;
^
CC [M] /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/assoc.o
CC [M] /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/auth.o
CC [M] /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/auth_rsp.o
CC [M] /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sync.o
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sync.c: In function ‘MlmeForceJoinReqAction’:
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sync.c:181:24: warning: unused variable ‘pInfo’ [-Wunused-variable]
MLME_JOIN_REQ_STRUCT *pInfo = (MLME_JOIN_REQ_STRUCT *)(Elem->Msg);
^
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sync.c:2173:10: warning: passing argument 8 of ‘StaAddMacTableEntry’ from incompatible pointer type
if (StaAddMacTableEntry(pAd,
^
In file included from /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/include/rt_config.h:59:0,
from /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sync.c:28:
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/include/rtmp.h:7892:9: note: expected ‘struct IE_LISTS *’ but argument is of type ‘struct BCN_IE_LIST *’
BOOLEAN StaAddMacTableEntry(
^
CC [M] /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sanity.o
CC [M] /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/rtmp_data.o
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/rtmp_data.c: In function ‘STAHandleRxDataFrame’:
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/rtmp_data.c:523:13: warning: passing argument 2 of ‘MacTableLookup’ from incompatible pointer type
pEntry = MacTableLookup(pAd, &pHeader->Addr2);
^
In file included from /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/include/rt_config.h:59:0,
from /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/rtmp_data.c:28:
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/include/rtmp.h:8429:18: note: expected ‘UCHAR *’ but argument is of type ‘UCHAR (*)[6]’
MAC_TABLE_ENTRY *MacTableLookup(RTMP_ADAPTER *pAd, UCHAR *pAddr);
^
CC [M] /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/connect.o
CC [M] /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/wpa.o
CC [M] /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.o
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlRF’:
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.c:5305:7: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 5 has type ‘LONG’ [-Wformat=]
sprintf(msg+strlen(msg), "BANK%d_R%02d:%02X ", bank_Id, rfId, rfValue);
^
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.c:5358:3: warning: passing argument 2 of ‘RtmpDrvAllRFPrint’ from incompatible pointer type
RtmpDrvAllRFPrint(NULL, msg, strlen(msg));
^
In file included from /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/include/rt_config.h:64:0,
from /var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.c:28:
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/include/rt_os_util.h:668:6: note: expected ‘UINT32 *’ but argument is of type ‘PSTRING’
VOID RtmpDrvAllRFPrint(
^
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.c:5208:22: warning: unused variable ‘rf_bank’ [-Wunused-variable]
UCHAR regRF = 0, rf_bank = 0;
^
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.c:5765:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
^
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.c:5765:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
^
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwgenie’:
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.c:7609:13: warning: assignment from incompatible pointer type
eid_ptr = pAd->StaCfg.pWpaAssocIe;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target '/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1278: recipe for target '_module_/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux' failed
make[1]: *** [_module_/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux] Error 2
make[1]: Leaving directory '/usr/lib/modules/3.14.3-1-ck/build'
Makefile:38: recipe for target 'all' failed
make: *** [all] Error 2

Any idea? Thanks in advance.

Comment by tarasian666

2014-04-16 12:18

patch helped

--- include/os/rt_linux.h 2013-09-12 13:27:14.000000000 +0800
+++ include/os/rt_linux.h.patched 2014-03-23 11:45:03.907628847 +0800
@@ -279,8 +279,8 @@ typedef struct file* RTMP_OS_FD;

typedef struct _OS_FS_INFO_
{
- int fsuid;
- int fsgid;
+ kuid_t fsuid;
+ kgid_t fsgid;
mm_segment_t fs;
} OS_FS_INFO;

Comment by tarasian666

2014-04-16 12:14

/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../os/linux/rt_linux.c:1121:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
/var/lib/dkms/dkms-mt7601u/v3.0.0.4/build/os/linux/../../os/linux/rt_linux.c:1122:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’

Comment by seba

2014-03-14 23:27

Works also on Raspberry Pi (armv6l), Thanks!