Installing RTl8156 ethernet drivers

  • Hi everyone,


    I am using OMV with a RTL8156 based USB-to-2.5GbE ethernet adapter.

    Unfortunately, my syslog is flooded with the same two messages:

    Code
    Jan 15 15:22:44 Spatz-NAS kernel: [16641.054209] cdc_ncm 4-2:2.0 enx00e04c68016b: 2500 mbit/s downlink 2500 mbit/s uplink
    Jan 15 15:22:44 Spatz-NAS kernel: [16641.310206] cdc_ncm 4-2:2.0 enx00e04c68016b: network connection: connected
    Jan 15 15:22:44 Spatz-NAS kernel: [16641.566204] cdc_ncm 4-2:2.0 enx00e04c68016b: 2500 mbit/s downlink 2500 mbit/s uplink
    Jan 15 15:22:44 Spatz-NAS kernel: [16641.822179] cdc_ncm 4-2:2.0 enx00e04c68016b: network connection: connected
    Jan 15 15:22:45 Spatz-NAS kernel: [16642.078202] cdc_ncm 4-2:2.0 enx00e04c68016b: 2500 mbit/s downlink 2500 mbit/s uplink
    Jan 15 15:22:45 Spatz-NAS kernel: [16642.334195] cdc_ncm 4-2:2.0 enx00e04c68016b: network connection: connected
    Jan 15 15:22:45 Spatz-NAS kernel: [16642.590197] cdc_ncm 4-2:2.0 enx00e04c68016b: 2500 mbit/s downlink 2500 mbit/s uplink
    Jan 15 15:22:45 Spatz-NAS kernel: [16642.846192] cdc_ncm 4-2:2.0 enx00e04c68016b: network connection: connected

    Besides that, the ethernet connection works fine.

    Even though the RTL8156 driver seems to be included in the latest kernels, some people on the internet recommend installing the latest driver from Realtek to keep the syslog from being flooded.

    I downloaded the r8152.53.56-2.14.0.tar from Realtek, but in it there's only a single file called "r8152.53.56-2.14.0" and nothing else. How can I install this driver on the system?


    Best regards,


    Spatz

  • KM0201

    Approved the thread.
  • What version of OMV are you running and do you know what kernel you're running? That info should all be on the "Dashboard" section of the webui

    Air Conditioners are a lot like PC's... They work great until you open Windows.


  • a single file called "r8152.53.56-2.14.0"

    I'd assume it to be an archive (.gz or .tar). Are you familiar with these tool to uncompress it?

    omv 5.5.23-1 (usul) on RPi4 with Kernel 5.10.x and WittyPi 3 RTC HAT

    2x 6TB HDD formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • The tar archive contains a directory, not a file.

    cd into the directory... typically there is the actual driver, and a read me file. Read the read me as it will often have details on how to proceed.

    Air Conditioners are a lot like PC's... They work great until you open Windows.


  • The extension is wrong on the downloaded file. It should be .tar.bz2. Here is what I did to compile it.


    Just do a make install after. Then you will need to add the module to the modules autoloader.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • What version of OMV are you running and do you know what kernel you're running? That info should all be on the "Dashboard" section of the webui

    OMV: 5.5.22-1 (Usul)

    Kernel: Linux 5.9.0-0.bpo.5-amd64


    Switching to 5.7.0-0.bpo.2-am64 in OMVextras did not solve the problem

    I'd assume it to be an archive (.gz or .tar). Are you familiar with these tool to uncompress it?

    The downloaded file is a .tar. When I open it with 7zip on Windows10, I see a single file. When I open that single file with a text editor, I can read lines of code, not some gibberish as it would be with an archive.


    Other files/folders are not visible, at least not with 7zip under Windows 10.

  • Well, if you look that driver is only for up to kernel 5.6.. .so you might be spinning your heels anyway (or maybe not)


    Honestly, I thought most of the new realtek drivers were in the backport kernel, which you seem to have.

    Air Conditioners are a lot like PC's... They work great until you open Windows.


  • if you look that driver is only for up to kernel 5.6.. .so you might be spinning your heels anyway (or maybe not)

    That is going to be fairly common with vendor drivers. Good reason to use the proxmox kernel.

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Well, if you look that driver is only for up to kernel 5.6.. .so you might be spinning your heels anyway (or maybe not)


    Honestly, I thought most of the new realtek drivers were in the backport kernel, which you seem to have.

    Yeah, I stuck to ryecoaaron's guide and "make" returned an error 2, stating it could not find a directory with my kernel version.

    Good to know that my other kernel 5.7 will not help, either.


    That is going to be fairly common with vendor drivers. Good reason to use the proxmox kernel.

    With the proxmox kernel, I need to run OMV an a VM, right?

  • With the proxmox kernel, I need to run OMV an a VM, right?

    No.

    Yeah, I stuck to ryecoaaron's guide and "make" returned an error 2, stating it could not find a directory with my kernel version.

    Good to know that my other kernel 5.7 will not help, either.

    You probably don't have the linux-headers installed. With the Debian kernel, just apt-get install linux-headers-amd64. WIth proxmox, apt-get install pve-headers

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Okay, I got the driver to compile after installing the proxmox kernel via OMV-extras.


    Now where should I move the r8152.ko, and what do I have to do that it gets automatically loaded on startup?


    EDIT: After installing linux-headers, the driver also compiles on kernel 5.9. make install returns this:

    Code
    rmmod r8152
    make -C /lib/modules/5.9.0-0.bpo.5-amd64/build M=/mnt/sdd2/r8152-2.14.0 INSTALL_MOD_DIR=kernel/drivers/net/usb modules_install
    make[1]: Verzeichnis „/usr/src/linux-headers-5.9.0-0.bpo.5-amd64“ wird betreten
    INSTALL /mnt/sdd2/r8152-2.14.0/r8152.ko
    DEPMOD 5.9.0-0.bpo.5-amd64
    Warning: modules_install: missing 'System.map' file. Skipping depmod.
    make[1]: Verzeichnis „/usr/src/linux-headers-5.9.0-0.bpo.5-amd64“ wird verlassen
  • make install should've copied it to the correct location. modprobe r8152 should tell you if it did.


    To make it load,


    echo "r8152" | sudo tee /etc/modules-load.d/r8152.conf

    omv 5.6.0 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.5.3
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • DerSpatz

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!