Ethernet driver unavailable (RTL8125)

Hello,
I'm fairly new to manjaro (I used it on a Raspberry Pi a few times) but now I've build a PC using it as the main OS.

My problem is that I was never able to connect via Ethernet (no WiFi build in) and I attemted a few fixes I found online but nothing worked out.

Network manager only shows: two times with different IP & Netmask
name: Io
IP-Adress: xxx (won't show it in public)
Netmask: xxx (won't show it in public)
Typ: Loopback
Status: Active

on my Raspberry Pi there are more connections shown.

When using this command:
inxi -Fxxxz --no-host
(recommended in another discussion)

I get:

Network:   
Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: N/A port: f000 bus ID: 06:00.0 
           chip ID: 10ec:8125

I would really appreciate any help, solutions.

My first post in this forum so there may be some formatting mistakes.

Which Kernel do you use?

can you post the complete output? I will also show which Kernel you use.

This adapter works with r8169 , but it requires a newer Kernel.

There are a couple of aur packages:

1 aur/r8125 9.003.05-0 [1+] [0.00%] [7 Jun 2020]
    r8125 kernel driver for linux
2 aur/r8125-dkms 9.003.05-0 [1+] [0.00%] [7 Jun 2020]
    r8125 kernel driver sources for linux

Obviously if you use the dkms route, you will need the kernel headers.

Surprisingly quick reactions, thank you.

  1. The complete output of inxi -Fxxxz --no-host
System:    Kernel: 5.6.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Desktop: KDE Plasma 5.18.5 
           tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Desktop System: ASUS product: N/A v: N/A serial: <filter> 
           Mobo: ASUSTeK model: TUF GAMING B550M-PLUS v: Rev X.0x serial: <filter> UEFI: American Megatrends 
           v: 0321 date: 05/13/2020 

CPU:       Topology: 6-Core model: AMD Ryzen 5 3600X bits: 64 type: MT MCP arch: Zen L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 91062 
           Speed: 2194 MHz min/max: 2200/3800 MHz boost: enabled Core speeds (MHz): 1: 2194 2: 2194 3: 2010 
           4: 2202 5: 2196 6: 2166 7: 2164 8: 2219 9: 2481 10: 2166 11: 2053 12: 2029 
Graphics:  Device-1: NVIDIA TU104 [GeForce RTX 2060] driver: nvidia v: 440.82 bus ID: 07:00.0 chip ID: 10de:1e89 
           Display: x11 server: X.Org 1.20.8 driver: nvidia compositor: kwin_x11 resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce RTX 2060/PCIe/SSE2 v: 4.6.0 NVIDIA 440.82 direct render: Yes 
Audio:     Device-1: NVIDIA TU104 HD Audio driver: snd_hda_intel v: kernel bus ID: 07:00.1 chip ID: 10de:10f8 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASUSTeK driver: snd_hda_intel 
           v: kernel bus ID: 09:00.4 chip ID: 1022:1487 
           Sound Server: ALSA v: k5.6.16-1-MANJARO 
Network:   Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: N/A port: f000 bus ID: 06:00.0 
           chip ID: 10ec:8125 
           IF-ID-1: enp9s0f3u4 state: unknown speed: N/A duplex: N/A mac: <filter> 
Drives:    Local Storage: total: 931.52 GiB used: 163.46 GiB (17.5%) 
           ID-1: /dev/nvme0n1 vendor: PNY model: CS3030 500GB SSD size: 465.76 GiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> rev: CS303226 scheme: GPT 
           ID-2: /dev/sda type: USB vendor: Toshiba model: MQ01UBD050 size: 465.76 GiB rotation: 5400 rpm 
           serial: <filter> scheme: MBR 
Partition: ID-1: / size: 448.50 GiB used: 19.80 GiB (4.4%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 45.1 C mobo: N/A gpu: nvidia temp: 36 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 29% 
Info:      Processes: 268 Uptime: 1h 10m Memory: 15.61 GiB used: 2.00 GiB (12.8%) Init: systemd v: 245 Compilers: 
           gcc: 10.1.0 alt: 8 Shell: bash v: 5.0.17 running in: konsole inxi: 3.0.37
  1. I will go to the AUR and see if it helps with the problem.

We aim to please :rofl:

You should update your system. It looks out of date.

Before you go the AUR way, you could try to manual load the module.

sudo modprobe r8169

If that also doesn't work, you might want to the your dmesg for errors. The AUR dkms package is only the last resort.

Update:
building r8125 9.003.05-0 failed couldn't find file or directory
/usr/src/linux/version and /lib/modules//build

I can show you the complete error message but it's in german.

If you really want to use the AUR packages, at least use the DKMS package. To build a Kernel module you need to install the headers package for all installed kernels. Also make sure you installed the base-devel group.

https://wiki.manjaro.org/index.php?title=AUR
https://wiki.archlinux.org/index.php/Arch_User_Repository

https://aur.archlinux.org/packages/r8125/

I tried building, same problems (both packages), but there are some comments in the above link that may help.

Just a couple of posts indicating blacklisting r8169 may help...

I'm now updating my system and modprobe didn't do anything.
Did a reboot - nothing changed.
Next update when the system is updated.

I also want to add that the OpenSoure Linux driver for RTL8125 is r8169

https://lwn.net/Articles/797806/

It is sine Kernel 5.3 part of the Kernel.

# Maintainer: Shen-Ta Hsieh <ibmibmibm(at)gmail(dot)com>
# Contributor: Shen-Ta Hsieh <ibmibmibm(at)gmail(dot)com>

_pkgbase=r8125
pkgname=(r8125 r8125-dkms)
pkgver=9.003.05
pkgrel=0
pkgdesc="r8125 kernel driver for linux"
arch=('x86_64')
url="https://www.realtek.com/"
license=('GPL2')
makedepends=(linux-headers)
source=("https://github.com/ibmibmibm/r8125/archive/${pkgver}.tar.gz"
        'dkms.conf')
sha256sums=('75196ec98afcefbb6706307104d32131a27abba24ac333633790264968d548d6'
            '7a6b42b6ebbd76ae3c40e10f824c2dae88448fab3ba074916b3be5c2b4bef448')

build() {
  tar -xf "${pkgver}.tar.gz"
  cd "${_pkgbase}-${pkgver}"/src
  #make -C "/lib/modules/$(</usr/src/linux/version)/build" M="$(pwd)" modules
  make -C "/lib/modules/$(uname -r)/build" M="$(pwd)" modules
}

package_r8125() {
  # Install
  msg2 "Starting make install..."
  install -Dt "${pkgdir}/usr/lib/modules/extramodules-ARCH/" -m644 "${_pkgbase}-${pkgver}/src/r8125.ko"
  find "${pkgdir}" -name '*.ko' -exec gzip -n {} +
}

package_r8125-dkms() {
  pkgdesc="r8125 kernel driver sources for linux"
  depends=('dkms')
  optdepends=('linux-headers: Build the module for Arch kernel'
              'linux-lts-headers: Build the module for LTS Arch kernel')
  provides=("8125=$pkgver")
  conflicts+=(r8125)
  # Copy dkms.conf
  install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Set name and version
  sed -e "s/@_PKGBASE@/${_pkgbase}/" \
      -e "s/@PKGVER@/${pkgver}/" \
      -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Copy sources (including Makefile)
  cp -r ${_pkgbase}-${pkgver}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
}

This PKGBUILD works.

1 Like

Updating the system the usual way didn't solve the problem.

sudo pacman-mirrors -f0
sudo pacman -Syyu

and @xircon could you may provide some context for that block of code, there's a reason why this is in Newbe Corner. :sweat_smile:

Create a directory, copy and paste the text into a file called PKGBUILD

In a terminal cd into the directory and run makepkg -si this will build and install the driver.

But first black list the r8169 driver (hang on I will find the instructions BRB).

:edit:

sudo echo "blacklist r8169" | sudo tee -a /etc/modprobe.d/blacklist.conf
reboot #(to test if it works)

If it doesn't work, delete /etc/modprobe.d/blacklist.conf - check it only contains the 8169 line first though :smiley:

  1. Blacklisting r8169 didn't do the trick.

  2. Where should the PKGBUILD be located (does it matter or is there a prefered location)?

just had a snack
now I'm back

Anywhere in your home, makes no difference.

Error message (translated):
dkms.conf wasn't found in build directory and isn't an url

Thing is I can't test as I do not have that adapter, but is dkms installed on your machine?

ls -lah
Alias tip: lh
total 408K
drwxr-xr-x   3 steve steve 4.0K Jul 12 12:37 .
drwxr-xr-x 549 steve steve  20K Jul 12 13:57 ..
-rw-r--r--   1 steve steve  87K Jul 12 12:30 9.003.05.tar.gz
-rw-r--r--   1 steve steve  360 Jul 12 12:30 dkms.conf
drwxr-xr-x   8 steve steve 4.0K Jul 12 14:32 .git
-rw-r--r--   1 steve steve 1.7K Jul 12 12:36 PKGBUILD
-rw-r--r--   1 steve steve  95K Jul 12 12:36 r8125-9.003.05-0-x86_64.pkg.tar.zst
-rw-r--r--   1 steve steve 179K Jul 12 12:37 r8125-dkms-9.003.05-0-x86_64.pkg.tar.zst
-rw-r--r--   1 steve steve  709 Jul 12 12:30 .SRCINFO

It seems to be in my build directory.

sudo pacman -S dkms linuxNNN-headers

sudo pacman -S dkms
workes but is already installed

adding linuxNNN-headers results in an not-found-error

but doesn't appear here

drwx------ 23 stevie stevie 4,0K 12. Jul 15:27 .
drwxr-xr-x  4 root   root   4,0K 10. Jul 06:50 ..
drwxr-xr-x  3 stevie stevie 4,0K 12. Jul 11:37 Arduino
drwxr-xr-x  3 stevie stevie 4,0K 12. Jul 11:37 .arduino15
-rw-------  1 stevie stevie  748 12. Jul 15:18 .bash_history
-rw-r--r--  1 stevie stevie   21 26. Mai 21:32 .bash_logout
-rw-r--r--  1 stevie stevie   57 26. Mai 21:32 .bash_profile
-rw-r--r--  1 stevie stevie 3,8K 26. Mai 21:32 .bashrc
drwxr-xr-x  2 stevie stevie 4,0K 10. Jul 06:56 Bilder
drwxr-xr-x 17 stevie stevie 4,0K 12. Jul 15:26 .cache
drwxr-xr-x 24 stevie stevie 4,0K 12. Jul 15:31 .config
-rw-r--r--  1 stevie stevie 4,8K 30. Okt 2017  .dir_colors
drwxr-xr-x  2 stevie stevie 4,0K 10. Jul 06:56 Dokumente
drwxr-xr-x  2 stevie stevie 4,0K 12. Jul 15:15 Downloads
drwxr-xr-x  3 stevie stevie 4,0K 12. Jul 15:19 EthDrivers
-rw-r--r--  1 stevie stevie 3,7K 30. Apr 14:13 .face
lrwxrwxrwx  1 stevie stevie    5 30. Apr 14:13 .face.icon -> .face
drwx------  3 stevie stevie 4,0K 12. Jul 12:16 .gnome
-rw-r--r--  1 stevie stevie  337 12. Jul 15:24 .gtkrc-2.0
drwxr-xr-x  3 stevie stevie 4,0K 12. Jul 11:37 .java
drwxr-xr-x  3 stevie stevie 4,0K 10. Jul 06:56 .kde4
drwxr-xr-x  3 stevie stevie 4,0K  6. Jun 10:06 .local
drwxr-xr-x  2 stevie stevie 4,0K 10. Jul 06:56 Musik
drwx------  4 stevie stevie 4,0K 11. Jul 18:13 .nv
drwxr-xr-x  2 stevie stevie 4,0K 10. Jul 06:56 Öffentlich
drwx------  3 stevie stevie 4,0K 11. Jul 18:15 .pki
drwxr-xr-x  2 stevie stevie 4,0K 10. Jul 18:58 Schreibtisch
drwxr-xr-x  2 stevie stevie 4,0K 12. Jul 15:36 .steam
lrwxrwxrwx  1 stevie stevie   31 12. Jul 15:27 .steampath -> /home/stevie/.steam/sdk32/steam
lrwxrwxrwx  1 stevie stevie   29 12. Jul 15:27 .steampid -> /home/stevie/.steam/steam.pid
-rw-r--r--  1 stevie stevie 1,7K 12. Jul 14:38 test
drwxr-xr-x  2 stevie stevie 4,0K 10. Jul 06:56 Videos
drwxr-xr-x  2 stevie stevie 4,0K 10. Jul 06:56 Vorlagen
drwxr-xr-x  3 stevie stevie 4,0K 12. Jul 11:39 .vscode-oss
-rw-------  1 stevie stevie   51 12. Jul 15:24 .Xauthority
-rwxr-xr-x  1 stevie stevie  100 30. Okt 2017  .Xclients
-rwxr-xr-x  1 stevie stevie 1,6K 30. Apr 14:13 .xinitrc
-rw-r--r--  1 stevie stevie 9,5K 13. Aug 2018  .zshrc

Forum kindly sponsored by