Hi All,
I’m running F40 beta and I’m having difficulties getting the Nvidia drivers (from the RPM repos) loaded on my system. Secure Boot is enabled and I’m dualbooting W11. For what it’s worth, the exact same issue occurs on F39.
I’ve tried following both the RPM Fusion how-to (& the Secure Boot how-to) as well as this blog post, which are mostly the same, to no success.
Prior to following the guide(s), I enable the RPM Fusion repositories.
My graphics card is a 4080 SUPER and it’s reliant on the 550.x drivers from Nvidia.
For completeness, here is a run through of what I’ve done. Apologies if I’ve missed anything, or provided irrelevant information - I’m still finding my feet with this.
- Installed the required tools
sudo dnf install kmodtool akmods mokutil openssl
-
Generated a signing key
sudo kmodgenca -a -
Enrolled in MOK, then rebooted
sudo mokutil --import /etc/pki/akmods/certs/public_key.der
systemctl reboot
- Installed the Nvidia driver and waited 10-15 minutes for it to build
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
It looks like this is where the problems start. After waiting, modinfo shows no Nvidia module found.
modinfo -F version nvidia
modinfo: ERROR: Module nvidia not found.
Runing sudo akmods --force also shows the modules as failing to build.
Checking kmods exist for 6.8.4-300.fc40.x86_64 [ OK ]
Building and installing nvidia-kmod [FAILED]
Building rpms failed; see /var/cache/akmods/nvidia/550.67-1-for-6.8.4-300.fc40.x86_64.failed.log for details
Hint: Some kmods were ignored or failed to build or install.
You can try to rebuild and install them by by calling
'/usr/sbin/akmods --force' as root.
Last 20 lines from that failed.log file:
550.67-1-for-6.8.4-300.fc40.x86_64.failed.log
024/04/08 21:48:40 akmodsbuild: 1375 | void uvm_tools_record_access_counter(uvm_va_space_t *va_space,
2024/04/08 21:48:40 akmodsbuild: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024/04/08 21:48:40 akmodsbuild: /tmp/akmodsbuild.QYJ08LKV/BUILD/nvidia-kmod-550.67/_kmod_build_6.8.4-300.fc40.x86_64/nvidia-uvm/uvm_tools.c:2886:5: warning: no previous prototype for ‘uvm_tools_init’ [-Wmissing-prototypes]
2024/04/08 21:48:40 akmodsbuild: 2886 | int uvm_tools_init(dev_t uvm_base_dev)
2024/04/08 21:48:40 akmodsbuild: | ^~~~~~~~~~~~~~
2024/04/08 21:48:40 akmodsbuild: /tmp/akmodsbuild.QYJ08LKV/BUILD/nvidia-kmod-550.67/_kmod_build_6.8.4-300.fc40.x86_64/nvidia-uvm/uvm_tools.c:2947:6: warning: no previous prototype for ‘uvm_tools_exit’ [-Wmissing-prototypes]
2024/04/08 21:48:40 akmodsbuild: 2947 | void uvm_tools_exit(void)
2024/04/08 21:48:40 akmodsbuild: | ^~~~~~~~~~~~~~
2024/04/08 21:48:40 akmodsbuild: The bug is not reproducible, so it is likely a hardware or OS problem.
2024/04/08 21:48:40 akmodsbuild: make[3]: *** [scripts/Makefile.build:243: /tmp/akmodsbuild.QYJ08LKV/BUILD/nvidia-kmod-550.67/_kmod_build_6.8.4-300.fc40.x86_64/nvidia-uvm/nv-kthread-q.o] Error 1
2024/04/08 21:48:40 akmodsbuild: make[2]: *** [/usr/src/kernels/6.8.4-300.fc40.x86_64/Makefile:1939: /tmp/akmodsbuild.QYJ08LKV/BUILD/nvidia-kmod-550.67/_kmod_build_6.8.4-300.fc40.x86_64] Error 2
2024/04/08 21:48:40 akmodsbuild: make[1]: *** [Makefile:252: __sub-make] Error 2
2024/04/08 21:48:40 akmodsbuild: make[1]: Leaving directory ‘/usr/src/kernels/6.8.4-300.fc40.x86_64’
2024/04/08 21:48:40 akmodsbuild: make: *** [Makefile:85: modules] Error 2
2024/04/08 21:48:40 akmodsbuild: error: Bad exit status from /var/tmp/rpm-tmp.ed9bsL (%build)
2024/04/08 21:48:40 akmodsbuild:
2024/04/08 21:48:40 akmodsbuild: RPM build errors:
2024/04/08 21:48:40 akmodsbuild: Bad exit status from /var/tmp/rpm-tmp.ed9bsL (%build)
2024/04/08 21:48:40 akmodsbuild:
2024/04/08 21:48:40 akmods: Building rpms failed; see /var/cache/akmods/nvidia/550.67-1-for-6.8.4-300.fc40.x86_64.failed.log for details
Fedora sees my GPU, lspci | grep -i nvidia displays it.
The packages are definitely installed also. dnf list installed \*nvidia\
Installed Packages
akmod-nvidia.x86_64 3:550.67-1.fc40 @rpmfusion-nonfree
nvidia-gpu-firmware.noarch 20240312-1.fc40 @updates-testing
nvidia-modprobe.x86_64 3:550.67-1.fc40 @rpmfusion-nonfree
nvidia-persistenced.x86_64 3:550.67-1.fc40 @rpmfusion-nonfree
nvidia-settings.x86_64 3:550.67-1.fc40 @rpmfusion-nonfree
xorg-x11-drv-nvidia.x86_64 3:550.67-1.fc40 @rpmfusion-nonfree
xorg-x11-drv-nvidia-cuda.x86_64 3:550.67-1.fc40 @rpmfusion-nonfree
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:550.67-1.fc40 @rpmfusion-nonfree
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:550.67-1.fc40 @rpmfusion-nonfree
xorg-x11-drv-nvidia-libs.x86_64 3:550.67-1.fc40 @rpmfusion-nonfree
xorg-x11-drv-nvidia-power.x86_64 3:550.67-1.fc40 @rpmfusion-nonfree
Any advice here would be appreciated.