Bugzilla – Bug 1228145
nvidia driver wont load with debug kernel (6.9.9-1-debug)
Last modified: 2024-07-20 01:58:11 UTC
kernel: 6.9.9-1-debug I had reason to use the debug kernel to try and track down a recurring hang. When the debug kernel is loaded the nvidia drivers will not load. I tried to modprobe nvidia.ko and get this error modprobe: ERROR: could not insert 'nvidia': Unknown symbol in module, or unknown parameter (see dmesg) Nothing shows up in dmesg
Well. We don't provide packages for the -debug kernel flavor. I think we never did. nvidia-driver-G06.spec [...] %define x_flavors kdump um debug xen xenpae [...] %kernel_module_package %kmp_template %_builddir/nvidia-kmp-template -p %_sourcedir/preamble -f %_sourcedir/%kmp_filelist -x %x_flavors nvidia-open-driver-G06.spec [...] %define kernel_flavors default %ifnarch aarch64 %if !0%{?is_opensuse} %define kernel_flavors azure default %endif %else %define kernel_flavors 64kb default %endif [...]
Of course you can build it yourself by running their installer. https://www.nvidia.com/en-us/drivers/unix/ I think it has also an option to only build and install the kernel modules. $ sh ./NVIDIA-Linux-x86_64-550.100.run -A [...] -K, --kernel-modules-only Install the kernel modules only, and do not uninstall the existing driver. This is intended to be used to install kernel modules for additional kernels (in cases where you might boot between several different kernels). To use this option, you must already have a driver installed, and the version of the installed driver must match the version of these kernel modules. [...] I don't plan to add packages for this flavor. I think you're the first who asks for it and we build nvidia KMPs since almost 2 decades now.
What are KMP's? (pardon my ignorance)
I had yo uninstall nvidia G06 to a chance of this compiling but even after that i get this error MODPOST /tmp/selfgz3544335/NVIDIA-Linux-x86_64-550.100/kernel/Module.symvers ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'mutex_destroy' make[4]: *** [/usr/src/linux-6.9.9-1/scripts/Makefile.modpost:151: /tmp/selfgz3544335/NVIDIA-Linux-x86_64-550.100/kernel/Module.symvers] Error 1 make[4]: Target '__modpost' not remade because of errors. make[3]: *** [/usr/src/linux-6.9.9-1/Makefile:1887: modpost] Error 2 make[3]: Target 'modules' not remade because of errors. make[2]: *** [/usr/src/linux-6.9.9-1/Makefile:240: __sub-make] Error 2 make[2]: Target 'modules' not remade because of errors. make[2]: Leaving directory '/usr/src/linux-6.9.9-1-obj/x86_64/debug' make[1]: *** [Makefile:240: __sub-make] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux-6.9.9-1' make: *** [Makefile:85: modules] Error 2 -> Error. ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details. -> The command `cd kernel; /bin/make -k -j12 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/6.9.9-1-debug/source" SYSOUT="/lib/modules/6.9.9-1-debug/build" ` failed with the following output: make[1]: Entering directory '/usr/src/linux-6.9.9-1' make[2]: Entering directory '/usr/src/linux-6.9.9-1-obj/x86_64/debug' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (SUSE Linux) 13.3.0 You are using: cc (SUSE Linux) 13.3.0
Hmm. I'm not sure if one can build the modules against our -debug kernel. Last time I tried that is likely more than a decade ago.
(In reply to Eric Benton from comment #3) > What are KMP's? (pardon my ignorance) Kernel Module Package
I was looking at the nvidia-installer-log (attached) and other than a ton of warnings (which nvidia should never have allowed out the door) the only error that shows up is: ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'mutex_destroy' Thats not to say its the entry to a rabbit hole where you fix that one and another appears over and over and over
Created attachment 876169 [details] nvidia-installer.log