You are not logged in.

#1 2022-10-13 22:57:35

sup_dawg
Member
Registered: 2022-10-13
Posts: 3

[Solved] nvidia-390xx-dkms breaks with 6.0.1 linux kernal

After updating my Linux kernel My NVIDIA drivers stopped working. I can't reinstall the required NVIDIA drivers

The error

==> dkms install --no-depmod nvidia/390.154 -k 6.0.1-arch1-1
Error! Bad return status for module build on kernel: 6.0.1-arch1-1 (x86_64)

This is the command I used

 yay -S nvidia-390xx nvidia-390xx-dkms 

full output

yay -S nvidia-390xx nvidia-390xx-dkms
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  nvidia-390xx-390.154-1
[Aur Make:1]  nvidia-390xx-utils-390.154-1 (nvidia-390xx-dkms)

==> Remove make dependencies after install? [y/N] y
  2 nvidia-390xx-utils (nvidia-390xx-dkms)   (Installed) (Build Files Exist)
  1 nvidia-390xx                             (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> A
:: Deleting (1/2): /home/michaelkik/.cache/yay/nvidia-390xx-utils
:: Deleting (2/2): /home/michaelkik/.cache/yay/nvidia-390xx
:: (1/2) Downloaded PKGBUILD: nvidia-390xx
:: (2/2) Downloaded PKGBUILD: nvidia-390xx-utils
  2 nvidia-390xx-utils (nvidia-390xx-dkms)   (Installed) (Build Files Exist)
  1 nvidia-390xx                             (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> N
:: (1/2) Parsing SRCINFO: nvidia-390xx-utils (nvidia-390xx-dkms)
:: (2/2) Parsing SRCINFO: nvidia-390xx
==> Making package: nvidia-390xx 390.154-1 (Thu 13 Oct 2022 06:54:12 PM EDT)
==> Retrieving sources...
==> Making package: nvidia-390xx-utils 390.154-1 (Thu 13 Oct 2022 06:54:14 PM EDT)
==> Retrieving sources...
  -> Found nvidia-drm-outputclass.conf
  -> Found nvidia-390xx-utils.sysusers
  -> Found nvidia-390xx.rules
  -> Downloading NVIDIA-Linux-x86_64-390.154.run...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 80.5M  100 80.5M    0     0  27.2M      0  0:00:02  0:00:02 --:--:-- 27.2M
  -> Found kernel-4.16.patch
==> Validating source files with b2sums...
    nvidia-drm-outputclass.conf ... Passed
    nvidia-390xx-utils.sysusers ... Passed
    nvidia-390xx.rules ... Passed
    NVIDIA-Linux-x86_64-390.154.run ... Passed
    kernel-4.16.patch ... Passed
==> Making package: nvidia-390xx-utils 390.154-1 (Thu 13 Oct 2022 06:54:19 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found nvidia-drm-outputclass.conf
  -> Found nvidia-390xx-utils.sysusers
  -> Found nvidia-390xx.rules
  -> Found NVIDIA-Linux-x86_64-390.154.run
  -> Found kernel-4.16.patch
==> Validating source files with b2sums...
    nvidia-drm-outputclass.conf ... Passed
    nvidia-390xx-utils.sysusers ... Passed
    nvidia-390xx.rules ... Passed
    NVIDIA-Linux-x86_64-390.154.run ... Passed
    kernel-4.16.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-390.154
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 390.154...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
patching file kernel/common/inc/nv-linux.h
patching file kernel/conftest.sh
Hunk #1 succeeded at 2073 (offset 17 lines).
==> Sources are ready.
==> Making package: nvidia-390xx-utils 390.154-1 (Thu 13 Oct 2022 06:54:31 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Entering fakeroot environment...
==> Starting package_nvidia-390xx-utils()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "nvidia-390xx-utils"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_opencl-nvidia-390xx()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "opencl-nvidia-390xx"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_nvidia-390xx-dkms()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "nvidia-390xx-dkms"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: nvidia-390xx-utils 390.154-1 (Thu 13 Oct 2022 06:54:39 PM EDT)
==> Cleaning up...
[sudo] password for michaelkik: 
loading packages...
warning: nvidia-390xx-dkms-390.154-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-390xx-dkms-390.154-1

Total Installed Size:  27.12 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                       [######################################################################] 100%
(1/1) checking package integrity                                                                                     [######################################################################] 100%
(1/1) loading package files                                                                                          [######################################################################] 100%
(1/1) checking for file conflicts                                                                                    [######################################################################] 100%
(1/1) checking available disk space                                                                                  [######################################################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove nvidia/390.154
:: Processing package changes...
(1/1) reinstalling nvidia-390xx-dkms                                                                                 [######################################################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod nvidia/390.154 -k 6.0.1-arch1-1
Error! Bad return status for module build on kernel: 6.0.1-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/390.154/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/390.154 -k 6.0.1-arch1-1' exited 10
==> Making package: nvidia-390xx 390.154-1 (Thu 13 Oct 2022 06:55:16 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Sources are ready.
==> Making package: nvidia-390xx 390.154-1 (Thu 13 Oct 2022 06:55:18 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Sign command: /usr/lib/modules/6.0.1-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /home/michaelkik/.cache/yay/nvidia-390xx/src/nvidia/390.154/source -> /usr/src/nvidia-390.154

Building module:
Cleaning build area...
'make' -j4 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.0.1-arch1-1 modules..............(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.0.1-arch1-1 (x86_64)
Consult /home/michaelkik/.cache/yay/nvidia-390xx/src/nvidia/390.154/build/make.log for more information.
==> ERROR: A failure occurred in build().
    Aborting...
checking dependencies...

Packages (1) nvidia-390xx-dkms-390.154-1

Total Removed Size:  27.12 MiB

:: Do you want to remove these packages? [Y/n] 
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove nvidia/390.154
:: Processing package changes...
(1/1) removing nvidia-390xx-dkms                                                                                     [######################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
 -> error making: nvidia-390xx

Last edited by sup_dawg (2022-10-13 23:11:23)

Offline

#2 2022-10-13 22:59:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,085

Re: [Solved] nvidia-390xx-dkms breaks with 6.0.1 linux kernal

Have you read the AUR page?

This shouldn't be a surprise, old modules will often fail to build with new kernels.

Offline

#3 2022-10-13 23:11:45

sup_dawg
Member
Registered: 2022-10-13
Posts: 3

Re: [Solved] nvidia-390xx-dkms breaks with 6.0.1 linux kernal

thanks that worked

Offline

#4 2022-10-14 13:53:43

kaari52
Member
Registered: 2022-10-14
Posts: 2

Re: [Solved] nvidia-390xx-dkms breaks with 6.0.1 linux kernal

sup_dawg wrote:

thanks that worked

Hi,

how did you got it working? I tried using patch but got same error for nvidia-390xx-dkms.

Offline

#5 2022-10-14 14:07:53

sup_dawg
Member
Registered: 2022-10-13
Posts: 3

Re: [Solved] nvidia-390xx-dkms breaks with 6.0.1 linux kernal

I just git clone the repo from gitlab. I was able to build it with no problems

Offline

#6 2022-10-14 14:22:46

kaari52
Member
Registered: 2022-10-14
Posts: 2

Re: [Solved] nvidia-390xx-dkms breaks with 6.0.1 linux kernal

Thanks,

Got it working. Tried first patch aur git repo, gitlabs repo worked.

Feel stupid.

Offline

#7 2022-11-06 23:13:00

arkades
Member
Registered: 2019-02-23
Posts: 6

Re: [Solved] nvidia-390xx-dkms breaks with 6.0.1 linux kernal

Please tell me I am the only one for whom

sudo dkms install --no-depmod nvidia/390.154 -k 6.0.6-arch1-1

does not work.


The ships hung in the sky in much the same way that bricks don't. - Douglas Adams

Offline

Board footer

Powered by FluxBB