Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The NVIDIA driver does not support real-time kernels. #1872

Closed
Wsine opened this issue Dec 19, 2017 · 16 comments
Closed

The NVIDIA driver does not support real-time kernels. #1872

Wsine opened this issue Dec 19, 2017 · 16 comments
Labels
Module: Driver Indicates driver module related issues Type: Question Indicates that an issue or pull request needs more information

Comments

@Wsine
Copy link

Wsine commented Dec 19, 2017

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.

@gengqx
Copy link
Contributor

gengqx commented Dec 19, 2017

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

@Wsine
Copy link
Author

Wsine commented Dec 19, 2017

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

@Jasonsun1993
Copy link

@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?

@gengqx
Copy link
Contributor

gengqx commented Dec 20, 2017

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

@Wsine
Copy link
Author

Wsine commented Dec 25, 2017

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

@turinglife
Copy link
Contributor

here is my another solution to this problem.
#2595

@Capri2014
Copy link
Contributor

@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.

@qianyichen1987
Copy link

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.

@vlin17 vlin17 added Type: Question Indicates that an issue or pull request needs more information Module: Driver Indicates driver module related issues labels Mar 15, 2018
@sjtugjy
Copy link

sjtugjy commented May 30, 2018

@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.

@linux-devil
Copy link

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

@zhangtianzi
Copy link

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
Copy link

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

@WentaoWang-SH
Copy link

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?

@EduardC96
Copy link

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?

@storypku
Copy link
Contributor

storypku commented Jan 20, 2021

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

@EduardC96
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Driver Indicates driver module related issues Type: Question Indicates that an issue or pull request needs more information
Projects
None yet
Development

No branches or pull requests