Проблемы с установкой драйверов для Mediatek MT7610/Ralink RT2870 на Ubuntu 17.10

У меня есть адаптер Wi-Fi ASUS USB-AC51, который я хотел бы использовать. К сожалению, я не могу установить драйвер. Оригинальный драйвер слишком старый и более новая версия не будет установлена.

Bus 001 Device 003: ID 0b05:17d1 ASUSTek Computer, Inc. AC51 802.11a/b/g/n/ac Wireless Adapter [Mediatek MT7610/Ralink RT2870]

До сих пор я пробовал этот драйвер здесь, но он из-за ошибки при создании insmod.

sebastian@sebastian-NBLB2:~/mt7610u$ sudo insmod mt7610u.ko
insmod: ERROR: could not insert module mt7610u.ko: Unknown symbol in module

Здесь драйвер не найден в дереве пакетов.

Я нашел многообещающую более новую версию драйвера прямо здесь, но у меня есть проблемы во время команды make, так как она не закончится.

sebastian@sebastian-NBLB2:~/mt7610u_wifi_sta_v3002_dpo_20130916$ env LANG=C make
make -C tools
make[1]: Entering directory '/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h
chipset = mt7610u
cp -f os/linux/Makefile.6 /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/Makefile
make -C /lib/modules/4.13.0-17-generic/build SUBDIRS=/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-17-generic'
  CC [M]  /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o
In file included from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
                 from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/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 /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:98:0,
                 from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44,
                 from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/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
/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c: In function 'announce_802_3_packet':
/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/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 /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
                 from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c: In function 'STA_MonPktSend':
/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/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)));
                                   ^                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:669:16: note: in definition of macro 'DBGPRINT_RAW'
         printk Fmt;               \
                ^~~
/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/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)));
         ^~~~~~~~
scripts/Makefile.build:302: recipe for target '/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o' failed
make[2]: *** [/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o] Error 1
Makefile:1546: recipe for target '_module_/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' failed
make[1]: *** [_module_/home/sebastian/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-17-generic'
Makefile:403: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2

Спасибо за помощь.

0 ответов

Другие вопросы по тегам