You are not logged in.

#1 2018-03-07 16:16:57

Brunste
Member
From: United States
Registered: 2018-01-28
Posts: 19

Getting MediaTek Inc. USB Wifi Adapter to Work

Hello, Newbie Corner.

I'm trying to use a MediaTek Inc. USB Wifi Adapter, but no matter what I do I cannot seem to get it to work.

Using ip link only lists my loopback and wired connection (lo and enp0s31f6 respectively). The adapter is not shown.

Performing lsusb lists the adapter under:

Bus 001 Device 007: ID 0e8d:7610 MediaTek Inc.

I have tried installing the following two packages:

https://aur.archlinux.org/packages/mt76 … -dkms-git/
https://aur.archlinux.org/packages/mt7610u_wifi_sta/

After installing I used the following command and recieved an output of:

sudo modprobe mt7610u_sta
modprobe: FATAL: Module mt7610u_sta not found in directory /lib/modules/4.15.7-1-ARCH

Any help would be greatly appreciated. If any information is needed that I didn't include, just let me know and I'll find it. I'm only now advancing past the lurking stage of the Arch Forums.

Last edited by Brunste (2018-03-07 16:18:14)

Offline

#2 2018-03-07 18:45:28

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: Getting MediaTek Inc. USB Wifi Adapter to Work

makepkg
==> Making package: mt7610u_wifi_sta 4606187-3 (Wed  7 Mar 18:41:29 UTC 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating mt7610u_wifi_sta git repo...
Fetching origin
  -> Found 0001-fix-compile-against-kernel-4.6.patch
  -> Found 0002-add-tplink-archer-t1u.patch
==> Validating source files with md5sums...
    mt7610u_wifi_sta ... Skipped
    0001-fix-compile-against-kernel-4.6.patch ... Passed
    0002-add-tplink-archer-t1u.patch ... Passed
==> Extracting sources...
  -> Creating working copy of mt7610u_wifi_sta_v3002_dpo_20130916 git repo...
Switched to a new branch 'makepkg'
==> Starting build()...
patching file chips/mt76x0.c
patching file chips/rtmp_chip.c
patching file common/rtusb_io.c
patching file common/txpower.c
patching file mcu/mcu.c
patching file mcu/mcu_and.c
patching file os/linux/cfg80211.c
patching file common/rtusb_dev_id.c
make: Entering directory '/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta'
make -C tools
cp -f os/linux/Makefile.6 /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/Makefile
make[1]: Entering directory '/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/tools'
gcc -g bin2h.c -o bin2h
make -C /lib/modules/4.15.7-1-stable/build SUBDIRS=/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux modules
make[1]: Entering directory '/usr/lib/modules/4.15.7-1-stable/build'
make[1]: Leaving directory '/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/tools'
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/tools/bin2h
chipset = mt7610u
  CC [M]  /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../os/linux/rt_profile.o
  CC [M]  /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/assoc.o
  CC [M]  /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/auth.o
  CC [M]  /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/auth_rsp.o
  CC [M]  /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/sync.o
  CC [M]  /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/sanity.o
  CC [M]  /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/rtmp_data.o
  CC [M]  /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/connect.o
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../os/linux/rt_profile.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */
 
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/auth.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */
 
<command-line>:0:0: note: this is the location of the previous definition
<command-line>:0:0: note: this is the location of the previous definition
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/assoc.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */
 
<command-line>:0:0: note: this is the location of the previous definition
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/sync.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */
 
<command-line>:0:0: note: this is the location of the previous definition
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/sanity.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */
 
<command-line>:0:0: note: this is the location of the previous definition
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/auth_rsp.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */
 
<command-line>:0:0: note: this is the location of the previous definition
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:98:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/auth.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function); did you mean ‘IEEE80211_NUM_TIDS’?
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
                                                 IEEE80211_NUM_TIDS
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:98:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../os/linux/rt_profile.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function); did you mean ‘IEEE80211_NUM_TIDS’?
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
                                                 IEEE80211_NUM_TIDS
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:98:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/assoc.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function); did you mean ‘IEEE80211_NUM_TIDS’?
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
                                                 IEEE80211_NUM_TIDS
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/rtmp_data.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */
 
<command-line>:0:0: note: this is the location of the previous definition
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/connect.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */
 
<command-line>:0:0: note: this is the location of the previous definition
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:98:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/sync.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function); did you mean ‘IEEE80211_NUM_TIDS’?
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
                                                 IEEE80211_NUM_TIDS
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:98:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/sanity.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function); did you mean ‘IEEE80211_NUM_TIDS’?
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
                                                 IEEE80211_NUM_TIDS
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:98:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/rtmp_data.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function); did you mean ‘IEEE80211_NUM_TIDS’?
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
                                                 IEEE80211_NUM_TIDS
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:98:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/auth_rsp.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function); did you mean ‘IEEE80211_NUM_TIDS’?
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
                                                 IEEE80211_NUM_TIDS
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../os/linux/rt_profile.c:341:16: warning: unused variable ‘pAd’ [-Wunused-variable]
  RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)pAdSrc;
                ^~~
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:98:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/connect.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function); did you mean ‘IEEE80211_NUM_TIDS’?
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
                                                 IEEE80211_NUM_TIDS
In file included from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_os.h:44:0,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rtmp_comm.h:75,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/rt_config.h:33,
                 from /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../os/linux/rt_profile.c:28:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../os/linux/rt_profile.c:450:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
         DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
                                   ^                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/include/os/rt_linux.h:669:16: note: in definition of macro ‘DBGPRINT_RAW’
         printk Fmt;               \
                ^~~
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../os/linux/rt_profile.c:450:9: note: in expansion of macro ‘DBGPRINT’
         DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
         ^~~~~~~~
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/assoc.c: In function ‘PeerAssocRspAction’:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/assoc.c:1164:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     PFRAME_802_11 pFrame =  (PFRAME_802_11) (Elem->Msg);
     ^~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:316: /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../os/linux/rt_profile.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:316: /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/auth.o] Error 1
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/assoc.c: In function ‘AssocPostProc’:
/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/assoc.c:1450:4: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
    PUCHAR pVIE;
    ^~~~~~
make[2]: *** [scripts/Makefile.build:316: /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/auth_rsp.o] Error 1
make[2]: *** [scripts/Makefile.build:316: /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/connect.o] Error 1
make[2]: *** [scripts/Makefile.build:316: /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/sanity.o] Error 1
make[2]: *** [scripts/Makefile.build:316: /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/sync.o] Error 1
make[2]: *** [scripts/Makefile.build:316: /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/assoc.o] Error 1
make[2]: *** [scripts/Makefile.build:316: /tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux/../../sta/rtmp_data.o] Error 1
make[1]: *** [Makefile:1509: _module_/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta/os/linux] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.15.7-1-stable/build'
make: *** [Makefile:404: LINUX] Error 2
make: Leaving directory '/tmp/mt7610u_wifi_sta/src/mt7610u_wifi_sta'
==> ERROR: A failure occurred in build().
    Aborting...

How did you successfully build and install mt7610u_wifi_sta 4606187-3 ?
Edit:
See also the pinned comment on mt7610u_sta-dkms-git.

Last edited by loqs (2018-03-07 18:47:32)

Offline

#3 2018-03-07 18:57:01

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Getting MediaTek Inc. USB Wifi Adapter to Work

@loqs: You can sucessfullly build and install the dkms package, but it won't be able to create a module for the 4.15 kernel as it fails to compile it.

See also the pinned comment on mt7610u_sta-dkms-git.

It seems that this fork works with 4.15:
https://github.com/BZHDeveloper/mt7610u … linux-4.15

This is an effort to clean up the driver and include it into the linux kernel
https://github.com/ulli-kroll/mt7610u


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2018-03-07 18:59:26

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: Getting MediaTek Inc. USB Wifi Adapter to Work

@progandy that does seem to raise the question why are these two packages in AUR?

Offline

#5 2018-03-07 19:06:04

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Getting MediaTek Inc. USB Wifi Adapter to Work

That is the question. Marking it out of date is probably correct, but since I don't have the hardware to test the new version, I won't do that.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#6 2018-03-08 01:03:23

Brunste
Member
From: United States
Registered: 2018-01-28
Posts: 19

Re: Getting MediaTek Inc. USB Wifi Adapter to Work

progandy wrote:

It seems that this fork works with 4.15:
https://github.com/BZHDeveloper/mt7610u … linux-4.15

This is an effort to clean up the driver and include it into the linux kernel
https://github.com/ulli-kroll/mt7610u

Any best practices for using these? I'm a little hesitant to mess with packages outside of the official and user repositories since I don't want a bunch of poorly managed programs all over my system.

And is there one you would recommend over another? The instructions included in the 4.15 fork seem straight forward so I was leaning towards that, but wasn't sure if there was something else to keep in mind.

Thanks for the input, guys.

Last edited by Brunste (2018-03-08 01:04:12)

Offline

#7 2018-03-08 08:15:00

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Getting MediaTek Inc. USB Wifi Adapter to Work

You should be able to change the git source in the dkms-git package to the BZHDeveloper fork.

source=("${_pkgbase}"::"git+https://github.com/BZHDeveloper/mt7610u_wifi_sta_v3002_dpo_20130916.git#branch=linux-4.15"

For the other one, that may work as well, but I am not sure.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#8 2018-03-08 09:42:15

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: Getting MediaTek Inc. USB Wifi Adapter to Work

pkgname=mt7610u-git
pkgver=r856.4d957fa
pkgrel=1
# To get an overview of witch WiFi dongle has this chipset refer to https://wikidevi.com/wiki/MediaTek_MT7610U
pkgdesc="Kernel module for MediaTek MT7610U chipset featured in TP-Link Archer T2U and T2UH, TP-Link TL-WDN5200, ASUS USB-AC50, ASUS USB-AC51, Comcast Xfinity KXW02AAA, D-Link DWA-171 rev B1 and more"
arch=('x86_64')
license=('GPL2')
url="https://github.com/ulli-kroll/mt7610u"
depends=('linux')
makedepends=('git' 'linux-headers')
source=(mt7610u-git::"git+https://github.com/ulli-kroll/mt7610u")
sha256sums=('SKIP')

_extramodules=extramodules-4.15

pkgver() {
  cd "${srcdir}/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${pkgname}"
  make
}

package() {
  cd "${srcdir}/${pkgname}"
  install -Dm644 -t "${pkgdir}/usr/lib/firmware" firmware/*.bin
  install -Dm644 mt7610u.ko "$pkgdir/usr/lib/modules/${_extramodules}/mt7610u.ko"
}

Last edited by loqs (2018-03-08 09:42:53)

Offline

#9 2018-03-08 15:24:36

Brunste
Member
From: United States
Registered: 2018-01-28
Posts: 19

Re: Getting MediaTek Inc. USB Wifi Adapter to Work

@progandy I'll give it a shot when I get to my computer this afternoon and let you know if it works. Thank you.

@loqs any chance you could briefly explain, or even just drop a link that explains, what/why you changed in the PKGBUILD you posted? If you had the time, I figure it'd be a nice learning opprotunity. I completely understand if you don't though.

Last edited by Brunste (2018-03-08 15:25:16)

Offline

#10 2018-03-08 15:41:05

loqs
Member
Registered: 2014-03-06
Posts: 17,195

Re: Getting MediaTek Inc. USB Wifi Adapter to Work

pkgname so that it has a unique pkgname ending in -git as the package use the latest git commit.
arch to 'x86_64' it was 'any' but the package generates an x84_64 binary so it should be marked for that architecture.
url to the new github page,  same for source remove patches from source and checksum arrays.
_extramodules=extramodules-4.15 the extra modules directory for the current linux package,  external modules should be placed in extramodules not mixed with the in tree modules.
standard pkgver function for a git repo that does not use tags
install firmware to /usr/lib/firmware
install kernel module to usr/lib/modules/${_extramodules}/
edit:
grammar added ,

Last edited by loqs (2018-03-08 15:42:01)

Offline

Board footer

Powered by FluxBB