๐ Kernel 6.1 and the NVIDIA 470 driver
๐ก Newskategorie: Linux Tipps
๐ Quelle: reddit.com
Hello, I know that there were already problems with the NVIDIA driver and kernel 6.0, where the video was not initialized, supposedly there was already a patch for that.
I just wanted to comment that in kernel 6.1 there is also a problem with that specific driver, and I don't know how to proceed when something like this appears, I'll just leave the log of when I tried to install the driver in kernel 6.1.6
Maybe it's just a bug on my machine, and you can see something I can't (Advice, I'm a newbie with these things).
PD: There is a line in the log that says can't find file to patch at input line 16.
Maybe there is the problem?
Edit: My specs: Linux Gentoo AMD64, NVIDIA GEFORCE 710
[32m * [39;49;00mPackage: x11-drivers/nvidia-drivers-470.161.03:0/470 [32m * [39;49;00mRepository: gentoo [32m * [39;49;00mMaintainer: ionen@gentoo.org soap@gentoo.org [32m * [39;49;00mUSE: X abi_x86_64 amd64 driver elibc_glibc kernel_linux static-libs tools userland_GNU [32m * [39;49;00mFEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox [32m*[0m Determining the location of the kernel source code [32m*[0m Found kernel source directory: [32m*[0m /usr/src/linux [32m*[0m Found sources for kernel version: [32m*[0m 6.1.6-gentoo-x86_64 [32m*[0m Checking for suitable kernel configuration options ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [33;01m*[0m Detected potential configuration issues with used kernel: [33;01m*[0m CONFIG_FB_SIMPLE: is set, recommended to disable and switch to FB_EFI or [33;01m*[0m FB_VESA as it currently may be broken with >=kernel-5.18.13 + NVIDIA: [33;01m*[0m https://github.com/NVIDIA/open-gpu-kernel-modules/issues/341 [33;01m*[0m (feel free to ignore this if it works for you) [33;01m*[0m CONFIG_SYSFB_SIMPLEFB: is set, this may prevent FB_EFI or FB_VESA [33;01m*[0m from providing a working tty console display (ignore if unused). >>> Unpacking source... >>> Unpacking NVIDIA-Linux-x86_64-470.161.03.run to /var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/work >>> Unpacking nvidia-installer-470.161.03.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/work >>> Unpacking nvidia-modprobe-470.161.03.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/work >>> Unpacking nvidia-persistenced-470.161.03.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/work >>> Unpacking nvidia-settings-470.161.03.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/work >>> Unpacking nvidia-xconfig-470.161.03.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/work >>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/work >>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/work ... [32m*[0m Applying nvidia-drivers-470.141.03-clang15.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32m*[0m Applying nvidia-modprobe-390.141-uvm-perms.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32m*[0m Applying nvidia-settings-390.144-desktop.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32m*[0m Applying nvidia-settings-390.144-no-gtk2.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32m*[0m Applying nvidia-settings-390.144-raw-ldflags.patch ... [A[72C [34;01m[ [32;01mok[34;01m ][0m [32m*[0m [32m=============================================================================[0m [32m*[0m Applying user patches from /etc/portage/patches ... [32m*[0m Applying 470-kernel-6.0.patch ... can't find file to patch at input line 16 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From 17bed78791d6f311c83ff1794d085b18c9f89730 Mon Sep 17 00:00:00 2001 |From: Joan Bruguera <joanbrugueram@gmail.com> |Date: Wed, 3 Aug 2022 00:56:57 +0200 |Subject: [PATCH] Tentative fix for NVIDIA 470.141.03 driver for Linux 6.0-rc1 | |--- | nvidia-drm/nvidia-drm-helper.c | 5 +++++ | nvidia/nv-acpi.c | 5 ++++- | nvidia/nv.c | 3 ++- | 3 files changed, 11 insertions(+), 2 deletions(-) | |diff --git a/nvidia-drm/nvidia-drm-helper.c b/nvidia-drm/nvidia-drm-helper.c |index 3831180..fa03d51 100644 |--- a/nvidia-drm/nvidia-drm-helper.c |+++ b/nvidia-drm/nvidia-drm-helper.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 32 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/nvidia/nv-acpi.c b/nvidia/nv-acpi.c |index 2b7b988..76c36fa 100644 |--- a/nvidia/nv-acpi.c |+++ b/nvidia/nv-acpi.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored can't find file to patch at input line 48 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/nvidia/nv.c b/nvidia/nv.c |index ab7d17c..e313e2e 100644 |--- a/nvidia/nv.c |+++ b/nvidia/nv.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored [A[72C [34;01m[ [31;01m!![34;01m ][0m [31;01m*[0m ERROR: x11-drivers/nvidia-drivers-470.161.03::gentoo failed (prepare phase): [31;01m*[0m patch -p1 failed with /etc/portage/patches/x11-drivers/nvidia-drivers/470-kernel-6.0.patch [31;01m*[0m [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 136: Called src_prepare [31;01m*[0m environment, line 3759: Called default [31;01m*[0m phase-functions.sh, line 872: Called default_src_prepare [31;01m*[0m phase-functions.sh, line 948: Called __eapi8_src_prepare [31;01m*[0m environment, line 439: Called eapply_user [31;01m*[0m environment, line 1421: Called eapply '/etc/portage/patches/x11-drivers/nvidia-drivers/470-kernel-6.0.patch' [31;01m*[0m environment, line 1384: Called _eapply_patch '/etc/portage/patches/x11-drivers/nvidia-drivers/470-kernel-6.0.patch' [31;01m*[0m environment, line 1322: Called __helpers_die 'patch -p1 failed with /etc/portage/patches/x11-drivers/nvidia-drivers/470-kernel-6.0.patch' [31;01m*[0m isolated-functions.sh, line 112: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m die "$@" [31;01m*[0m [31;01m*[0m If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-470.161.03::gentoo'`, [31;01m*[0m the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-470.161.03::gentoo'`. [31;01m*[0m The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/temp/environment'. [31;01m*[0m Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/work' [31;01m*[0m S: '/var/tmp/portage/x11-drivers/nvidia-drivers-470.161.03/work'
[link] [comments] ...