awesometic / realtek-r8125-dkms

A DKMS package for easy use of Realtek r8125 driver, which supports 2.5 GbE.
GNU General Public License v2.0
361 stars 68 forks source link

Troubles with the PTP installation #58

Open artemokky opened 3 months ago

artemokky commented 3 months ago

I have Linux 6.5.0 Ubuntu 22.04.1. I'm trying to install r8125 via autorun.sh , pre-configuring the PTP options on y. The Internet connection works fine, but PTP support is not recognized (the network card supports the IEEE 1588 standard, ethtool says the opposite).

$ sudo ./autorun.sh

Check old driver and unload it. rmmod r8125 Build the module and install /bin/sh: 1: VER: not found warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using: gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 Skipping BTF generation for /home/n/Desktop/realtek-r8125-dkms-9.013.02-2/src/r8125.ko due to unavailability of vmlinux Warning: modules_install: missing 'System.map' file. Skipping depmod. DEPMOD 6.5.0-45-generic load module r8125 Updating initramfs. Please wait. update-initramfs: Generating /boot/initrd.img-6.5.0-45-generic W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_6_ta.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_6_sos.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_sjt_mec2.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_sjt_mec.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_9_4_3_rlc.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_9_4_3_mec.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/sdma_4_4_2.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes.bin for module amdgpu W: Possible missing firmware /lib/firmware/amdgpu/vcn_4_0_3.bin for module amdgpu Completed.

And

$ sudo dmesg | grep r8125 [ 1.698589] r8125: loading out-of-tree module taints kernel. [ 1.698596] r8125: module verification failed: signature and/or required key missing - tainting kernel [ 1.700047] r8125 Ethernet controller driver 9.013.02-NAPI loaded [ 1.700078] r8125 0000:07:00.0: enabling device (0000 -> 0003) [ 1.715857] r8125: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625. [ 1.717902] r8125 Copyright (C) 2024 Realtek NIC software team nicfae@realtek.com [ 3.020290] r8125 0000:07:00.0 enp7s0: renamed from eth0 [ 10.147886] r8125: enp7s0: link up

Dont have any idea what's wrong(

ewaldc commented 1 month ago

Is your issue with PTP ? Or are you struggling to build/run this kernel module ? The problem with Skipping BTF generation on Ubuntu is generally due to missing vmlinux in /usr/lib/modules/`uname -r`/build/. See here. Anyhow, despite the signiture issues your module has loaded and you could test PTP. PS. I have not been able to validate PTP, would be interesting to see your results.