You are not logged in.

#1 2012-02-15 19:58:13

pcxz
Member
From: Italy
Registered: 2008-01-13
Posts: 67

[SOLVED] New Kernel fail to install modules?

Very strange ..i always compile myself my kernel ..now have this problem (this is first time i have this problem ..probably is after switch module-init-tools -> kmod  ? )

[root@localhost linux-3.2.6]# mkinitcpio -p linux_mio
==> Building image from preset: 'default'
  -> -k /boot/bzImage -c /etc/mkinitcpio.conf -g /boot/initrd_mio.img
==> Starting build: 3.2.6-MIO
  -> Parsing hook: [base]
  -> Parsing hook: [udev]
  -> Parsing hook: [autodetect]
libkmod: index_mm_open: open(/lib/modules/3.2.6-MIO/modules.dep.bin, O_RDONLY|O_CLOEXEC): No such file or directory
  -> Parsing hook: [pata]
  -> Parsing hook: [scsi]
  -> Parsing hook: [sata]
  -> Parsing hook: [filesystems]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip initcpio image: /boot/initrd_mio.img
==> Image generation successful
==> Building image from preset: 'fallback'
  -> -k /boot/bzImage -c /etc/mkinitcpio.conf -g /boot/initrd_mio-fallback.img -S autodetect
==> Starting build: 3.2.6-MIO
  -> Parsing hook: [base]
  -> Parsing hook: [udev]
  -> Parsing hook: [pata]
==> ERROR: module not found: `pata_acpi'
==> ERROR: module not found: `pata_jmicron'
==> ERROR: module not found: `pata_mpiix'
==> ERROR: module not found: `pata_sch'
==> ERROR: module not found: `ata_generic'
==> ERROR: module not found: `ata_piix'
  -> Parsing hook: [scsi]
  -> Parsing hook: [sata]
  -> Parsing hook: [filesystems]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip initcpio image: /boot/initrd_mio-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Image generation successful
[root@localhost linux-3.2.6]#

In /lib/modules/3.2.6-MIO found only 2 file:

modules.builtin
modules.order

In my working ok kernel 3.2.5-MIO have all this:

modules.alias
modules.alias.bin
modules.builtin
modules.builtin.bin
modules.dep
modules.dep.bin
modules.devname
modules.order
modules.softdep
modules.symbols
modules.symbols.bin


Another info, ..when add "make modules_install" i receive this Warning:

...
DEPMOD  3.2.6-MIO
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post- … en-2.6.txt


Any idea?

Thx.

Last edited by pcxz (2012-02-17 07:08:36)

Offline

#2 2012-02-15 22:35:01

root.otavio
Member
Registered: 2012-01-25
Posts: 12

Re: [SOLVED] New Kernel fail to install modules?

im Having the exact same problem here im trying to compile in a virtual machine to see if i get a diferent result...

Offline

#3 2012-02-15 22:42:42

Gusar
Member
Registered: 2009-08-25
Posts: 3,428

Re: [SOLVED] New Kernel fail to install modules?

I think it started with kmod-5 and kmod-4 was fine, but I'm not completely sure. If you manually do a "depmod -a <kernel_version>", you'll get all the files, it's just when depmod is called from "make modules_install" that not all files are created.

Offline

#4 2012-02-16 08:15:58

pcxz
Member
From: Italy
Registered: 2008-01-13
Posts: 67

Re: [SOLVED] New Kernel fail to install modules?

Gusar wrote:

I think it started with kmod-5 and kmod-4 was fine, but I'm not completely sure. If you manually do a "depmod -a <kernel_version>", you'll get all the files, it's just when depmod is called from "make modules_install" that not all files are created.

Very very thx ...problem is added from kmod-5 ..i found and install old kmod-4 and after make modules_install is all ok

P.S.
I found kmod-4 to:
http://valve.homelinux.org/core/os/i686/

Offline

#5 2012-02-16 08:41:57

pcxz
Member
From: Italy
Registered: 2008-01-13
Posts: 67

Re: [SOLVED] New Kernel fail to install modules?

pcxz wrote:
Gusar wrote:

I think it started with kmod-5 and kmod-4 was fine, but I'm not completely sure. If you manually do a "depmod -a <kernel_version>", you'll get all the files, it's just when depmod is called from "make modules_install" that not all files are created.

Very very thx ...problem is added from kmod-5 ..i found and install old kmod-4 and after make modules_install is all ok

..yes and at reboot system not boot with error udevd not found libkmod.so.2
idem not found root ecc.. ecc..

Ok ..wait new update of kmod.

Offline

#6 2012-02-16 09:20:00

Gusar
Member
Registered: 2009-08-25
Posts: 3,428

Re: [SOLVED] New Kernel fail to install modules?

Figured it out, it's extremely simple. The kernel Makefile contains this:

DEPMOD		= /sbin/depmod

But kmod-5 has depmod in /usr/bin. So create a /sbin/depmod -> /usr/bin/kmod symlink and all will be fine again.

Edit: The kmod-5-4 package in [testing] adds this symlink. If you added it manually and then upgrade, you'll get an error. So remove the symlink before upgrading to kmod-5-4

Last edited by Gusar (2012-02-16 11:00:54)

Offline

#7 2012-02-17 07:09:17

pcxz
Member
From: Italy
Registered: 2008-01-13
Posts: 67

Re: [SOLVED] New Kernel fail to install modules?

New package kmod-5-4 solve problem ..thx all.

Offline

#8 2012-03-28 03:28:19

sqweek
Member
Registered: 2012-03-28
Posts: 2

Re: [SOLVED] New Kernel fail to install modules?

I think you're really close to understanding what is going on, Gusar, but there is something else going on too...

I _have_ a symlink going from /sbin/depmod -> /usr/bin/kmod, but I also have a tendency to run pacman without /sbin in my PATH (its not in my normal user PATH and I tend to just run "su" to get a root shell). Without /sbin in my PATH, I get a "depmod: command not found" error during installation of the linux package, which is silently ignored and results in similar symptoms when it comes to mkinitcpio.

I wonder if the arch linux package does a /usr/src/linux-VERSION/scripts/depmod.sh "depmod" rather than the default depmod.sh "/sbin/depmod" that would be called by the kernel Makefile.

Everything works fine for me with /sbin in PATH.

Offline

Board footer

Powered by FluxBB