我刚刚购买了 AC600 Mediatek MT7610 双频 WiFi USB 适配器。制造商承诺支持或兼容 Ubuntu。然而,包装中的驱动程序文件无法按照随附的说明进行编译或“制作”。
此外,在尝试安装时,我之前的 WiFi 适配器被禁用了。感谢 AskUbuntu 的一位好心人,我让旧驱动程序重新运行,并学会了恢复它的方法。不过,我还是想安装我的新适配器。
有人在 Ubuntu 中拥有此设备的操作驱动程序或能够编译该产品附带的源代码吗?
一旦我将加密狗连接到 USB 端口,我就会从 lsusb 和 dmesg 命令获得以下输出:
Ubu1:~$ lsusb
Bus 002 Device 002: ID 15a4:1336 Afatech Technologies, Inc. SDHC/MicroSD/MMC/MS/M2/CF/XD Flash Card Reader
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0e8d:7610 MediaTek Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 046d:c52e Logitech, Inc. MK260 Wireless Combo Receiver
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
和:
Ubu1:~$ dmesg
(...)
[ 1.272869] rtc_cmos 00:01: setting system clock to 2017-02-11 19:49:42 UTC (1486842582)
[ 1.273359] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 1.273360] EDD information not available.
[ 1.273390] PM: Hibernation image not present or could not be loaded.
[ 1.384667] ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 1.404722] ata4.00: ATAPI: HL-DT-ST DVDRAM GH22NS40, NL02, max UDMA/100
[ 1.410723] usb 1-4: New USB device found, idVendor=148f, idProduct=3070
[ 1.410725] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1.410728] usb 1-4: Product: 802.11 n WLAN
[ 1.410729] usb 1-4: Manufacturer: Ralink
[ 1.410731] usb 1-4: SerialNumber: 1.0
[ 1.428750] ata4.00: configured for UDMA/100
(...)
如果需要的话,我可以提供设备附带的驱动程序。但肯定有人之前遇到过这个问题,并且已经解决了。
不管我能得到什么线索,我都会非常感激。提前感谢您的关注。
这是‘如何安装 TP-LINK T2UH (...)’中指示的 make 命令的输出
Ubu1:~/mt7610u_wifi_sta_v3002_dpo_20130916$ make
make -C tools
make[1]: Entering directory '/home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
/home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h
chipset = mt7610u
cp -f os/linux/Makefile.6 /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/Makefile
make -C /lib/modules/4.8.0-37-generic/build SUBDIRS=/home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-37-generic'
CC [M] /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o
In file included from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/jorge/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/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:98:0,
from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44,
from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/jorge/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/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/home/jorge/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/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
from /home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
/home/jorge/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/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:669:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/home/jorge/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: recipe for target '/home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o' failed
make[2]: *** [/home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o] Error 1
Makefile:1491: recipe for target '_module_/home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' failed
make[1]: *** [_module_/home/jorge/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-37-generic'
Makefile:403: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
我希望它能帮助解决问题。谢谢你的帮助。