You are not logged in.

#1 2010-11-18 06:04:32

mks
Member
Registered: 2010-11-18
Posts: 4

[SOLVED] Custom kernel: load modules.dep; request for firmware failed.

I installed a custom with the ABS kernel26 package (kernel version suffix -max), but I get errors during boot:

...
NET: Registered protocol family 33
modprobe: FATAL: Could not load /lib/modules/2.6.35-max/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.35-max/modules.dep: No such file or directory
...
:: Running hook [udev]
:: Triggering uvents...iwlagn 000:02:00.0: request for firmware file 'iwlwifi-5000-2.ucode' failed.
000:02:00.0: request for firmware file 'iwlwifi-5000-2.ucode' failed.
000:02:00.0: no suitable firmware found!

The system starts up fine, but my wireless intel card is not detected.

However when I boot without the mkinitcpio ramdisk, the error messages do not appear and my wireless card is recognized properly.


Thanks a lot.

Last edited by mks (2010-11-19 00:51:41)

Offline

#2 2010-11-18 06:21:40

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 129

Re: [SOLVED] Custom kernel: load modules.dep; request for firmware failed.

Make sure to also build the headers.  The PKGBUILD should have:
pkgname=('kernel26-max' 'kernel26-max-headers')

And rename the default build functions to
package_kernel26-max() {
...
package_kernel26-max-headers() {

Offline

#3 2010-11-18 06:44:00

mks
Member
Registered: 2010-11-18
Posts: 4

Re: [SOLVED] Custom kernel: load modules.dep; request for firmware failed.

slytux, I followed the guide https://wiki.archlinux.org/index.php/Ke … 26_Package and already did that.

Thanks.

Offline

#4 2010-11-18 14:11:02

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Custom kernel: load modules.dep; request for firmware failed.

Add the firmware file to your initcpio if you are going to try and load it before root is mounted.

Offline

#5 2010-11-19 00:45:07

mks
Member
Registered: 2010-11-18
Posts: 4

Re: [SOLVED] Custom kernel: load modules.dep; request for firmware failed.

Thanks a lot falconindy, that worked.

Here's what I did specifically.
I made my initcpio ramdisk include both the modules.dep and iwlwifi-500-2.ucode files by modifying /etc/mkinitcpio.conf:

FILES="/lib/modules/`uname -r`/modules.dep /lib/firmware/iwlwifi-5000-2.ucode"

Only this always includes modules.dep of the currently running kernel (uname -r) into the ramdisk. So be careful when building a ramdisk for a kernel configuration different from the one currently running.
(Or maybe there is a better way to get at the name of the target kernel within mkinitcpio.conf?)

Offline

#6 2010-11-19 04:01:37

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Custom kernel: load modules.dep; request for firmware failed.

unnecessary. mkinitcpio adds depmod files to the image for you. You can examine the contents of the generated initcpio with:

bsdtar tf /boot/kernel26.img | less

or whatever the name of the boot image is...

Offline

#7 2010-11-19 04:19:05

mks
Member
Registered: 2010-11-18
Posts: 4

Re: [SOLVED] Custom kernel: load modules.dep; request for firmware failed.

falconindy wrote:

unnecessary. mkinitcpio adds depmod files to the image for you.

I forgot to mention I compile almost everything directly into my custom kernel and don't need any modules loaded at boot. So MODULES is empty in /etc/mkinitcpio.conf, and modules.dep does not get added. If I add a module there I don't really need at boot time, e.g.

MODULES="nvidia"

then modules.dep gets added.

That's probably easier and safer than including modules.dep manually...

Last edited by mks (2010-11-19 04:19:55)

Offline

Board footer

Powered by FluxBB