Realtek RTL8125B 2.5G LAN on Centos 8.3

Issues related to configuring your network
Post Reply
Posts: 1
Joined: 2020/12/23 23:00:01

Realtek RTL8125B 2.5G LAN on Centos 8.3

Post by TimH » 2020/12/23 23:07:07

Hi -

I am trying to get my realtek network adapter working on Centos 8.3.

Code: Select all

lspci |grep Realtek
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)

Code: Select all

uname -a
Linux c8 4.18.0-240.1.1.el8_3.x86_64 #1 SMP Thu Nov 19 17:20:08 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
I downloaded the latest driver 2.5G Ethernet LINUX driver r8125 for kernel up to 5.6 ( version 9.004.01) from the realtek support page and running the autorun script to compile the module.

Unfortunately it comes to an compile error and I am stuck.

Code: Select all


Check old driver and unload it.
Build the module and install
/tmp/driver/r8125-9.004.01/src/r8125_n.c:10870:31: error: initialization of ‘void (*)(struct net_device *, unsigned int)’ from incompatible pointer type ‘void (*)(struct net_device *)’ [-Werror=incompatible-pointer-types]
         .ndo_tx_timeout     = rtl8125_tx_timeout,
/tmp/driver/r8125-9.004.01/src/r8125_n.c:10870:31: note: (near initialization for ‘rtl8125_netdev_ops.<anonymous>.ndo_tx_timeout’)
cc1: some warnings being treated as errors
make[3]: *** [scripts/ /tmp/driver/r8125-9.004.01/src/r8125_n.o] Error 1
make[2]: *** [Makefile:1544: _module_/tmp/driver/r8125-9.004.01/src] Error 2
make[1]: *** [Makefile:159: modules] Error 2
make: *** [Makefile:41: modules] Error 2
Google search didn't had any successful solutions so I am hoping finding here the right answer.
Any hints are appreciated.


Post Reply

Return to “CentOS 8 - Networking Support”