Problem installing NVIDIA 430.40 driver on Fedora 35

Can’t install NVIDIA 430.40 drivers on my Lenovo Ideapad 310ISK80UH who runs a NVidia GEForce 920M, heres the last lines of log message (39000 lines of log):

Blockquote
In file included from /tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/common/inc/nv-pgprot.h:17,
from /tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/common/inc/nv-linux.h:20,
from /tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/nvidia/linux_nvswitch.c:28:
./include/linux/mm.h:1819:64: note: expected ‘int *’ but argument is of type ‘struct vm_area_struct **’
1819 | struct vm_area_struct *vmas, int locked);
| ~^~
In file included from /tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/nvidia/nvlink_linux.c:30:
/tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/common/inc/nv-linux.h: At top level:
/tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory
118 | #include <asm/kmap_types.h> /
page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
compilation terminated.
make[2]: *** [scripts/Makefile.build:277: /tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/nvidia/nvlink_linux.o] Error 1
In file included from /tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/nvidia/linux_nvswitch.c:28:
/tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/common/inc/nv-linux.h: At top level:
/tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory
118 | #include <asm/kmap_types.h> /
page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
compilation terminated.
make[2]: *** [scripts/Makefile.build:277: /tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel/nvidia/linux_nvswitch.o] Error 1
make[2]: Target ‘__build’ not remade because of errors.
make[1]: *** [Makefile:1872: /tmp/selfgz6493/NVIDIA-Linux-x86_64-430.40/kernel] Error 2
make[1]: Target ‘modules’ not remade because of errors.
make[1]: Leaving directory ‘/usr/src/kernels/5.15.5-200.fc35.x86_64’
make: *** [Makefile:81: modules] Error 2
Blockquote

I’ve tried everything possible in this topic: (Fedora 35) NVIDIA Kernel Module Missing. Falling Back to Nouveau - Ask Fedora, this too How to delete Nouveau so I can install Nvidia driver - #14 by reno232 - Ask Fedora and used this code to remove Nouveau Removes the nouveau module/driver from Fedora 29+ · GitHub and no success at all.

Please, if someone could help me it should be nice! I can post the full log if you guys need it.

Thanks in advance

The 430 driver is much too old for the 5.15 kernel. Please use the latest 470 driver for your gpu.

Wow, theoretically my 920M only supports the 430.40 driver, but I’ve tried the 470 as you said and apparently it works! I’m doing some testes now

Thank you so much!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.