The driver 390.141 fails when compiling for kernel 5.11 while it does work for 5.8, all on Ubuntu 20.10. All users of 390 driver doing an upgrade will run into this and it is not easy to revert. I have reported the error at NVIDIA driver 390 does not install or build with kernel 5.11.0 · Issue #1639 · pop-os/pop · GitHub and a way to go back to a working situation. Can somebody help to move this forward? Thanks.
what exactly happens is this:
In file included from /var/lib/dkms/nvidia/390.141/build/nvidia/nv.c:13:
/var/lib/dkms/nvidia/390.141/build/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 /
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
In file included from /var/lib/dkms/nvidia/390.141/build/nvidia/nv-frontend.c:13:
/var/lib/dkms/nvidia/390.141/build/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 */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv-instance.o] Error 1
make[2]: *** Waiting for unfinished jobs…
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv-gpu-numa.o] Error 1
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv.o] Error 1
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv-frontend.o] Error 1
make[1]: *** [Makefile:1820: /var/lib/dkms/nvidia/390.141/build] Error 2
make[1]: Leaving directory ‘/home/hm/KERNEL/linux-5.11.15’
make: *** [Makefile:81: modules] Error 2
so far the compile log
then while installing:
Building for architecture x86_64
Building initial module for 5.11.15-hmich-tl-frt-2.57
Error! Bad return status for module build on kernel: 5.11.15-hmich-tl-frt-2.57 (x86_64)
Consult /var/lib/dkms/nvidia/390.141/build/make.log for more information.
dpkg: error processing package nvidia-dkms-390 (–configure):
installed nvidia-dkms-390 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-390:
nvidia-driver-390 depends on nvidia-dkms-390 (<= 390.141-1); however:
Package nvidia-dkms-390 is not configured yet.
nvidia-driver-390 depends on nvidia-dkms-390 (>= 390.141); however:
Package nvidia-dkms-390 is not configured yet.
](https://web.facebook.com/groups/6268759357/user/100004532289619/?__cft__[0]=AZX1_EZ78Kt4TpgiQ8dZqxU7QQkWCcRhK1SGEQi7kKthW9aS3lk2J3Pd0bysJiuYo-lj-u4tB7VzLSelYWs6IK_-d9ET77WHnSzhhu0T6gdul3xpIElSGhZtNz5qeBkN9CY&__tn__=<%2CP-R)