1 |
Hi All, |
2 |
|
3 |
This is a known problem kernel uses r8169 ethernet firmware for r8168 chips |
4 |
and causes connectivity issues.Thanks gentoo there is a r8168 package in |
5 |
net-misc but i encountered a problem. |
6 |
|
7 |
James Le Cuirot <chewi@g.o>, Sat, 28 Apr 2018 00:09, commit ee232457 |
8 |
<https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee232457ed7bad1c3d62c4c509419086b6ea3a65> |
9 |
|
10 |
-CONFIG_CHECK="!R8169" |
11 |
-ERROR_R8169="${P} requires Realtek 8169 PCI Gigabit Ethernet adapter |
12 |
(CONFIG_R8169) to be DISABLED" |
13 |
|
14 |
emerge --ask net-misc/r8168 |
15 |
|
16 |
|
17 |
* Messages for package net-misc/r8168-8.045.08: |
18 |
* r8168-8.045.08 requires Realtek 8169 PCI Gigabit Ethernet adapter |
19 |
(CONFIG_R8169) to be DISABLED |
20 |
|
21 |
It seems not allow to build r8168 if kernel compiled with r8169 module.Do |
22 |
we need to re-compile kernel without r8169? |
23 |
After i disabled r8169 in /usr/src/linux-$(uname -r)/*.config* manually, |
24 |
build works. |
25 |
|
26 |
#CONFIG_R8169=m |
27 |
|
28 |
|
29 |
emerge --ask net-misc/r8168 |
30 |
|
31 |
|
32 |
lspci -v |
33 |
|
34 |
|
35 |
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. |
36 |
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) |
37 |
Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit |
38 |
Ethernet Controller |
39 |
Kernel driver in use: r8169 |
40 |
Kernel modules: r8169, r8168 |
41 |
|
42 |
modprobe -r r8169 |
43 |
> modprobe r8168 |
44 |
|
45 |
|
46 |
modprobe: ERROR: could not insert 'r8168': Required key not available |
47 |
|
48 |
[*] Module signature verification |
49 |
[*] Require modules to be validly signed |
50 |
[*] Automatically sign all modules |
51 |
Which hash algorithm should modules be signed with? (Sign |
52 |
modules with SHA-512) ---> |
53 |
|
54 |
|
55 |
I signed r8168 manually and disabled r8169: |
56 |
|
57 |
/usr/src/linux-$(uname -r)/scripts/sign-file sha512 /usr/src/linux-$(uname |
58 |
> -r)/certs/signing_key.pem /usr/src/linux-$(uname -r)/certs/signing_key.x509 |
59 |
> /lib/modules/$(uname -r)/net/r8168.ko |
60 |
|
61 |
|
62 |
modprobe r8168 |
63 |
|
64 |
|
65 |
|
66 |
> echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf # This is not |
67 |
> working for me something forcing to it load. |
68 |
|
69 |
|
70 |
GRUB_CMDLINE_LINUX_DEFAULT="modprobe.blacklist=r8169" #This is working way |
71 |
> to push r8168 instead of r8169 for me. |
72 |
|
73 |
|
74 |
grub-mkconfig -o /boot/grub/grub.cfg |
75 |
|
76 |
|
77 |
|
78 |
> dracut --force --regenerate-all |
79 |
|
80 |
|
81 |
lspci -v |
82 |
|
83 |
|
84 |
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. |
85 |
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) |
86 |
Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit |
87 |
Ethernet Controller |
88 |
Kernel driver in use: r8168 |
89 |
Kernel modules: r8169, r8168 |
90 |
|
91 |
dmesg | grep r8168 |
92 |
|
93 |
|
94 |
[ 3.951450] r8168: loading out-of-tree module taints kernel. |
95 |
[ 3.951732] calling init_module+0x0/0x1000 [r8168] @ 564 |
96 |
[ 3.951750] r8168 Gigabit Ethernet driver 8.045.08-NAPI loaded |
97 |
[ 3.967857] r8168: This product is covered by one or more of the |
98 |
following patents: US6,570,884, US6,115,776, and US6,327,625. |
99 |
[ 3.967861] r8168 Copyright (C) 2017 Realtek NIC software team < |
100 |
nicfae@×××××××.com> |
101 |
[ 3.967893] initcall init_module+0x0/0x1000 [r8168] returned 0 after |
102 |
15775 usecs |
103 |
[ 3.993330] r8168 0000:02:00.0 eno1: renamed from eth0 |
104 |
[ 808.484879] r8168: eno1: link up |
105 |
|
106 |
ifconfig |
107 |
|
108 |
|
109 |
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 |
110 |
inet 10.34.105.20 netmask 255.255.255.0 broadcast 10.34.105.255 |
111 |
inet6 fe80::f9e1:641f prefixlen 64 scopeid 0x20<link> |
112 |
ether 48:ba:4e txqueuelen 1000 (Ethernet) |
113 |
RX packets 408 bytes 119641 (116.8 KiB) |
114 |
RX errors 0 dropped 0 overruns 0 frame 0 |
115 |
TX packets 507 bytes 84037 (82.0 KiB) |
116 |
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
117 |
device interrupt 127 base 0x5000 |
118 |
|
119 |
It seems stable but i don't know why it is restricted for r8169 enabled |
120 |
kernel. |
121 |
Sincerely. |