View previous topic :: View next topic |
Author |
Message |
saito Apprentice
Joined: 12 Jun 2021 Posts: 197
|
Posted: Sun Oct 13, 2024 12:09 pm Post subject: x11-drivers/nvidia-drivers failed to be loaded[SOLVED] |
|
|
Hi friends,
I have built a new Gentoo system for a Laptop with a Nvidia quadro P5200 GPU with a successful installation of `x11-drivers/nvidia-drivers` of version,
Code: | eix -I nvidia
[I] x11-drivers/nvidia-drivers
Available versions: [M]390.157(0/390) 470.256.02-r1(0/470) 525.147.05-r1(0/525) 535.183.01-r1(0/535) [M]~550.40.76(0/vulkan) 550.107.02-r1(0/550) 550.120(0/550) ~560.35.03-r1(0/560) {+X dist-kernel kernel-open +modules modules-compress modules-sign persistenced powerd +static-libs +strip +tools wayland ABI_X86="32 64"}
Installed versions: 550.120(0/550)(15:04:39 10/13/24)(X modules static-libs strip tools wayland -dist-kernel -kernel-open -modules-compress -modules-sign -persistenced -powerd ABI_X86="64 -32")
Homepage: https://www.nvidia.com/download/index.aspx
Description: NVIDIA Accelerated Graphics Driver |
but this nvidia driver is failed to be loaded,
Code: | 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. |
I had queried the latest https://us.download.nvidia.com/Windows/Quadro_Certified/551.61/551.61-win10-win11-nvidia-rtx-quadro-release-notes.pdf, the P5200 is still supported in the list of those drivers. But
Code: | sudo modprobe nvidia
Password:
modprobe: ERROR: could not find module by name='nvidia'
modprobe: ERROR: could not insert 'nvidia': Unknown symbol in module, or unknown parameter (see dmesg) |
while I found
Code: | find /lib/modules/6.6.52-gentoo/ -type f -name nvidia.ko
/lib/modules/6.6.52-gentoo/video/nvidia.ko |
and
Code: | eselect kernel list
Available kernel symlink targets:
[1] linux-6.6.51-gentoo-dist
[2] linux-6.6.52-gentoo * |
Here is the emerge --info, https://bpa.st/LPIA, the ".config" for kernel compatible with nvidia had followed the official doc, https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers. The `installkernel` is also configured with the recommended USE flag from latest offcial documents to built this new Gentoo system as
Code: | eix -I installkernel
[I] sys-kernel/installkernel
Available versions: 48-r1 {dracut efistub grub refind systemd systemd-boot ugrd uki ukify}
Installed versions: 48-r1(03:25:26 10/12/24)(dracut grub -efistub -refind -systemd -systemd-boot -ugrd -uki -ukify)
Homepage: https://github.com/projg2/installkernel-gentoo https://wiki.gentoo.org/wiki/Installkernel
Description: Gentoo fork of installkernel script from debianutils |
I am fixing this issue. Please teach me with your experience and patience.
Thanks!
Last edited by saito on Wed Oct 16, 2024 6:37 am; edited 1 time in total |
|
Back to top |
|
|
saito Apprentice
Joined: 12 Jun 2021 Posts: 197
|
Posted: Sun Oct 13, 2024 2:12 pm Post subject: |
|
|
I found some kenerl issue which not coverd by my manual menuconfigure. |
|
Back to top |
|
|
netfab Veteran
Joined: 03 Mar 2005 Posts: 1958 Location: 127.0.0.1
|
Posted: Sun Oct 13, 2024 2:14 pm Post subject: |
|
|
Hi,
From your emerge --info :
Quote: |
Portage 3.0.65 (python 3.12.6-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-13, glibc-2.39-r6, 6.6.52-gentoo-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.52-gentoo-gentoo-dist-x86_64-Intel-R-_Xeon-R-_E-2176M_CPU_'@'_2.70GHz-with-glibc2.39
|
Your kernel name seems strange to me. Do you use gentoo-sources ? |
|
Back to top |
|
|
saito Apprentice
Joined: 12 Jun 2021 Posts: 197
|
Posted: Sun Oct 13, 2024 2:30 pm Post subject: |
|
|
Hi netfab
Thanks for your attention!
Yes, you are correct, I use the "gentoo-sources" as eselect kernel but booted with the one built by "gentoo-kernel". I had built a new kernel manually with the official document for nvidia modules, but I had not noticed that the grub still boots the old ones by default,
I am not familiar with the kernel install toolkit `installkernel`, which is new to me.
It remind me that the manual built one in the `gentoo-sources` which can not be booted correctly originally, I test it's still failed to be booted.
saito |
|
Back to top |
|
|
saito Apprentice
Joined: 12 Jun 2021 Posts: 197
|
Posted: Sun Oct 13, 2024 2:44 pm Post subject: |
|
|
I have test if my old kernel source could fix this issue.
It results in bootable and nvidia-smi performed normally, but there are gcc-13 warnings and touch pad failure etls. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22818
|
Posted: Sun Oct 13, 2024 2:53 pm Post subject: |
|
|
Your output told you to check dmesg. What does that show? |
|
Back to top |
|
|
saito Apprentice
Joined: 12 Jun 2021 Posts: 197
|
Posted: Sun Oct 13, 2024 3:08 pm Post subject: |
|
|
Hi Hu,
With the old kernel booted, `nvidia-smi` can communicated with the GPU at present, here is the `dmesg`, https://bpa.st/MUGQ. This kernel is ported from a Gentoo Server with Nvidia GPU, but I want to switch back to the latest stable official kernel. |
|
Back to top |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 445 Location: Nijmegen
|
Posted: Mon Oct 14, 2024 11:34 am Post subject: |
|
|
netfab wrote: | Hi,
From your emerge --info :
Quote: |
Portage 3.0.65 (python 3.12.6-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-13, glibc-2.39-r6, 6.6.52-gentoo-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.52-gentoo-gentoo-dist-x86_64-Intel-R-_Xeon-R-_E-2176M_CPU_'@'_2.70GHz-with-glibc2.39
|
Your kernel name seems strange to me. Do you use gentoo-sources ? |
This happens when you run 'make localmodconfig' while the system is booted with a distribution kernel. It takes the CONFIG_LOCALVERSION from /proc/config.gz. _________________ OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
saito Apprentice
Joined: 12 Jun 2021 Posts: 197
|
Posted: Mon Oct 14, 2024 12:00 pm Post subject: |
|
|
Nowa,
Thanks for your attention. I have switched to the Gentoo Server kernel from a stable Device, with
Code: | Linux gentooH 6.1.67-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Sat Dec 23 15:35:01 HKT 2023 x86_64 Intel(R) Xeon(R) E-2176M CPU @ 2.70GHz GenuineIntel GNU/Linux |
The rest issue would I config is
Code: | dmesg | grep ERROR
[ 6.506430] i915 0000:00:02.0: [drm] *ERROR* Failed to probe lspcon
[ 6.920478] i915 0000:00:02.0: [drm] *ERROR* Failed to probe lspcon
[ 6.920480] i915 0000:00:02.0: [drm] *ERROR* LSPCON init failed on port D
[ 9.151842] i915 0000:00:02.0: [drm] *ERROR* Failed to probe lspcon
[ 9.151844] i915 0000:00:02.0: [drm] *ERROR* LSPCON init failed on port D
[ 9.815161] i915 0000:00:02.0: [drm] *ERROR* Failed to probe lspcon
[ 9.815163] i915 0000:00:02.0: [drm] *ERROR* LSPCON init failed on port D
[ 63.433104] i915 0000:00:02.0: [drm] *ERROR* Failed to probe lspcon
[ 63.433107] i915 0000:00:02.0: [drm] *ERROR* LSPCON init failed on port D
[16006.747829] i915 0000:00:02.0: [drm] *ERROR* Failed to probe lspcon
[16006.747831] i915 0000:00:02.0: [drm] *ERROR* LSPCON init failed on port D |
Please Give some advice for kernel config or else, the driver
Code: | eix xf86-video-intel
[I] x11-drivers/xf86-video-intel |
had been emerged with this kernel.
Here is
Code: | eix -I drm
[I] x11-libs/libdrm
Available versions: 2.4.122-r1^t ~2.4.123-r1^t **9999*l^t {doc test tools udev valgrind ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" VIDEO_CARDS="amdgpu exynos freedreno intel nouveau omap radeon tegra vc4 vivante vmware"}
Installed versions: 2.4.122-r1^t(14:37:00 10/14/24)(udev -doc -test -tools -valgrind ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" VIDEO_CARDS="intel -amdgpu -exynos -freedreno -nouveau -omap -radeon -tegra -vc4 -vivante -vmware")
Homepage: https://dri.freedesktop.org/ https://gitlab.freedesktop.org/mesa/drm |
|
|
Back to top |
|
|
saito Apprentice
Joined: 12 Jun 2021 Posts: 197
|
Posted: Wed Oct 16, 2024 6:37 am Post subject: |
|
|
I have fixed this issue plausibly by improving the Server‘ Kernel. The rest issues detected is different from nvidia-driver dependencis, so I will restart a new topic in forum.
Thanks, Everyone. |
|
Back to top |
|
|
|