[网卡驱动]RTL 8139 PCI网卡无法使用
Tofloor
poster avatar
fanzhixin
deepin
2019-07-10 14:35
Author
最近给PC加装了一个PCI网卡,想把他做为路由跑满我家宽带。

在Deepin里看不到第二个有线网卡。

lspci 能看到,见附件

Linux 小白,希望大家帮帮忙


Reply Favorite View the author
All Replies
1 / 2
To page
avatar
fanzhixin
deepin
2019-07-11 03:19
#1
在线等
Reply View the author
avatar
Feng Yu
deepin
2019-07-11 04:14
#2
本帖最后由 abcfy2 于 2019-7-10 20:15 编辑

lspci -nnvv。以代码的形式贴出来,不要截图。终端输出一律不要截图,这样对回答者非常不友好。一律使用代码形式贴出来
Reply View the author
avatar
fanzhixin
deepin
2019-07-11 14:55
#3
04:02.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter [10ec:8139] (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter [10ec:8139]
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- <ERR+ INTx-
        Interrupt: pin A routed to IRQ 18
        Region 0: I/O ports at 5000 [size=256]
        Region 1: Memory at e1620000 (32-bit, non-prefetchable) [size=256]
        [virtual] Expansion ROM at e1600000 [disabled] [size=128K]
        Capabilities:
        Kernel modules: 8139cp, 8139too
Reply View the author
avatar
fanzhixin
deepin
2019-07-11 14:56
#4
https://bbs.deepin.org/post/180464
lspci -nnvv。以代码的形式贴出来,不要截图。终端输出一律不要截图,这样对回答者非常不友好。一律使用代 ...

多谢提点,小白,还在学习中,请见谅!
Reply View the author
avatar
Feng Yu
deepin
2019-07-11 17:18
#5
本帖最后由 abcfy2 于 2019-7-11 09:20 编辑
https://bbs.deepin.org/post/180464
多谢提点,小白,还在学习中,请见谅!

尽量用代码的形式贴出来,回复框有一个是粘贴代码的,或者使用【code】【/code】(英文中括号)这样的标记文档直接填代码
这样的文本形式直接插入。

代码会使用等宽字符,几乎和终端显示效果一样,对命令行使用者友好。

粘贴文本有助于复制、搜索,还可以被搜索引擎抓取到帮助其他人,你只是图方便用截图,想帮你查问题的人也不方便,也不能帮助其他人
Reply View the author
avatar
Feng Yu
deepin
2019-07-11 17:36
#6
https://bbs.deepin.org/post/180464
04:02.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Eth ...

从这个输出看,似乎是内核已经有了这个驱动,但是有两个冲突的驱动模块 8139cp 和 8139too 同时被加载,尝试禁用一个。

  1. sudo rmmod -f 8139cp
  2. ip addr -a
Copy the Code


看看有没有多一个网卡?如果有的话,那么将一个模块永久禁用就可以了

  1. # 上面有用再执行这个
  2. echo "blacklist 8139cp" | sudo tee /etc/modprobe.d/blacklist.conf
Copy the Code


Reply View the author
avatar
翻过山峰看见云
deepin
2019-07-11 17:39
#7
我也是这个网卡,昨天晚上刚装的deepin,今天发现无线网卡不能用。也在找解决方法。
Reply View the author
avatar
aida
deepin
2019-07-11 17:39
#8
在终端执行

  1. sudo  modprobe -r 8139too && sudo modprobe 8139too
Copy the Code



这个8139的驱动已经是内核支持的了
Reply View the author
avatar
翻过山峰看见云
deepin
2019-07-11 18:50
#9

02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07)
        Subsystem: Lenovo RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [17aa:3860]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- <ERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 16
        Region 0: I/O ports at 4000 [size=256]
        Region 2: Memory at a4200000 (64-bit, non-prefetchable) [size=4K]
        Region 4: Memory at a4000000 (64-bit, prefetchable) [size=16K]
        Capabilities:
        Kernel driver in use: r8169
        Kernel modules: r8169

这个是lspci的输出,你给的这条命令执行也没报错,但也好像没用,设置网络里面只有有线网络没有无线网络,现在依然无法连WIFI。另外无线网卡应该是RTL810X/8139 Family。

Reply View the author
avatar
aida
deepin
2019-07-11 19:03
#10
https://bbs.deepin.org/post/180464
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/ ...

有线网卡驱动了,无线网卡lspci里面没有看到。你的pci网卡是有线网卡还是无线网卡?RTL 8139 是有线网卡,内核自带驱动的
Reply View the author
avatar
翻过山峰看见云
deepin
2019-07-12 00:45
#11
https://bbs.deepin.org/post/180464
有线网卡驱动了,无线网卡lspci里面没有看到。你的pci网卡是有线网卡还是无线网卡?RTL 8139 是有线网卡 ...

对不起,是我搞错了,这个确实是有线网卡,无线是另一个型号,github上找的驱动已经装上能用了,就是速度特别慢。
Reply View the author
avatar
fanzhixin
deepin
2019-07-12 04:56
#12
https://bbs.deepin.org/post/180464
尽量用代码的形式贴出来,回复框有一个是粘贴代码的,或者使用【code】【/code】(英文中括号)这样的标记文 ...

谢谢,以后回复多用文字
Reply View the author
avatar
fanzhixin
deepin
2019-07-12 04:57
#13
https://bbs.deepin.org/post/180464
从这个输出看,似乎是内核已经有了这个驱动,但是有两个冲突的驱动模块 8139cp 和 8139too 同时被加载, ...

我运行了你的命令,没有反应。我想会不会是因为我系统是64位系统的原因?
Reply View the author
avatar
fanzhixin
deepin
2019-07-12 04:58
#14

谢谢回复,运行你的命令,依然没有变化,还是一个网卡
Reply View the author
avatar
fanzhixin
deepin
2019-07-12 05:02
#15
https://bbs.deepin.org/post/180464
对不起,是我搞错了,这个确实是有线网卡,无线是另一个型号,github上找的驱动已经装上能用了,就是速度 ...

你哪里找到的驱动,能给我下吗
Reply View the author
avatar
Feng Yu
deepin
2019-07-12 05:12
#16
https://bbs.deepin.org/post/180464
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/ ...

Kernel driver in use: r8169

你这个应该是已经驱动成功了
Reply View the author
avatar
Feng Yu
deepin
2019-07-12 05:13
#17
https://bbs.deepin.org/post/180464
我运行了你的命令,没有反应。我想会不会是因为我系统是64位系统的原因? ...

和64位系统无关,你运行rmmod或者modprobe -r卸载掉模块之后,再用lspci -nnvv看看有没有内核使用驱动这样的选项
Reply View the author
avatar
fanzhixin
deepin
2019-07-12 14:21
#18
https://bbs.deepin.org/post/180464
和64位系统无关,你运行rmmod或者modprobe -r卸载掉模块之后,再用lspci -nnvv看看有没有内核使用驱动这 ...


都删除了,但没什么变化
  1. bill@bill-PC:~/Desktop$ sudo rmmod 8139too
  2. rmmod: ERROR: Module 8139too is not currently loaded
  3. bill@bill-PC:~/Desktop$ sudo rmmod 8139cp
  4. rmmod: ERROR: Module 8139cp is not currently loaded
Copy the Code
  1. 04:02.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter [10ec:8139] (rev 10)
  2.         Subsystem: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter [10ec:8139]
  3.         Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
  4.         Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR-
  5.         Interrupt: pin A routed to IRQ 18
  6.         Region 0: I/O ports at 5000 [size=256]
  7.         Region 1: Memory at e1620000 (32-bit, non-prefetchable) [size=256]
  8.         [virtual] Expansion ROM at e1600000 [disabled] [size=128K]
  9.         Capabilities:
  10.         Kernel modules: 8139cp, 8139too
Copy the Code
Reply View the author
avatar
Feng Yu
deepin
2019-07-12 17:20
#19
https://bbs.deepin.org/post/180464
都删除了,但没什么变化

都删除了是错的,你把所有的驱动都删了,那就完了
Reply View the author
avatar
fanzhixin
deepin
2019-07-12 21:26
#20
https://bbs.deepin.org/post/180464
都删除了是错的,你把所有的驱动都删了,那就完了

lspci -nnvv 网卡还在,是不是说明驱动还在?
而且重启后,这两个还会加载,还可以删。
Reply View the author
1 / 2
To page