ubuntu16.04.1安装rt3070网卡后,无网络

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
ethan2016s
帖子: 50
注册时间: 2015-10-17 19:04
系统: ubuntu win7

Re: ubuntu16.04.1安装rt3070网卡后,无网络

#16

帖子 ethan2016s » 2017-03-07 16:22

前楼的连接的方法还是不行,还是出错:

cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/jacob/Documents/无线网卡驱动/RT3070_Linux_STA_V2.5.0.3-master_now/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/jacob/Documents/无线网卡驱动/RT3070_Linux_STA_V2.5.0.3-master_now/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1420: recipe for target '_module_/home/jacob/Documents/无线网卡驱动/RT3070_Linux_STA_V2.5.0.3-master_now/os/linux' failed
make[1]: *** [_module_/home/jacob/Documents/无线网卡驱动/RT3070_Linux_STA_V2.5.0.3-master_now/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-64-generic'
Makefile:356: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
====================================================
jacob2022s@gmail.com
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04.1安装rt3070网卡后,无网络

#17

帖子 poloshiao » 2017-03-07 17:23

lsusb
Bus 001 Device 006: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
sudo lshw -C net
*-network
description: Wireless interface
product: Wireless 3160
physical id: 0
configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-64-generic
*-network
description: Ethernet interface
product: AR8161 Gigabit Ethernet
physical id: 0
configuration: autonegotiation=on broadcast=yes driver=alx
*-network
description: Wireless interface
product:
physical id: 3
configuration: broadcast=yes driver=rt2800usb driverversion=4.4.0-64-generic
1. 為何 你兩個網卡 偵測的 physical id: 都是 0 ?

2. 為何 你有兩個 無線網卡 ?

3. 建議 檢查一下 有線網卡 是否正確啟用操作中
3-1. sudo ifconfig enp8s0
3-2. sudo route -n -v
ethan2016s
帖子: 50
注册时间: 2015-10-17 19:04
系统: ubuntu win7

Re: ubuntu16.04.1安装rt3070网卡后,无网络

#18

帖子 ethan2016s » 2017-03-07 18:13

我笔记本的无线网卡做hotspot了,上网用的是拓实N95 usb网卡,
=======================

jacob@jacob-Mai-II:~/Documents/无线网卡驱动/RT3070_Linux_STA_V2.5.0.3-master$ sudo ifconfig enp8s0
[sudo] password for jacob:
enp8s0 Link encap:Ethernet HWaddr 54:ab:3a:47:f2:a5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17

jacob@jacob-Mai-II:~/Documents/无线网卡驱动/RT3070_Linux_STA_V2.5.0.3-master$ sudo route -n -v
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 600 0 0 wlx008a1f34350b
10.42.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp7s0
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlx008a1f34350b
====================================================
jacob2022s@gmail.com
ethan2016s
帖子: 50
注册时间: 2015-10-17 19:04
系统: ubuntu win7

Re: ubuntu16.04.1安装rt3070网卡后,无网络

#19

帖子 ethan2016s » 2017-03-07 18:18

在askubuntu上找了半天,还是不知道怎么解决?,,上面的帖子和回复基本都是2012年的,可能ubuntu16.04上不适用,我编译了几个从github上下载的rt3070的包,都是编译出错,,为什么linux kernel 不集成rt3070的驱动了?都很多年了,rt3070的网卡出来都好多年了,我在windows7下上网速度都是几百KB,在ubuntu下因为这个rt2800usb驱动下上网只有30多KB,linux的更新慢....
====================================================
jacob2022s@gmail.com
ethan2016s
帖子: 50
注册时间: 2015-10-17 19:04
系统: ubuntu win7

Re: ubuntu16.04.1安装rt3070网卡后,无网络

#20

帖子 ethan2016s » 2017-03-07 18:26

这个错误怎么解决,我再粘帖以下错误,编译时产生的,包是在github上下载的..

================
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/jacob/Documents/无线网卡驱动/RT3070_Linux_STA_V2.5.0.3-master/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/jacob/Documents/无线网卡驱动/RT3070_Linux_STA_V2.5.0.3-master/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1420: recipe for target '_module_/home/jacob/Documents/无线网卡驱动/RT3070_Linux_STA_V2.5.0.3-master/os/linux' failed
make[1]: *** [_module_/home/jacob/Documents/无线网卡驱动/RT3070_Linux_STA_V2.5.0.3-master/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-64-generic'
Makefile:356: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
====================================================
jacob2022s@gmail.com
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04.1安装rt3070网卡后,无网络

#21

帖子 poloshiao » 2017-03-07 18:51

sudo ifconfig enp8s0
enp8s0 Link encap:Ethernet HWaddr 54:ab:3a:47:f2:a5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17
有線網卡
沒有任何數據包 流通
沒有獲得分配 IPv4 或 IPv6

你沒有使用 有線網卡 ?
如果確定暫時不用
建議
從 Bios 暫時把有線網卡 關閉 (設為 disabled)
以免它來搗亂
ethan2016s
帖子: 50
注册时间: 2015-10-17 19:04
系统: ubuntu win7

Re: ubuntu16.04.1安装rt3070网卡后,无网络

#22

帖子 ethan2016s » 2017-03-07 18:54

按照百度上的这篇文章下载了2.6版本的还是同样编译出错,这篇文章是2016年9月的,
http://zhidao.baidu.com/question/145014 ... 97500.html

=====================================================
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/home/jacob/Documents/无线网卡驱动/rt3070/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/jacob/Documents/无线网卡驱动/rt3070/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1420: recipe for target '_module_/home/jacob/Documents/无线网卡驱动/rt3070/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux' failed
make[1]: *** [_module_/home/jacob/Documents/无线网卡驱动/rt3070/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-64-generic'
Makefile:388: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
jacob@jacob-Mai-II:~/Documents/无线网卡驱动/rt3070/DPO_RT5572_LinuxSTA_2.6.1.3_2
0121022$
====================================================
jacob2022s@gmail.com
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu16.04.1安装rt3070网卡后,无网络

#23

帖子 poloshiao » 2017-03-07 19:09

sudo lshw -C net
logical name: wlp7s0
logical name: wlx008a1f34350b
sudo route -n -v
0.0.0.0 192.168.0.1 0.0.0.0 UG 600 0 0 wlx008a1f34350b
10.42.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp7s0
192.168.0.0 0.0.0.0 255.255.255.0 U 600 0 0 wlx008a1f34350b
這個 子網 10.42.0.0 是你設定的嗎 ?
ethan2016s
帖子: 50
注册时间: 2015-10-17 19:04
系统: ubuntu win7

Re: ubuntu16.04.1安装rt3070网卡后,无网络

#24

帖子 ethan2016s » 2017-03-07 19:19

我是在百度搜索时发现这篇文章,所以安装了mt7601,安装mt7601过程中没有出错,可是在lsmod中没有出现rt2870的mod.
这篇文章的标题是rt3070,安装rt3070的,这个是2015年回答的,
Hitsugaya198 按照这位老兄的答案操作的,安装完后在有 /etc/Wireless/RT2870STA/RT2870STA.dat
/lib/firmware 下有rt2870.bin
可是,lsmod只有rt2800 ,联网还是用的rt2800 , 如果blacklist rt2800usb,重启后就没有网络了..
----------------------------------------
http://askubuntu.com/questions/641724/h ... ess-driver
====================================================
jacob2022s@gmail.com
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: ubuntu16.04.1安装rt3070网卡后,无网络

#25

帖子 vickycq » 2017-03-07 19:47

ethan2016s 写了:为什么linux kernel 不集成rt3070的驱动了?都很多年了,rt3070的网卡出来都好多年了
Linux 内核中 rt3070 的“正式”驱动就是 rt2800usb。rt2800usb 支持从 rt2870 到 rt5572 的一系列方案。
rt2x00 系列 usb 网卡驱动包括 rt73usb, rt2500usb, rt2800usb。
关于 rt3070 使用 rt2800usb 的性能问题,这一篇 https://bugzilla.redhat.com/show_bug.cgi?id=913631 提到禁用 802.11n 模式可有改善。由于 rt2800usb 驱动不支持禁用 802.11n 模式,您可能需要在无线 AP 中禁用 802.11n 模式。
ethan2016s 写了:我编译了几个从github上下载的rt3070的包,都是编译出错
一般厂商提供的驱动都有一个时效性问题。一般来讲,厂商不再提供支持后就会有热心网友出来接盘,realtek 的几款流行方案都是这样。看来 rt3070 的 Linux 用户实在太少,以至于网上很难搜到时新的信息。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
回复