T2UH WLAN 适配器问题

T2UH WLAN 适配器问题

我在 VirtualBox 上安装 TP-Link AC600 Archer T2UH 时遇到了麻烦。我花了好几个小时才让它工作,但还是没成功。所以我决定请社区帮忙。

首先,我正在运行:Ubuntu 16.10 Linux version 4.8.0-22-generic (buildd@lgw01-11) (gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12) ) #24-Ubuntu SMP Sat Oct 8 09:15:00 UTC 2016在 Virtualbox 版本 5.18 中

lsusb

Bus 001 Device 003: ID 148f:761a Ralink Technology, Corp

所以,但这是我从这个适配器中得到的唯一东西。将它绑定到 Virtualbox 时出现问题。当我尝试从我的 USB 列表中选择它时(它被称为雷凌科技股份有限公司 0100) 出现故障消息,传入 USB 设备“RalinkTechnologyCorp.”,UUID 为... 正在处理上一个请求。请稍后重试。问题是,我还停用了 Stick 的主机驱动程序,因此我认为主机系统无法请求它。也许这个故障是由于没有安装驱动程序造成的?

我遇到的另一个问题是驱动程序安装。我按照以下链接的说明进行操作: https://www.myria.de/computer/1308-tp-link-archer-t2u-ac600-unter-linux-nutzen

但每当我尝试为我的设备编译驱动程序时,终端都会出现以下失败消息:

make -C tools
make[1]: Verzeichnis „/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/tools“ wird betreten
gcc -g bin2h.c -o bin2h
make[1]: Verzeichnis „/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/tools“ wird verlassen
/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h
chipset = mt7610u
cp -f os/linux/Makefile.6 /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/Makefile
make -C /lib/modules/4.8.0-22-generic/build SUBDIRS=/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules
make[1]: Verzeichnis „/usr/src/linux-headers-4.8.0-22-generic“ wird betreten
  CC [M]  /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o
In file included from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
                 from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/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/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:98:0,
                 from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44,
                 from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function)
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/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/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
                 from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/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/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:669:16: note: in definition of macro ‘DBGPRINT_RAW’
         printk Fmt;               \
                ^~~
/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/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:289: die Regel für Ziel „/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o“ scheiterte
make[2]: *** [/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o] Fehler 1
Makefile:1489: die Regel für Ziel „_module_/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux“ scheiterte
make[1]: *** [_module_/home/nico/src/mt7610u_wifi_sta_v3002_dpo_20130916/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-4.8.0-22-generic“ wird verlassen
Makefile:403: die Regel für Ziel „LINUX“ scheiterte
make: ** [LINUX] Fehler 2

所以,这次编译后,“make install”也不起作用了。希望你能帮助我,在我把这根棍子扔出窗外之前。

答案1

刚刚在 Ubuntu 18.04 和 Linux 内核 4.13.0-25-generic 上运行它

如何?紫苏叉

$ git clone https://github.com/cperilla/mt7610u_wifi_sta_v3002_dpo_20130916 $ cd mt7610u_wifi_sta_v3002_dpo_20130916 $ make $ sudo make install $ sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat (reboot, should not be necessary but I did it)

然后我sudo iwlist ra0 scan去获取网络上的信息

获得我想要的有关开放网络的信息后,我做了以下事情:

sudo iwconfig ra0 mode Managed ap XX:XX:XX:XX:XX:XX channel 1 enc off key off sudo iwpriv ra0 set SSID="<ssid>" sudo dhclient ra0 -v

答案2

我遇到了与您同样的问题并解决了该问题并将所有解决方案放在 GitHub 上,包括针对 Ubuntu 16.10 修改的驱动程序的代码。

https://github.com/Hygens/mt7610u_ubuntu_1610

如何使用

mkdir ~/src
cd ~/src
git 克隆 https://github.com/Myria-de/mt7610u_wifi_sta_v3002_dpo_20130916.git
制作
安装
sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
sudo 重启

參考:http://hprath.com/2014/06/cisco-linksys-ae6000-ac580-media-tek-mt7610u-mt7630u-mt7650u-linux-x64-驱动程序补丁/在此页面上,您还可以找到有关 RT2870STA.dat 中配置的详细信息。

https://github.com/chenhaiq/mt7610u_wifi_sta_v3002_dpo_20130916(TP-Link T2U)

相关内容