Below is using a test system, but on production system, we have other DKMS drivers and they don't exhibit this issue.
Steps to reproduce (ensure to start with a system with older kernel):
Code: Select all
ubuntu@jammy-build01:~/peak-linux-driver-8.18.0$ make CC=gcc-12 NET=NETDEV_SUPPORT ISA=NO_ISA_SUPPORT PCC=NO_PCCARD_SUPPORT PCIEC=NO_PCIEC_SUPPORT DKMS=DKMS_SUPPORT
ubuntu@jammy-build01:~/peak-linux-driver-8.18.0$ sudo make CC=gcc-12 install_with_dkms
ubuntu@jammy-build01:~/peak-linux-driver-8.18.0$ dkms status
peak-linux-driver/8.18.0, 6.5.0-28-generic, x86_64: installed
ubuntu@jammy-build01:~/peak-linux-driver-8.18.0$ sudo apt update && sudo apt upgrade
ubuntu@jammy-build01:~/peak-linux-driver-8.18.0$ dkms status
peak-linux-driver/8.18.0, 5.15.0-107-generic, x86_64: installed
peak-linux-driver/8.18.0, 6.5.0-28-generic, x86_64: installed
Code: Select all
ubuntu@jammy-build01:~$ uname -a
Linux jammy-build01 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@jammy-build01:~$ dkms status
peak-linux-driver/8.18.0, 5.15.0-107-generic, x86_64: installed
peak-linux-driver/8.18.0, 6.5.0-28-generic, x86_64: installed
ubuntu@jammy-build01:~$ lsmod |grep pcan
ubuntu@jammy-build01:~$ modprobe pcan
modprobe: ERROR: ../libkmod/libkmod-module.c:838 kmod_module_insert_module() could not find module by name='pcan'
modprobe: ERROR: could not insert 'pcan': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: ERROR: ../libkmod/libkmod-module.c:990 command_do() Error running install command 'modprobe --ignore-install pcan' for module pcan: retcode 1
modprobe: ERROR: could not insert 'pcan': Invalid argument
Code: Select all
root@jammy-build01:/var/lib/dkms/peak-linux-driver# ls *
8.18.0:
5.15.0-107-generic 6.5.0-28-generic build source
kernel-5.15.0-107-generic-x86_64:
log module
kernel-6.5.0-28-generic-x86_64:
log module