谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#1

帖子 phyond » 2017-05-11 19:31

在这个论坛上找到了,可能是没有注册的原因,下载不了
https://linuxforums.org.uk/index.php?topic=852.0
在其他网站或论坛下载的都有问题,这个帖子给出了解决方案
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#2

帖子 vickycq » 2017-05-11 21:22

phyond 写了:在其他网站或论坛下载的都有问题,这个帖子给出了解决方案
七年前的帖子,时过境迁,根据一般的经验,已经不适用了。至于帖子中谈到的“rt2870 和 rt2800usb 冲突”,随着 Linux 内核的快速发展,这个问题已经不复存在,因为 rt2870 早已被移除。2.6.39 是最后一个包含 rt2870 的版本。(位于 drivers/staging/rt2870)
建议楼主直接描述遇到的根本问题,并执行以下指令将结果全部复制贴上来

代码: 全选

uname -a
lspci -knn | grep -iA2 net
sudo lshw -numeric -C net
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#3

帖子 phyond » 2017-05-12 9:45

买了一个tplink的usb无线网卡,芯片是rt2870的,想在ubuntu下安装驱动,网上找了一个2010_**的驱动,但是在u14.04下编译不过去,也不知道具体原因,出错的情况跟这个帖子描述的一致
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#4

帖子 vickycq » 2017-05-12 10:03

插入 usb 无线网卡执行以下指令将结果全部复制贴上来,不要节选

代码: 全选

uname -a
lsusb
lsusb -t
sudo lshw -C net
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#5

帖子 phyond » 2017-05-12 11:11

ershi@tl:~$ uname -a
Linux tl 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
ershi@tl:~$ lsusb
Bus 002 Device 002: ID 8087:8001 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8009 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 1c4f:0026 SiGma Micro Keyboard
Bus 003 Device 004: ID 148f:2878 Ralink Technology, Corp.
Bus 003 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ershi@tl:~$ lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
|__ Port 4: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 8: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 9: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 9: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
ershi@tl:~$ sudo lshw -C net
sudo:无法解析主机:tl
[sudo] password for ershi:
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: eth0
version: 0c
serial: 40:8d:5c:3e:55:aa
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168g-2_0.0.1 02/06/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:29 ioport:d000(size=256) memory:f7900000-f7900fff memory:f2100000-f2103fff
*-network
description: Ethernet interface
product: RTL8169 PCI Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 1
bus info: pci@0000:05:01.0
logical name: eth1
version: 10
serial: 08:57:00:e6:1e:fa
size: 10Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 66MHz
capabilities: pm bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=64 link=no maxlatency=64 mingnt=32 multicast=yes port=MII speed=10Mbit/s
resources: irq:16 ioport:c000(size=256) memory:f7820000-f78200ff memory:f7800000-f781ffff
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#6

帖子 phyond » 2017-05-12 11:12

下面是运行 make 时出现的错误
/home/ershi/桌面/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSNetDevAttach’:
/home/ershi/桌面/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c:1731:38: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
struct net_device_ops *pNetDevOps = pNetDev->netdev_ops;
^
make[2]: *** [/home/ershi/桌面/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.o] 错误 1
make[1]: *** [_module_/home/ershi/桌面/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-4.4.0-31-generic'
make: *** [LINUX] 错误 2
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#7

帖子 phyond » 2017-05-12 11:35

买了一个tplink的usb无线网卡,芯片是rt2870的,想在ubuntu下安装驱动,网上找了一个2010_**的驱动,但是在u14.04下编译不过去,也不知道具体原因,出错的情况跟这个帖子描述的一致
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#8

帖子 vickycq » 2017-05-12 13:00

phyond 写了:|__ Port 8: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
您的无线网卡是“双模式”的,既是 USB 无线网卡,又是优盘。优盘模式一般是用于安装 Windows 驱动的。根据信息中 Bus 003 Device 004 的 "Class=Mass Storage, Driver=usb-storage" 字样,猜测目前处于优盘模式。

那个帖子里的“修改版”驱动链接是个短网址,指向一个 dropbox 分享链接,但分享已经取消了。您可以自己根据帖子中的描述修改。也可以看看其它修改方案,如 https://github.com/aur-archive/rt2870/b ... 6.35.patch,综合各家修改方案。

如果修改后可以编译成功,您可能还需要研究一下 usb-modeswitch,把网卡从优盘模式切换到网卡模式。

总体来讲,这个方案 (148f:2878) 的 USB 无线网卡不适合在 Linux 使用。您可以说运气不太好。rt2870 比较常见的是 148f:2870,这个在 Linux 内核中是有支持的。但唯独这个变种 148f:2878 不被支持,也较为罕见。与其费功夫研究这个,不如再多花十几块钱买一块驱动比较完善的其它方案网卡。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#9

帖子 phyond » 2017-05-12 15:10

首先非常感谢您的解答,我之前安装帖子中修改方式试过了,结果和没有修改是一样的,还有一点,这个usb网卡在windows下是免安装驱动的 ,虽然这个识别出来是rt2878,但是之前看到其自带的windows网卡驱动也是使用的rt2870的,也正因为此,我的帖子上写的也是2870而非2878
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#10

帖子 phyond » 2017-05-12 15:10

首先非常感谢您的解答,我之前安装帖子中修改方式试过了,结果和没有修改是一样的,还有一点,这个usb网卡在windows下是免安装驱动的 ,虽然这个识别出来是rt2878,但是之前看到其自带的windows网卡驱动也是使用的rt2870的,也正因为此,我的帖子上写的也是2870而非2878
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#11

帖子 phyond » 2017-05-12 15:10

首先非常感谢您的解答,我之前安装帖子中修改方式试过了,结果和没有修改是一样的,还有一点,这个usb网卡在windows下是免安装驱动的 ,虽然这个识别出来是rt2878,但是之前看到其自带的windows网卡驱动也是使用的rt2870的,也正因为此,我的帖子上写的也是2870而非2878
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#12

帖子 vickycq » 2017-05-12 16:03

phyond 写了:,虽然这个识别出来是rt2878,但是之前看到其自带的windows网卡驱动也是使用的rt2870的,也正因为此,我的帖子上写的也是2870而非2878
只是说 id 为 148f:2878,不代表芯片方案为 2878

请您现在做个实验,按顺序执行以下步骤

1. 执行以下指令检查 usb-modeswitch 是否已安装

代码: 全选

dpkg -l usb-modeswitch
如果最后一行开头是 'ii' 说明已安装。如果不是,您需要设法连接有线网安装 usb-modeswitch,或手动下载这几个包拷贝到机器上安装。需要按下面的顺序,先安装第一个,然后是第二个、第三个。下面的软件包适用于 Ubuntu 14.04 amd64
http://kr.archive.ubuntu.com/ubuntu/poo ... _amd64.deb
http://kr.archive.ubuntu.com/ubuntu/poo ... -1_all.deb
http://kr.archive.ubuntu.com/ubuntu/poo ... _amd64.deb

2. 插入 USB 无线网卡
3. 执行以下指令将结果全部复制贴上来

代码: 全选

sudo usb_modeswitch -KW -v 148f -p 2878
4. 执行以下指令将结果全部复制贴上来

代码: 全选

lsusb
lsusb -t
因为我怀疑您的 USB 无线网卡的无线芯片型号不是 RT2870。如果您的 USB 无线网卡是最近才从正规渠道购买的,不太可能配备古旧的 RT2870 方案。如果没猜错的话,当您执行第四步,您会看到设备的 id 变为另一个值,比如,很可能是 148f:7601 或 148f:760b。这是 ralink 被 mediatek 收购后新推出的产品。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#13

帖子 phyond » 2017-05-12 17:48

首先非常感谢您的解答,我之前安装帖子中修改方式试过了,结果和没有修改是一样的,还有一点,这个usb网卡在windows下是免安装驱动的 ,虽然这个识别出来是rt2878,但是之前看到其自带的windows网卡驱动也是使用的rt2870的,也正因为此,我的帖子上写的也是2870而非2878
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#14

帖子 phyond » 2017-05-12 17:48

首先非常感谢您的解答,我之前安装帖子中修改方式试过了,结果和没有修改是一样的,还有一点,这个usb网卡在windows下是免安装驱动的 ,虽然这个识别出来是rt2878,但是之前看到其自带的windows网卡驱动也是使用的rt2870的,也正因为此,我的帖子上写的也是2870而非2878
phyond
帖子: 22
注册时间: 2017-05-08 18:01
系统: ubuntu14.04

Re: 谁能帮忙提供一个rt2870无线网卡驱动货帮忙下载一个(网址有,是国外的)

#15

帖子 phyond » 2017-05-15 9:00

按照您说的做了一下,不是太懂,但是感觉芯片不是2878,操作如下
ershi@tl:/media/ershi/workspace/20170515$ sudo usb_modeswitch -KW -v 148f -p 2878
sudo:无法解析主机:tl
[sudo] password for ershi:
Take all parameters from the command line


* usb_modeswitch: handle USB devices with multiple modes
* Version 2.1.1 (C) Josua Dietze 2014
* Based on libusb1/libusbx

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x148f
DefaultProduct= 0x2878

StandardEject=1
NeedResponse=0

Look for default devices ...
found USB ID 8087:8001
found USB ID 1d6b:0002
found USB ID 8087:8009
found USB ID 1d6b:0002
found USB ID 1d6b:0003
found USB ID 1c4f:0026
found USB ID 148f:2878
vendor ID matched
product ID matched
found USB ID 093a:2510
found USB ID 1d6b:0002
Found devices in default mode (1)
Access device 005 on bus 003
Current configuration number is 1
Use interface number 0
Use endpoints 0x08 (out) and 0x84 (in)

USB description data (for identification)
-------------------------
Manufacturer: ?
Product: ?
Serial No.: not provided
-------------------------
Sending standard EJECT sequence
Looking for active driver ...
OK, driver detached
Set up interface 0
Use endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
Read the response to message 1 (CSW) ...
Response successfully read (13 bytes).
Trying to send message 2 to endpoint 0x08 ...
OK, message successfully sent
Read the response to message 2 (CSW) ...
Device seems to have vanished after reading. Good.
Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!

ershi@tl:/media/ershi/workspace/20170515$ lsusb
Bus 002 Device 002: ID 8087:8001 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8009 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 1c4f:0026 SiGma Micro Keyboard
Bus 003 Device 006: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 003 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ershi@tl:/media/ershi/workspace/20170515$ lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
|__ Port 4: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 8: Dev 6, If 0, Class=Vendor Specific Class, Driver=, 480M
|__ Port 9: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 9: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
ershi@tl:/media/ershi/workspace/20170515$
回复