Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG realtek R8168 not working #2646

Closed
ksd3971 opened this issue Aug 28, 2024 · 15 comments
Closed

BUG realtek R8168 not working #2646

ksd3971 opened this issue Aug 28, 2024 · 15 comments

Comments

@ksd3971
Copy link

ksd3971 commented Aug 28, 2024

请填写以下信息.
Please fill in the following information.

Install ENV: (You can find it in the boot interface.)

  • DMI: native
  • CPU: i7 12800h
  • NIC: 10ec:8125 (rev 05)/10ec:8168 (rev 15)

RR version: (You can find it in the update menu.)

  • RR: 24.8.4
  • addons: mountloader/cpuinfo/powersched/reboottoloader/addincards/acpid/dbgutils/storagepannel/sensor
  • modules: coretemp/ipv6/r8125/r8168
  • lkms: prod

DSM:

  • model: sa6400 native
  • version: 7.2.2 72803

Issue: realtek r8168 ethernet card not working

The R8168 network card driver did not work well in versions 24.8.0 and 24.8.4. So, I included the R8168 driver from version 24.4.8 into 24.8.0, and it worked fine. However, this method no longer works in 24.8.4

logs:

logs.tar.gz
serial.log

(## 因为 log中存在 SN/MAC 等一些敏感信息, 当提供完整文件时请自行抹除他们, 当然你也可以发送到我的邮箱. ##)
(## Because the log contains some sensitive information such as SN/MAC, please delete them when providing the complete file. Of course, you can also send it to my email. ##)
...

(请先看一下#173#175、#226的内容)
(Plz review the content of #173, #175, #226 first)
...

(如果你只是说 XXX 不能用, 什么详细信息也不提供, 我也只能说感谢你的反馈.)
(If you just say XXX doesn't work without providing any details, I can only say thank you for your feedback.)
...

@nillebor
Copy link

You can test "direct Boot" = true in Advance Settings

@ksd3971
Copy link
Author

ksd3971 commented Aug 28, 2024

I tried setting directboot = 'true', but it still doesn't work

You can test "direct Boot" = true in Advance Settings

@wjz304
Copy link
Contributor

wjz304 commented Aug 28, 2024

8125 工作正常吗?

@ksd3971
Copy link
Author

ksd3971 commented Aug 29, 2024

8125 工作正常吗?

it work's well on 24.8.x but don't works 24.7.x

@wjz304
Copy link
Contributor

wjz304 commented Aug 29, 2024

in ssh of DSM:

lsmod | grep r81
dmesg | grep r8168 -A 20
ifconfig
ls /sys/class/net/*

@ksd3971
Copy link
Author

ksd3971 commented Aug 29, 2024

in ssh of DSM:

lsmod | grep r81
dmesg | grep r8168 -A 20
ifconfig
ls /sys/class/net/*
@SA:/$ lsmod|grep r81
r8168                 593920  0
r8125                 241664  0
@SA:/$ dmesg |grep r8168 -A 20
@SA:/$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E2:69:70:58:8D
          inet addr:192.168.137.29  Bcast:192.168.137.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3025 errors:0 dropped:0 overruns:0 frame:0
          TX packets:314 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:573649 (560.2 KiB)  TX bytes:43234 (42.2 KiB)
          Interrupt:16

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:240 (240.0 B)  TX bytes:240 (240.0 B)

@SA:/$ ls /sys/class/net/*
/sys/class/net/eth0:
addr_assign_type    dev_port           name_assign_type      rtl_adv
address             dormant            napi_defer_hard_irqs  speed
addr_len            duplex             netdev_group          statistics
broadcast           flags              operstate             subsystem
carrier             gro_flush_timeout  phys_port_id          syno_eth_info
carrier_changes     ifalias            phys_port_name        testing
carrier_down_count  ifindex            phys_switch_id        tx_queue_len
carrier_up_count    iflink             power                 type
device              link_mode          proto_down            uevent
dev_id              mtu                queues

/sys/class/net/lo:
addr_assign_type    dormant            napi_defer_hard_irqs  statistics
address             duplex             netdev_group          subsystem
addr_len            flags              operstate             syno_eth_info
broadcast           gro_flush_timeout  phys_port_id          testing
carrier             ifalias            phys_port_name        tx_queue_len
carrier_changes     ifindex            phys_switch_id        type
carrier_down_count  iflink             power                 uevent
carrier_up_count    link_mode          proto_down
dev_id              mtu                queues
dev_port            name_assign_type   speed

/sys/class/net/sit0:
addr_assign_type    dormant            napi_defer_hard_irqs  statistics
address             duplex             netdev_group          subsystem
addr_len            flags              operstate             syno_eth_info
broadcast           gro_flush_timeout  phys_port_id          testing
carrier             ifalias            phys_port_name        tx_queue_len
carrier_changes     ifindex            phys_switch_id        type
carrier_down_count  iflink             power                 uevent
carrier_up_count    link_mode          proto_down
dev_id              mtu                queues
dev_port            name_assign_type   speed
@SA:/$

@wjz304
Copy link
Contributor

wjz304 commented Aug 29, 2024

ls /usr/lib/modules/r8* -al
modinfo  /usr/lib/modules/r8168.ko
rmmod r8168
insmod /usr/lib/modules/r8168.ko
dmesg | grep r8168 -A 20

@wjz304
Copy link
Contributor

wjz304 commented Aug 29, 2024

You can also try to load the extracted r8168.ko under the system
rmmod r8168
modinfo /r8168.ko
insmod /r8168.ko

@ksd3971
Copy link
Author

ksd3971 commented Aug 30, 2024

You can also try to load the extracted r8168.ko under the system rmmod r8168 modinfo /r8168.ko insmod /r8168.ko

I have tried everything you suggested, but it did not work.

I tried using r8168.ko version 24.5.0 this time, and it worked.

I still don't understand why this works.

image
Something is different, but I’m not sure what.

SynologyNAS> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E2:69:70:58:8D
          inet addr:192.168.137.204  Bcast:192.168.137.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7711 errors:0 dropped:0 overruns:0 frame:0
          TX packets:890 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10480179 (9.9 MiB)  TX bytes:73342 (71.6 KiB)
          Interrupt:16

eth1      Link encap:Ethernet  HWaddr 00:E2:69:70:58:8C
          inet addr:169.254.99.68  Bcast:169.254.255.255  Mask:255.255.0.0
          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:170 Base address:0x9000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  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)

SynologyNAS> modinfo /usr/lib/modules/r8168_2450.ko
filename:       /usr/lib/modules/r8168_2450.ko
version:        8.053.00-RSS
license:        GPL
description:    RealTek RTL-8168 Gigabit Ethernet driver (Compiled by RR for DSM)
author:         Realtek and the Linux r8168 crew <netdev@vger.kernel.org>
srcversion:     C9EE9120D3DBA243144CD19
alias:          pci:v00001186d00004300sv00001186sd00004B10bc*sc*i*
alias:          pci:v000010ECd00002600sv*sd*bc*sc*i*
alias:          pci:v000010ECd00002502sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008161sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008168sv*sd*bc*sc*i*
depends:
retpoline:      Y
name:           r8168
vermagic:       5.10.55+ SMP mod_unload
parm:           speed_mode:force phy operation. Deprecated by ethtool (8). (uint)
parm:           duplex_mode:force phy operation. Deprecated by ethtool (8). (uint)
parm:           autoneg_mode:force phy operation. Deprecated by ethtool (8). (uint)
parm:           advertising_mode:force phy operation. Deprecated by ethtool (8). (uint)
parm:           dynamic_aspm:int
parm:           aspm:Enable ASPM. (int)
parm:           s5wol:Enable Shutdown Wake On Lan. (int)
parm:           s5_keep_curr_mac:Enable Shutdown Keep Current MAC Address. (int)
parm:           use_dac:Enable PCI DAC. Unsafe on 32 bit PCI slot. (int)
parm:           timer_count:Timer Interrupt Interval. (int)
parm:           eee_enable:Enable Energy Efficient Ethernet. (int)
parm:           hwoptimize:Enable HW optimization function. (ulong)
parm:           s0_magic_packet:Enable S0 Magic Packet. (int)
parm:           dynamic_aspm_packet_threshold:Dynamic ASPM packet threshold. (int)
parm:           disable_wol_support:Disable PM support. (int)
parm:           debug:Debug verbosity level (0=none, ..., 16=all) (int)

@ksd3971 ksd3971 closed this as completed Aug 30, 2024
@wjz304 wjz304 reopened this Aug 31, 2024
@wjz304
Copy link
Contributor

wjz304 commented Aug 31, 2024

You load it yourself first, and then you need to confirm some things, but I'm busy these days and don't have much time.

@wjz304
Copy link
Contributor

wjz304 commented Sep 6, 2024

#2769

@q331723516
Copy link

in ssh of DSM:

lsmod | grep r81
dmesg | grep r8168 -A 20
ifconfig
ls /sys/class/net/*

dsm:
image
image
RR:
image
image

@wjz304
Copy link
Contributor

wjz304 commented Sep 8, 2024

test this
r8168.zip

@wjz304
Copy link
Contributor

wjz304 commented Sep 11, 2024

#2225

@wjz304
Copy link
Contributor

wjz304 commented Oct 24, 2024

无人反馈,本issue关闭

@wjz304 wjz304 closed this as completed Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants