apollo icon indicating copy to clipboard operation
apollo copied to clipboard

The NVIDIA driver does not support real-time kernels.

Open Wsine opened this issue 8 years ago • 17 comments

I follow the apollo_1_5_hardware_system_installation_guide.md to install apollo with both apollo-kernel and nvidia-driver.

wsine@hostname:~/Downloads$ ls
linux-4.4.32-apollo-1.5.0.tar.gz  NVIDIA-Linux-x86_64-375.39.run 
wsine@hostname:~/Downloads$ uname -a
Linux sensetime-MS-7A71 4.4.32-apollo-2-RT #2 SMP PREEMPT RT Wed Sep 20 11:45:34 CST 2017 x86_64 x86_64 x86_64 GNU/Linux
wsine@hostname:~/Downloads$ sudo bash ./NVIDIA-Linux-x86_64-375.39.run --no-x-check -a -s
[sudo] password for weizhengyuan: 
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.39.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

ERROR: The kernel you are installing for is a PREEMPT_RT kernel!
       
       The NVIDIA driver does not support real-time kernels. If you 
       are using a stock distribution kernel, please install 
       a variant of this kernel that does not have the PREEMPT_RT 
       patch set applied; if this is a custom kernel, please 
       install a standard Linux kernel.  Then try installing the 
       NVIDIA kernel module again.


ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver
       download page at www.nvidia.com.

Wsine avatar Dec 19 '17 02:12 Wsine

If you did not run in real car,I suggest that there no need to install real-time kernel. But if you really need it ,try this file.

https://github.com/ApolloAuto/apollo-kernel/blob/master/linux/install-nvidia.sh

gengqx avatar Dec 19 '17 02:12 gengqx

i do run in a real car, thus i need it. it works, thanks very much. recommend to update the installation guide.

Wsine avatar Dec 19 '17 06:12 Wsine

@gengqx @Wsine Is the NVIDIA-Linux-x86_64-375.39.run in the file install-nvidia.sh you recommended above only matched with 1080Ti? If it is, how to install other Nvidia drivers(like GTX1050) in Apollo real-time kernels?

Jasonsun1993 avatar Dec 20 '17 02:12 Jasonsun1993

No,it works on others cards. My card is GTX1050Ti

gengqx avatar Dec 20 '17 03:12 gengqx

@Jasonsun1993 I tested on both 1050 and 1080 cards. they works.

Wsine avatar Dec 25 '17 01:12 Wsine

here is my another solution to this problem. https://github.com/ApolloAuto/apollo/issues/2595

turinglife avatar Jan 27 '18 09:01 turinglife

@turinglife Could you create a PR and checkin your solution in Q&A section like in here ? https://github.com/ApolloAuto/apollo/blob/master/docs/FAQs/Software_FAQs.md Thanks.

Capri2014 avatar Jan 27 '18 17:01 Capri2014

My laptop has GT540M(a little bit of old), after installed nvidia driver the following script based on RT kernel: https://github.com/ApolloAuto/apollo-kernel/blob/master/linux/install-nvidia.sh

The display resolution is not correct, the nvidia driver 390.25 is working fine before upgrade the RT kernel, is it normal with wrong display resolution?

BR, Thanks.

qianyichen1987 avatar Mar 11 '18 07:03 qianyichen1987

@Wsine @gengqx

Hi guys, I installed 4.4.32-apollo-2-RT (pre-built binary). And I executed the shell script to install the Nvidia driver (My GPU is GTX 1070Ti).

But the screen refresh rate is very very slow. And after executing "nvidia-smi", I got "no device found". Dmesg showed "NVRM: RmInitAdapter failed".

Besides, without the GPU and the nvidia driver, the screen refresh rate is also very slow when using apollo real time kernel.

Looking forward to your reply.

sjtugjy avatar May 30 '18 14:05 sjtugjy

@gengqx bit off topic , can you recommend any laptop that will be good to run apollo in the real car environment ?

linux-devil avatar Jun 07 '18 15:06 linux-devil

Hi, @gengqx @Wsine ,my card is 1050ti, I use the " install-nvidia.sh " and the terminal print: "successfully install" , but the screen resolution is still very very slow(the nvidia card still does not work). After executing "nvidia-smi", the terminal showed "failed to initialize NVML: Driver/library version mismatch". how should I do?

Looking forward to your reply.

zhangtianzi avatar Jul 10 '18 03:07 zhangtianzi

Hi guys,I have solved this problem. my Youdao Yun Note: solution

zhangtianzi avatar Jul 10 '18 12:07 zhangtianzi

Hi guys, I got the same error(not support real-time kernel) when installing NVIDIA RTX 2080Ti on ubuntu 18.04 with Apollo kernel(1.5.5), do you have any idea about this issue? thank you very much!

after running the command "sudo ./install-nvidia.sh", it printed "Done to install nvidia kernel driver and user libraries." then I ran "nvidia-smi" , but still didn't work. anybody have any suggestions?

WentaoWang-SH avatar Oct 18 '19 06:10 WentaoWang-SH

Hey guys, I tried to install the NVIDIA Driver 450.102.04 for the Quadro P920 (on the RT Kernel 5.4.84-rt47, Ubuntu 18.04) using the script that was mentioned above (install-nvidia.sh). As I'm not using the apollo-kernel I made some changes in the script as described here.

I always end up getting the same error when I try to run "nvidia-smi": "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running."

Is there anybody who managed to get their NVIDIA-Driver working without using the apollo-kernel?

EduardC96 avatar Jan 20 '21 06:01 EduardC96

Hey guys, I tried to install the NVIDIA Driver 450.102.04 for the Quadro P920 (on the RT Kernel 5.4.84-rt47, Ubuntu 18.04) using the script that was mentioned above (install-nvidia.sh). As I'm not using the apollo-kernel I made some changes in the script as described here.

I always end up getting the same error when I try to run "nvidia-smi": "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running."

Is there anybody who managed to get their NVIDIA-Driver working without using the apollo-kernel?

See https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_install_apollo_kernel.md for the updated docs on kernel.

Nvidia-smi can't communicate with nvidia driver was a common seen problem when installing Nvidia driver.

Try to disable the multiverse distribution component in /etc/apt/sources.list:

sudo add-apt-repository --remove multiverse

storypku avatar Jan 20 '21 09:01 storypku

Hey guys, I tried to install the NVIDIA Driver 450.102.04 for the Quadro P920 (on the RT Kernel 5.4.84-rt47, Ubuntu 18.04) using the script that was mentioned above (install-nvidia.sh). As I'm not using the apollo-kernel I made some changes in the script as described here. I always end up getting the same error when I try to run "nvidia-smi": "NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running." Is there anybody who managed to get their NVIDIA-Driver working without using the apollo-kernel?

See https://github.com/ApolloAuto/apollo/blob/master/docs/howto/how_to_install_apollo_kernel.md for the updated docs on kernel.

Nvidia-smi can't communicate with nvidia driver was a common seen problem when installing Nvidia driver.

Try to disable the multiverse distribution component in /etc/apt/sources.list:

sudo add-apt-repository --remove multiverse

Thank you very much, it's finally working now!

EduardC96 avatar Jan 20 '21 17:01 EduardC96

ecco un'altra mia soluzione a questo problema. #2595 ma questo ha capito di che parlano?

DarkPhoinix avatar Apr 28 '25 14:04 DarkPhoinix