awesometic / realtek-r8152-dkms

A DKMS package for easy use of Realtek r8152 driver, which supports Realtek USB NICs including RTL8156 2.5 GbE.
GNU General Public License v2.0
63 stars 14 forks source link

realtek-r8152 dkms broken after kernel upgrade #18

Open bp0 opened 7 months ago

bp0 commented 7 months ago

Using the debian package realtek-r8152-dkms_2.17.1-3_amd64.deb with Proxmox 8.1 om a Dell Optiplex 3050 Micro.

After a kernel update, the r8152 USB driver failed to load with the message:

r8152: disagrees about version of symbol module_layout

Output of dkms-status:

realtek-r8152/2.17.1, 6.5.11-8-pve, amd64: installed
realtek-r8152/2.17.1, 6.5.13-1-pve, x86_64: installed

Fixed by:

apt remove realtek-r8152
dpkg -i realtek-r8152-dkms_2.17.1-3_amd64.deb

It is headless so it is a bit of a hassle to fix without network.

naz9ul commented 7 months ago

Always install the new kernel headers with the new proxmox kernel, that Will help !

bp0 commented 7 months ago

It seems the new headers were installed along with the new kernel but something got confused about what the arch was called. After re-install dkms-status shows:

realtek-r8152/2.17.1, 6.5.13-1-pve, amd64: installed

Notice that it is back to amd64 instead of x86_64.

awesometic commented 7 months ago

With the new kernel, it needs to be compiled again for the signature of the module. Re-installing the package you did performs this job, so maybe it might work rebuilding using dkms command instead of reinstalling the whole package.

Generally amd64 is treated as the same architecture to x86_64, that's just how it calls I believe.. 🤔

If the issue solved, please close this one 😄