You are not logged in.
Hello! I have compiled several kernels following the instructions in the Kernel/Arch Build System Wiki. Upon installation, initramfs is not able to hook the kernel modules. The modules missing are standard builtin modules and I confirmed in the config file that they were all assigned as "=m". I am not sure how to proceed from here, any help or pointer is appreciated to get these hooks to work.
Thanks for your help!
Install Output Snippet:
sudo pacman -U linux-amdvfio-5.6.6.arch1-1-x86_64.pkg.tar.xz linux-amdvfio-headers-5.6.6.arch1-1-x86_64.pkg.tar.xz
...
...
==> Building image from preset: /etc/mkinitcpio.d/linux-amdvfio.preset: 'default'
-> -k /boot/vmlinuz-linux-amdvfio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-amdvfio.img
==> Starting build: 5.6.6-arch1-1-amdvfio
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [lvm2]
==> ERROR: Hook 'vfio_pci' cannot be found
==> ERROR: Hook 'vfio' cannot be found
==> ERROR: Hook 'vfio_iommu_type1' cannot be found
==> ERROR: Hook 'vfio_virqfd' cannot be found
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-amdvfio.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux-amdvfio.preset: 'fallback'
-> -k /boot/vmlinuz-linux-amdvfio -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-amdvfio-fallback.img -S autodetect
==> Starting build: 5.6.6-arch1-1-amdvfio
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
-> Running build hook: [lvm2]
==> ERROR: Hook 'vfio_pci' cannot be found
==> ERROR: Hook 'vfio' cannot be found
==> ERROR: Hook 'vfio_iommu_type1' cannot be found
==> ERROR: Hook 'vfio_virqfd' cannot be found
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-amdvfio-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
Last edited by djmwj1 (2020-04-22 12:34:51)
Offline
I think you are confused about what hooks are, and confused them with modules (they are not the same thing; see mkinitcpio page in the Wiki). There are no such hooks listed on your error lines, unless you have created some custom hooks. Hooks are not done in the Kernel configuration (but in /etc/initcpio/install...).
Most probably you want to list said modules (not hooks!) in MODULES=( ... ) -variable of the mkinitcpio.conf.
Either that or I'm totally lost on what you are trying to do.
Perhaps post mkinictpio.conf here to make sure what is going on (I assume you get the same errors even on the stock kernel packages?).
Last edited by Wild Penguin (2020-04-22 07:37:47)
Offline
Doh! Thanks so much for your response. You were right, I was trying to load the modules via hooks which was obviously wrong! Thanks!
Offline