You are not logged in.

#1 2022-06-27 22:08:30

germanius
Member
Registered: 2022-06-27
Posts: 3

[SOLVED] Nvidia modules not being recognized by mkinitcpio

I recently decided to completely move from my Windows desktop to Arch since I've been tinkering with it for a while.
I decided to go for Gnome since I was familiar with it. I also wanted to try out the linux-zen kernel and managed to get it working.
However since I have an Nvidia GPU (which gave me way to many problems) I could not boot under Wayland. I really want to
use Waydroid and without Wayland it is not possible. So I enabled "nvidia-drm.modeset=1" and tried to use the early module
loading with mkinitcpio (what is recommended here https://wiki.archlinux.org/title/NVIDIA … e_setting) but for
some reason when I run "mkinitcpio -P" this is my output:

==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.18.7-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `nvidia_uvm'
==> ERROR: module not found: `nvidia_drm'
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.18.7-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `nvidia_uvm'
==> ERROR: module not found: `nvidia_drm'
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
==> Starting build: 5.18.7-zen1-1-zen
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: 5.18.7-zen1-1-zen
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img
==> Image generation successful

The nvidia modules are not being recognized. I tried looking for solutions online and checked that
everything was right. I have the "nvidia-dkms" and "linux-zen-headers" packages and my desktop
does boot so I am not sure where to look for a solution. Thank you in advance for the help!

Last edited by germanius (2022-06-27 22:28:20)

Offline

#2 2022-06-27 22:17:08

loqs
Member
Registered: 2014-03-06
Posts: 17,733

Re: [SOLVED] Nvidia modules not being recognized by mkinitcpio

germanius wrote:

I have the "nvidia-dkms" and "linux-zen-headers" packages!

==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.18.7-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `nvidia_uvm'
==> ERROR: module not found: `nvidia_drm'

You need matching headers for each kernel package you want DKMS to build modules for.  You have linux-zen-headers but not linux-headers so the nvidia modules are only built for linux-zen.
Please use code tags for commands and their outputs.

Offline

#3 2022-06-27 22:20:26

germanius
Member
Registered: 2022-06-27
Posts: 3

Re: [SOLVED] Nvidia modules not being recognized by mkinitcpio

loqs wrote:
germanius wrote:

I have the "nvidia-dkms" and "linux-zen-headers" packages!

==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.18.7-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `nvidia_uvm'
==> ERROR: module not found: `nvidia_drm'

You need matching headers for each kernel package you want DKMS to build modules for.  You have linux-zen-headers but not linux-headers so the nvidia modules are only built for linux-zen.
Please use code tags for commands and their outputs.

Oh... now I feel dumb, so the error only was for the standard linux kernel. Makes sense. Still I cannot for the life of me figure out how to boot under Wayland.
If that is not the issue I am not really sure what is.

Offline

#4 2022-06-27 22:23:29

germanius
Member
Registered: 2022-06-27
Posts: 3

Re: [SOLVED] Nvidia modules not being recognized by mkinitcpio

Fair enough now it does build the modules. Thanks!

Offline

Board footer

Powered by FluxBB