You are not logged in.
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
im Having the exact same problem here im trying to compile in a virtual machine to see if i get a diferent result...
Offline
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
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
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
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
New package kmod-5-4 solve problem ..thx all.
Offline
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