如何安装RT2870 / RT3070 Wireless Driver?

我有一个alfa awus036h,但我不知道如何在ubuntu 14.04上安装驱动程序。 当设备插入并且无线开关关闭时。 这是lsusb的输出。

 Bus 001 Device 002: ID 8087:8000 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 007: ID 0cf3:3004 Atheros Communications, Inc. Bus 002 Device 004: ID 174f:14b2 Syntek Bus 002 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 002 Device 015: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter Bus 002 Device 002: ID 12d1:14dc Huawei Technologies Co., Ltd. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 

这就是我从dmesg命令得到的

 [ 3083.881796] usb 2-3: new high-speed USB device number 16 using xhci_hcd [ 3084.093055] usb 2-3: New USB device found, idVendor=148f, idProduct=3070 [ 3084.093059] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 3084.093061] usb 2-3: Product: 802.11 n WLAN [ 3084.093063] usb 2-3: Manufacturer: Ralink [ 3084.270316] usb 2-3: reset high-speed USB device number 16 using xhci_hcd [ 3084.463232] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009a783e48 [ 3084.463239] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009a783e00 [ 3084.463243] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009a783e90 [ 3084.463247] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009a783ed8 [ 3084.463250] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009a783f20 [ 3084.463253] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009a783f68 [ 3084.463256] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88009a783fb0 [ 3084.463626] ieee80211 phy3: rt2x00_set_rt: Info - RT chipset 3070, rev 0201 detected [ 3084.473953] ieee80211 phy3: rt2x00_set_rf: Info - RF chipset 0005 detected [ 3084.474414] ieee80211 phy3: Selected rate control algorithm 'minstrel_ht' 

但当我将无线切换为开启时, lsusb命令只是挂起而没有得到任何输出,直到我移除设备。 这是dmesg的输出

 [ 3276.484226] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 3276.484621] ieee80211 phy3: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin' [ 3276.484648] ieee80211 phy3: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.22 [ 3276.651111] usb 2-3: USB disconnect, device number 16 [ 3277.148218] ieee80211 phy3: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1114 with error -19 [ 3277.148283] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready [ 3278.749131] ieee80211 phy3: rt2800_wait_wpdma_ready: Error - WPDMA TX/RX busy [0xffffffff] [ 3279.053427] usb 2-3: new high-speed USB device number 17 using xhci_hcd 

我有一个使用相同驱动程序的设备,只是标记为ralink USB Wifi Dongle。 这就是我让我的工作:

更新:您可能必须下载内核头文件,如果您还没有:

 sudo apt-get install linux-headers-$(uname -r) 

将加密狗插入,并在终端中运行以下行:

 git clone https://github.com/porjo/mt7601.git cd mt7601/src make sudo make install sudo mkdir -p /etc/Wireless/RT2870STA/ sudo cp RT2870STA.dat /etc/Wireless/RT2870STA/ sudo modprobe mt7601Usta 

之后,它会在GUI网络工具中找到它。 可能需要重新启动。

希望有所帮助。

这是一个ppa回购 – MT7601 STA驱动程序 。 我已经测试了它的RT2870驱动程序,它对我有用

插入USB适配器并运行以下命令:

 sudo add-apt-repository ppa:thopiekar/mt7601 sudo apt-get update sudo apt-get install mt7601-sta-dkms 

安装完成后,单击Wi-Fi网络图标,您将看到USB适配器网络接口。

在进入@ Hitsugaya198解决方案之前,您必须使用如下所示的内置wifi适配器

将以下行添加到/ etc / network / interfaces:

 iface wlan0 inet manual 

NetworManager不管理interfaces文件中配置的接口。 如果wlan0不是内置接口的名称,请将wlan0替换为要禁用的接口。

然后重启网络管理器

 sudo service network-manager restart 

完成上述步骤后,继续使用@ Hitsugaya198解决方案,这非常有效。

系统内置驱动程序(rt2800)至少与我的RT3072一起工作。 我不得不编辑

 /etc/udev/rules.d/70-persistent-net.rules 

还有另一个适配器与wlan1相关的芯片组,我想要管理我的设备。 只需更改mac地址或插入新行:

 # USB device 0x:0x (rt2800usb) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1" 

其中xx …是您的卡的mac地址,可通过以下方式获得:

 sudo lshw -C network 

如果您使用的是debian 8或debian 9,以及16位的ubuntu,则已经安装了驱动器。 问题是驱动器无法处理给定接口的名称。 要使驱动器工作,只需重命名该卡。 在文件/etc/ default/grub更改行,使其看起来像这样:

 GRUB_CMDLINE_LINUX = "net.ifnames = 0 biosdevname = 0" 

然后运行以下命令:

 sudo grub-mkconfig -o /boot/grub/grub.cfg 

那只是重启机器。 驱动器将工作。