You are not logged in.

#1 2024-07-20 23:36:57

Artrix
Member
Registered: 2024-07-20
Posts: 18

[SOLVED] Nvidia modules not found after upgrading to new kernel

Hello,


I've recently been having troubles with my arch install after running pacman -Syu which upgraded my kernel from arch 6.9.9.arch1-1 to 6.9.10.arch1-1 (I updated linux-headers along with it). After I upgraded, I get the following in my log from the post install

[2024-07-20T15:43:01-0700] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
[2024-07-20T15:43:01-0700] [ALPM-SCRIPTLET] ==> Using default configuration file: '/etc/mkinitcpio.conf'
[2024-07-20T15:43:01-0700] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
[2024-07-20T15:43:01-0700] [ALPM-SCRIPTLET] ==> Starting build: '6.9.10-arch1-1'
[2024-07-20T15:43:01-0700] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2024-07-20T15:43:01-0700] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2024-07-20T15:43:01-0700] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2024-07-20T15:43:01-0700] [ALPM-SCRIPTLET]   -> Running build hook: [microcode]
[2024-07-20T15:43:01-0700] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2024-07-20T15:43:01-0700] [ALPM-SCRIPTLET]   -> Running build hook: [kms]
[2024-07-20T15:43:04-0700] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2024-07-20T15:43:04-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'xhci_pci'
[2024-07-20T15:43:04-0700] [ALPM-SCRIPTLET]   -> Running build hook: [keymap]
[2024-07-20T15:43:04-0700] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2024-07-20T15:43:04-0700] [ALPM-SCRIPTLET] ==> WARNING: consolefont: no font found in configuration
[2024-07-20T15:43:04-0700] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2024-07-20T15:43:05-0700] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2024-07-20T15:43:05-0700] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2024-07-20T15:43:05-0700] [ALPM-SCRIPTLET] ==> ERROR: module not found: 'nvidia'
[2024-07-20T15:43:05-0700] [ALPM-SCRIPTLET] ==> ERROR: module not found: 'nvidia_modeset'
[2024-07-20T15:43:05-0700] [ALPM-SCRIPTLET] ==> ERROR: module not found: 'nvidia_uvm'
[2024-07-20T15:43:05-0700] [ALPM-SCRIPTLET] ==> ERROR: module not found: 'nvidia_drm'
[2024-07-20T15:43:05-0700] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2024-07-20T15:43:05-0700] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
[2024-07-20T15:43:06-0700] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.
[2024-07-20T15:43:06-0700] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
[2024-07-20T15:43:06-0700] [ALPM-SCRIPTLET] ==> Using default configuration file: '/etc/mkinitcpio.conf'
[2024-07-20T15:43:06-0700] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux-fallback.img -S autodetect
[2024-07-20T15:43:06-0700] [ALPM-SCRIPTLET] ==> Starting build: '6.9.10-arch1-1'
[2024-07-20T15:43:06-0700] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2024-07-20T15:43:06-0700] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2024-07-20T15:43:07-0700] [ALPM-SCRIPTLET]   -> Running build hook: [microcode]
[2024-07-20T15:43:07-0700] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2024-07-20T15:43:07-0700] [ALPM-SCRIPTLET]   -> Running build hook: [kms]
[2024-07-20T15:43:09-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'ast'
[2024-07-20T15:43:13-0700] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2024-07-20T15:43:13-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'xhci_pci'
[2024-07-20T15:43:14-0700] [ALPM-SCRIPTLET]   -> Running build hook: [keymap]
[2024-07-20T15:43:14-0700] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2024-07-20T15:43:14-0700] [ALPM-SCRIPTLET] ==> WARNING: consolefont: no font found in configuration
[2024-07-20T15:43:14-0700] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2024-07-20T15:43:14-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'aic94xx'
[2024-07-20T15:43:14-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'bfa'
[2024-07-20T15:43:15-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'qed'
[2024-07-20T15:43:15-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'qla1280'
[2024-07-20T15:43:15-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'qla2xxx'
[2024-07-20T15:43:15-0700] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'wd719x'
[2024-07-20T15:43:16-0700] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2024-07-20T15:43:17-0700] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2024-07-20T15:43:17-0700] [ALPM-SCRIPTLET] ==> ERROR: module not found: 'nvidia'
[2024-07-20T15:43:17-0700] [ALPM-SCRIPTLET] ==> ERROR: module not found: 'nvidia_modeset'
[2024-07-20T15:43:17-0700] [ALPM-SCRIPTLET] ==> ERROR: module not found: 'nvidia_uvm'
[2024-07-20T15:43:17-0700] [ALPM-SCRIPTLET] ==> ERROR: module not found: 'nvidia_drm'
[2024-07-20T15:43:19-0700] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2024-07-20T15:43:19-0700] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
[2024-07-20T15:43:21-0700] [ALPM-SCRIPTLET] ==> WARNING: errors were encountered during the build. The image may not be complete.

After a reboot, my system would have a black screen and a blinking cursor. Later on, I downgraded back to 6.9.9, ran mkinitcpio -p linux with no problems, rebooted my system, and was greeted with an unresponsive emergency shell screen. (boot logs says failed to mount /boot because of a vfat error)

My mkinitcpio version is 39.2-2 if that helps.

Any tips to fix this would be greatly appreciated

Last edited by Artrix (2024-08-05 20:16:21)

Offline

#2 2024-07-21 02:59:36

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

What module package do you have installed?

Offline

#3 2024-07-21 06:01:59

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

I believe it’s 550 or 555, i’ll double check this in the morning.

Offline

#4 2024-07-21 18:38:34

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

This is my output for pacman -Qi nvidia and nvidia-utils

Name            : nvidia-dev-tkg
Version         : 550.40.65-254
Description     : Full NVIDIA drivers' package for all kernels on the system (drivers and shared utilities and libraries)
Architecture    : x86_64
URL             : http://www.nvidia.com/
Licenses        : custom:NVIDIA
Groups          : None
Provides        : nvidia=550.40.65  nvidia-tkg>=550.40.65
Depends On      : nvidia-utils-tkg>=550.40.65  libglvnd
Optional Deps   : linux-headers [installed]
                  linux-lts-headers: Build the module for LTS Arch kernel
Required By     : None
Optional For    : None
Conflicts With  : nvidia-96xx  nvidia-173xx  nvidia
Replaces        : None
Installed Size  : 66.53 MiB
Packager        : Unknown Packager
Build Date      : Sun Jul 14 15:05:42 2024
Install Date    : Sun Jul 14 15:12:45 2024
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : None

Name            : nvidia-dev-utils-tkg
Version         : 550.40.65-254
Description     : NVIDIA driver utilities and libraries for 'nvidia-tkg'
Architecture    : x86_64
URL             : http://www.nvidia.com/
Licenses        : custom:NVIDIA
Groups          : None
Provides        : nvidia-utils=550.40.65  nvidia-utils-tkg=550.40.65  vulkan-driver  opengl-driver  nvidia-libgl
Depends On      : libglvnd  mesa  vulkan-icd-loader
Optional Deps   : gtk2: nvidia-settings (GTK+ v2) [installed]
                  gtk3: nvidia-settings (GTK+ v3) [installed]
                  opencl-nvidia-tkg: OpenCL support [installed]
                  xorg-server [installed]
                  xorg-server-devel: nvidia-xconfig
                  egl-wayland-git: for alternative, more advanced Wayland library (libnvidia-egl-wayland.so)
Required By     : hyprland  lib32-nvidia-dev-utils-tkg  libglvnd  nvidia-dev-egl-wayland-tkg  nvidia-dev-settings-tkg  nvidia-dev-tkg  warp-terminal  wlroots0.17
Optional For    : ffmpeg  ffmpeg4.4  libvdpau  vulkan-icd-loader
Conflicts With  : nvidia-utils  nvidia-libgl
Replaces        : None
Installed Size  : 596.23 MiB
Packager        : Unknown Packager
Build Date      : Sun Jul 14 15:05:42 2024
Install Date    : Sun Jul 14 15:12:45 2024
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : None

Offline

#5 2024-07-21 19:07:07

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

So you have an old, beta version from a 3rd party package. You shouldn't be surprised you're having problems.

Forget the -tkg stuff, switch to normal Arch packages.

Offline

#6 2024-07-21 20:36:44

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

How would i do that?

pacman -Sy nvidia nvidia-utils ?

Also if its relevant i'm using wayland and hyprland

Offline

#7 2024-07-21 20:52:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

"pacman -Syu nvidia nvidia-utils", otherwise you're running risk to condict a partial update and installing an nvidia driver incompatible w/ your kernel.

Online

#8 2024-07-21 21:38:18

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Fixed after uninstalling all the nvidia-tkg packages and installing the official ones. Thanks!

Offline

#9 2024-07-27 22:03:25

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Hello, i’m reopening this because I’ve run into the exact same issue when upgrading to 6.10.1. Although this time it doesn’t seem to be related to my gpu. The kernel builds fine with no errors but still fails so mount /boot. Seems to happen every time I update.


I have updated linux-headers, and linux and ensured they’re both running the same version. I’ve also ran pacman-Syyuu several times to make sure everything is up to date.

If it’s important I am using BTRFS.

if anyone can help I will be extremely grateful.

Offline

#10 2024-07-28 06:55:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Your /boot partition is most likely vfat and the usual way to get to this point is to boot a kernel other than the installed one because the kernel was installed into the wrong location
(Either the boot partition while you're actually booting from the root partition or the /boot mountpoint while the boot partition wasn't mounted)

From the rescue shell (doing this from the iso is pointless) run

uname -a
cat /proc/cmdline

Edit:

If it’s important I am using BTRFS.

But not for the boot partition, are you? Are you mounting/booting some snapshot?

I’ve also ran pacman-Syyuu several times to make sure everything is up to date.

"man pacman", read up what the second "y" and "u" do and then STOP DOING THAT UNLESS YOU REALLY - and I mean **REALLY** -  HAVE TO!

Last edited by seth (2024-07-28 06:58:01)

Online

#11 2024-07-28 07:56:40

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

As I said in the original post, I cannot access the emergency shell. It just restarts my keyboard (the lights flash off and then back on) on every key press.

I am not using any kind of snapshot so no.

Regardless of if I did the usual Syu or Syyuu I get the same output. It was just to stress that everything is up to date. I will do some research on the differences and heed your warning.

But I am fairly sure that my versions are synced because if I run mkinitcpio -p linux I get a successful build and it logs out the correct version of the kernel.

Offline

#12 2024-07-28 08:18:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Boot the install iso, mount the installation into /mnt and check

pacman --root=/mnt -Qs kernel
file /mnt/boot/vmlinuz*

then mount the boot partition into /mnt/boot and again

file /mnt/boot/vmlinuz*

Only one of the file invocations should print anything itfp (except for "no such file or directory") and kernel file version and the versions listed by pacman -Qs need to align

Can you boot the fallback initramfs?

Online

#13 2024-07-28 19:24:41

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Heres my output

I haven't tried, I will figure out to do that asap. I have been chrooting using the arch iso to get into my system thus far.

Offline

#14 2024-07-28 19:27:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

You cannot "mount /mnt/boot" from the iso, you'll have to (likely, idk where you boot partition is) "mount /dev/sdb1 /mnt/boot"
You can try to chroot into the system but depending on how broken it is, that might no longer be possible.

Online

#15 2024-07-28 20:52:32

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Chrooting has been working totally fine for me. Since I'm using BTRFS, I am chrooting into my system using the commands on the wiki https://wiki.archlinux.org/title/Chroot … g_on_Btrfs and it works totally fine. I am able to install things and run pacman -Syu as I said before.

Offline

#16 2024-07-28 21:09:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Well, check the installation from the chroot then.
Also inspect the bootloader config for what you're actually booting (to make sure it's not a snapshot)

Online

#17 2024-07-30 00:09:24

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

I don't think I have any snapshots in the first place as this is a 2 week old install and I haven't ran any intentional backups. Also my @.snapshots directory is empty as shown Here (I loaded the drive on my windows installation)

Last edited by Artrix (2024-07-30 00:09:55)

Offline

#18 2024-07-30 06:35:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Ok, did you check the version of the kernels in the /boot partition?

Online

#19 2024-08-03 17:30:15

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

How would I do that?

Offline

#20 2024-08-03 20:38:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Online

#21 2024-08-04 00:50:04

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Heres my output for pacman -Qs kernel. I just recently ran another -Syu and upgraded the kernel again. All the versions seem to be matching.

local/dkms 3.0.12-1
    Dynamic Kernel Modules System
local/fuse2 2.9.9-5
    Interface for userspace programs to export a filesystem to the Linux kernel
local/fuse3 3.16.2-1
    Interface for userspace programs to export a filesystem to the Linux kernel
local/iptables 1:1.8.10-2
    Linux kernel packet control tool (using legacy interface)
local/kmod 32-1
    Linux kernel module management tools and library
local/lib32-libdrm 2.4.122-1
    Userspace interface to kernel DRM services (32-bit)
local/libdrm 2.4.122-1
    Userspace interface to kernel DRM services
local/libnetfilter_conntrack 1.0.9-2
    Library providing an API to the in-kernel connection tracking state table
local/libnfnetlink 1.0.2-2
    Low-level library for netfilter related kernel/userspace communication
local/libsysprof-capture 46.0-4
    Kernel based performance profiler - capture library
local/linux 6.10.2.arch1-1
    The Linux kernel and modules
local/linux-api-headers 6.10-1
    Kernel headers sanitized for use in userspace
local/linux-headers 6.10.2.arch1-1
    Headers and scripts for building modules for the Linux kernel
local/mtdev 1.1.7-1
    A stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol
local/openrazer-daemon 3.8.0-1
    Userspace daemon that abstracts access to the kernel driver. Provides a DBus service for applications to use
local/openrazer-driver-dkms 3.8.0-1
    OpenRazer kernel modules sources
local/virtualbox-host-modules-arch 7.0.20-6
    Virtualbox host kernel modules for Arch Kernel

Offline

#22 2024-08-04 06:56:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

seth wrote:

Boot the install iso, mount the installation into /mnt and check

pacman --root=/mnt -Qs kernel
file /mnt/boot/vmlinuz*
then mount the boot partition into /mnt/boot and again

file /mnt/boot/vmlinuz*

The question is what kernel you're maybe booting there.

Online

#23 2024-08-04 18:39:09

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

/mnt/boot/vmlinuz-linux: Linux kernel x86 boot executable bzImage, version 6.10.2-arch1-1 (linux@archlinux) #1 SMP PREEMPT_DYNAMIC Sat, 27 Jul 2024 16:49:55 +0000, RO-rootFS, swap_dev 0XC, Normal VGA

is my output for file /mnt/boot/vmlinuz*

Offline

#24 2024-08-04 20:43:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,834

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Before or after mounting /mnt/boot?

seth wrote:

Also inspect the bootloader config for what you're actually booting

This is regardless of snapshots

Btw. I assume only the vfat /boot mount in your fstab breaks the boot process? If you comment that, can you boot the system? (Cause then you can just ask "uname -a" for the booting kernel and "cat /proc/cmdline" for what you're booting)

Online

#25 2024-08-04 22:01:46

Artrix
Member
Registered: 2024-07-20
Posts: 18

Re: [SOLVED] Nvidia modules not found after upgrading to new kernel

Because im using BTRFS, I have to mount /boot first because otherwise it doesn't exist (https://wiki.archlinux.org/title/Chroot … g_on_Btrfs) .

I ran file /mnt/boot/vmlinuz* outside the chroot and file /boot/vmlinuz* inside the chroot and got the same output.

Where is the bootloader config? im assuming its /boot/grub/grub.cfg?

Offline

Board footer

Powered by FluxBB