You are not logged in.

#1 2011-07-06 22:11:37

valemon
Member
Registered: 2009-08-29
Posts: 24

loading modules for old kernel during boot up

Hello

After a kernel update I noticed this message during boot

Usage: modprobe [-v] [-V] [-C config-file] [-d <dirname> ] [-n] [-i] [-q] [-b] [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
modprobe -r [-n] [-i] [-v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]

And taking a look at everything.log this came out

May 24 13:57:54 localhost kernel: Pid: 1772, comm: modprobe Tainted: G         C  2.6.37-ARCH #1
May 24 14:31:25 localhost kernel: Pid: 1952, comm: modprobe Tainted: G         C  2.6.37-ARCH #1
May 24 14:34:45 localhost kernel: Pid: 1872, comm: modprobe Tainted: G         C  2.6.37-ARCH #1
May 24 14:54:53 localhost kernel: Pid: 1966, comm: modprobe Tainted: G         C  2.6.37-ARCH #1
May 24 15:14:03 localhost modprobe: FATAL: Could not load /lib/modules/2.6.37-ARCH/modules.dep: No such file or directory
Jun 13 13:34:20 localhost modprobe: FATAL: Could not load /lib/modules/2.6.38-ARCH/modules.dep: No such file or directory

I am using 2.6.39 kernel.
Could anybody help me solve this??

Offline

#2 2011-07-06 23:35:31

jni
Member
Registered: 2009-10-30
Posts: 36

Re: loading modules for old kernel during boot up

Was the boot image re-done for the proper kernel? try re-building it with mkinitcpio

Doing "uname -r" should say you are using 2.6.39... right?

Once booted, try loading a module by hand... does it say the same error?

Offline

#3 2011-07-09 14:14:38

Samana
Member
Registered: 2011-05-30
Posts: 11

Re: loading modules for old kernel during boot up

I get this error as well and I have not found a solution yet. Let me know what info I can provide to help solve it.

I just did a clean install yesterday on an Asus eeePC 1015PX. All I have in my MODULES section in rc.conf is

MODULES=(acpi_cpufreq)

and my daemons array is

DAEMONS=(hwclock crond syslog-ng dbus @sensors @acpid @alsa @laptop-mode @wicd @netfs gdm)

Offline

#4 2011-07-09 15:29:44

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

Re: loading modules for old kernel during boot up

Check /lib/modules/ and delete any older kernel module directories not in use.

Last edited by slytux (2011-07-09 15:30:43)

Offline

#5 2011-07-09 15:39:25

Samana
Member
Registered: 2011-05-30
Posts: 11

Re: loading modules for old kernel during boot up

slytux wrote:

Check /lib/modules/ and delete any older kernel module directories not in use.

Hmm, yeah, not really a newbie, but I have a fresh install, so why would I get the message?

Plus, I looked in that directory, and sheesh, no idea where to start.

Offline

#6 2011-07-09 16:21:03

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

Re: loading modules for old kernel during boot up

If you have a clean install, you should only have one directory for the current Arch kernel: 2.6.39-ARCH/  You shouldn't need to touch it--it just has all the kernel modules that were built.

The OP seems to have crud left over from 2.6.37-ARCH/  He can rm -rf that.

Offline

#7 2011-07-09 16:27:27

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

Re: loading modules for old kernel during boot up

Samana, what does your error message say?  Do you have anything in /lib/modules/2.6.39-ARCH/misc/ ?

You can also try rebuilding the initrd image as jni suggested.

 mkinitcpio -p kernel26 

Offline

#8 2011-07-09 17:35:35

Samana
Member
Registered: 2011-05-30
Posts: 11

Re: loading modules for old kernel during boot up

slytux wrote:

Samana, what does your error message say?  Do you have anything in /lib/modules/2.6.39-ARCH/misc/ ?

You can also try rebuilding the initrd image as jni suggested.

 mkinitcpio -p kernel26 

I have no "misc" folder in 2.6.39-ARCH

The error is like a resonse from bad syntax when running a modprobe command

Usage: modprobe [-v] [-V] [-C config-file] [-d <dirname> ] [-n] [-i] [-q] [-b] [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
modprobe -r [-n] [-i] [-v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]

I rebuilt the image and got a few errors in autodetect that might be a clue.

#  mkinitcpio -p kernel26 
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.39-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
WARNING: All config files need .conf: /etc/modprobe.d/oldusbload, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/oldusbload, it will be ignored in a future release.
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Generating module dependencies
:: Generating image '/boot/kernel26.img'
:: Image generation successful
==> SUCCESS
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.39-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Generating module dependencies
:: Generating image '/boot/kernel26-fallback.img'
:: Image generation successful
==> SUCCESS

Note that the error does not show up when I boot in fallback mode. So it looks like the error has something to do with autodetect. But I have no idea what it is. I am going to try to get rid of the oldusbload and see what happens. [NOTE: Getting rid of oldusbload did n
ot fix the error]

Last edited by Samana (2011-07-09 17:46:02)

Offline

#9 2011-07-09 17:43:46

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

Re: loading modules for old kernel during boot up

It's probably from that then because the fallback options for kernel26 skips the autodetect hook.

In /etc/mkinitcpio.d/kernel26.preset you see there is fallback_options="-S autodetect"

In /etc/mkinitcpio.conf you can remove the 'autodetect' phrase and add 'usb' if that is applicable to your system.

Last edited by slytux (2011-07-09 17:46:08)

Offline

#10 2011-07-09 17:51:09

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

Re: loading modules for old kernel during boot up

If you make any changes, you need to rebuild the image again as in note#7.  I usually add 'keymap' to my Hooks line and enable compression.

Offline

#11 2011-07-09 18:30:31

Samana
Member
Registered: 2011-05-30
Posts: 11

Re: loading modules for old kernel during boot up

slytux wrote:

It's probably from that then because the fallback options for kernel26 skips the autodetect hook.

In /etc/mkinitcpio.d/kernel26.preset you see there is fallback_options="-S autodetect"

In /etc/mkinitcpio.conf you can remove the 'autodetect' phrase and add 'usb' if that is applicable to your system.

Trying to think about this...I am having trouble with normal boot, not fallback. It seems that something in autodetect is sending a bad modprobe command.

I do see a line in /lib/initcpio/install/autodetect that reads

allfs="${fs} $(modprobe --set-version ${KERNELVERSION} --resolve-alias ${fs})"

I think there is a problem with that line. Well, that is what my intution is telling me.

Offline

#12 2011-07-12 18:26:50

valemon
Member
Registered: 2009-08-29
Posts: 24

Re: loading modules for old kernel during boot up

I didn't have enough time to check your solutions, but it seems that with the latest kernel update the problem seems solved.

Offline

Board footer

Powered by FluxBB