nvidia dkms not support kernel when mannuly compile 5.15.65-rt49 / 5.10.140-rt73kernel

Asked by yijie zhu

Building module:
cleaning build area...(bad exit status: 2)
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.10.140-rt73 IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/5.10.140-rt73/build LD=/usr/bin/ld.bfd modules...(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-5.10.140-rt73 is not supported
Error! Bad return status for module build on kernel: 5.10.140-rt73 (x86_64)
Consult /var/lib/dkms/nvidia/510.85.02/build/make.log for more information.

And file /var/lib/dkms/nvidia/510.85.02/build/make.log reads:

Makefile:18: /Kbuild: No such file or directory
make[3]: *** No rule to make target '/Kbuild'. Stop.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu nvidia-graphics-drivers-515 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes, what is the output of the commands

uname -a
lsb_release -crid
apt policy nvidia-dkms-515 nvidia-dkms-510

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
yijie zhu (zhuyijie) said :
#3

Linux ascend-GE76-Raider-11UH 5.15.0-48-generic #54~20.04.1-Ubuntu SMP Thu Sep 1 16:17:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal

nvidia-dkms-510:
  Installed: 510.85.02-0ubuntu0.20.04.1
  Candidate: 510.85.02-0ubuntu0.20.04.1
  Version table:
 *** 510.85.02-0ubuntu0.20.04.1 500
        500 https://mirrors.ustc.edu.cn/ubuntu focal-updates/restricted amd64 Packages
        500 https://mirrors.ustc.edu.cn/ubuntu focal-security/restricted amd64 Packages
        100 /var/lib/dpkg/status
nvidia-dkms-515:
  Installed: (none)
  Candidate: 515.76-0ubuntu0.20.04.1
  Version table:
     515.76-0ubuntu0.20.04.1 500
        500 https://mirrors.ustc.edu.cn/ubuntu focal-proposed/restricted amd64 Packages
     515.65.01-0ubuntu0.20.04.1 500
        500 https://mirrors.ustc.edu.cn/ubuntu focal-updates/restricted amd64 Packages
        500 https://mirrors.ustc.edu.cn/ubuntu focal-security/restricted amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
yijie zhu (zhuyijie) said :
#4

@Manfred Hampl (m-hampl)

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

The information about the kernel that you are running is somewhat contradictory.

In the initial question you write about the 5.15.65-rt49 / 5.10.140-rt73 kernel, but now your output shows that you are running 5.15.0-48-generic. How does that fit together?

If you try installing nvidia-dkms-510 or nvidia-dkms-515 with the 5.15.0-48-generic kernel, does that work?

Additional remark: it is not advisable to have the focal-proposed repository bucket permanently enabled.

Revision history for this message
yijie zhu (zhuyijie) said :
#6

I mean now that the os kernel is 5.15.0-48-generic, a new rt kernel, such as 5.10.140-rt73, tried to be compiled from source code. At the compile stage, I meet a compile error, which says, ERROR (dkms apport): kernel package linux-headers-5.10.140-rt73 is not supported
Error! Bad return status for module build on kernel: 5.10.140-rt73 (x86_64). nvidia-dkms can be installed on current os (kernel 5.15.0-48-generic).

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

The message tells everything:

The kernel package linux-headers-5.10.140-rt73 is not supported by the NVidia software.

In my opinion this is a problem, for which NVidia is responsible and that cannot be changed by Ubuntu

For which purpose do you need a real-time kernel? I do not understand how that would fit to the need for a dedicated graphics driver.

Revision history for this message
yijie zhu (zhuyijie) said :
#8

A real-time kernel is required by robotics control software. It gets the error when building driver modules . I will post the question on nvidia forums.

Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#9

Can you help with this problem?

Provide an answer of your own, or ask yijie zhu for more information if necessary.

To post a message you must log in.