Cant get RTL8125 Realtek driver working on version 20.04

13,099

Solution 1

In my case the r8168 didn't work with the Gigabyte B550 Aorus Elite motherboard. So what I did was:

I also downloaded the driver from the realtek website at https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software but I had to connect my mobile phone via usb and share the internet connection with the desktop in order to download the 2.5G Ethernet LINUX driver r8125 for kernel up to 5.6

From a Terminal window run:

sudo apt install r8168-dkms (this package was needed in order to run the r8125-90004.01 diver script with no errors)

cd /home/username/Downloads

cd r8125-90004.01

sudo chmod +x autorun.sh

sudo ./autorun.sh

sudo reboot

Please keep in mind that, after a kernel update a re-install of the RTL8125 is nedeed. So it's a good ideia to keep the folder r8125-90004.01 in Downloads.

Solution 2

I have now resolved the issue.

In the end I downloaded the “GBE Ethernet LINUX driver r8168 for kernel up to 5.6” driver from the Realtek website, instead of the 2.5GB driver and running the ./autorun.sh command as root worked.

Share:
13,099

Related videos on Youtube

modicum
Author by

modicum

Updated on September 18, 2022

Comments

  • modicum
    modicum over 1 year

    I have installed Ubuntu 20.04 on a new PC and originally managed to get the RTL8125 NIC driver working by installing the Realtek driver. However after an update it has stopped working and I am unable to get it working again.

    The output of sudo lshw -C network is:

    *-network UNCLAIMED

       description: Ethernet controller
       product: RTL8125 2.5GbE Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:06:00.0
       version: 05
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list
       configuration: latency=0
       resources: ioport:f000(size=256) memory:fcd00000-fcd0ffff memory:fcd10000-fcd13fff
    

    The output from lspci -knn | grep Eth -A3 is:

    06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05)
        DeviceName: RTL8111E Giga LAN
        Subsystem: Gigabyte Technology Co., Ltd RTL8125 2.5GbE Controller [1458:e000]
        Kernel modules: r8169
    

    I have downloaded the driver from the realtek website at https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

    and followed the instructions in the README file. However when I run the command sudo ./autorun.sh I get the error:

    Check old driver and unload it.
    Build the module and install
    make[3]: *** No rule to make target 'information'. Stop.
    make[2]: *** [Makefile:340: __build_one_by_one] Error 2
    make[1]: *** [Makefile:167: clean] Error 2
    make: *** [Makefile:48: clean] Error 2
    

    I am fairly new to Linux so I don't understand what this error means, so any help would be much appreciated

    • Pilot6
      Pilot6 over 3 years
      Most likely you rin the command from a wrong directory.
    • Advanced
      Advanced over 2 years
      Exact same problem here with a freshly installed instance ubuntu 20.04 on an Asus PN51. wifi works at least
    • sancho.s ReinstateMonicaCellio
      sancho.s ReinstateMonicaCellio over 2 years
      @Advanced - So what is it you want to fix? What is the problem, output messages, etc.? It would be helpful if you edited the post with your extra info.
  • Pilot6
    Pilot6 over 3 years
    r8168-dkms is unrelated. You needed dkms.
  • modicum
    modicum over 3 years
    Thanks very much, this worked for me
  • Pilot6
    Pilot6 over 3 years
    Then please accept your answer, not the incorrect one.
  • crackerwilli
    crackerwilli about 3 years
    <Linux device driver for Realtek Ethernet controllers> This is the Linux device driver released for RealTek RTL8125 2.5Gigabit Ethernet controllers with PCI-Express interface. <Requirements> - Kernel source tree (supported Linux kernel 2.6.x and 2.4.x) - For linux kernel 2.4.x, this driver supports 2.4.20 and latter. - Compiler/binutils for kernel compilation
  • crackerwilli
    crackerwilli about 3 years
    I use r8125-9.005.01, too
  • sdittmar
    sdittmar over 2 years
    The op already had the "build-essential" package installed. The reported error was a result of make running. Another common error that requires the "build-essential" package is "make: not found". But that was not the case here...
  • Admin
    Admin almost 2 years