From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Steudten Subject: Re: Problems module autoload in 2.6.x Date: Wed, 17 Mar 2004 20:18:50 +0100 Sender: linux-admin-owner@vger.kernel.org Message-ID: <4058A49A.5070608@steudten.com> References: <4051DA6E.6070809@steudten.com> <1079490472.3400.114.camel@bach> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1079490472.3400.114.camel@bach> List-Id: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: Rusty Russell Cc: linux-admin@vger.kernel.org, Kernel Mailing List Hi 2.6.4 on alpha: zgrep -i mod /proc/config.gz # Loadable module support CONFIG_MODULES=3Dy CONFIG_MODULE_UNLOAD=3Dy # CONFIG_MODULE_FORCE_UNLOAD is not set CONFIG_OBSOLETE_MODPARM=3Dy CONFIG_MODVERSIONS=3Dy CONFIG_KMOD=3Dy CONFIG_IDEDISK_MULTI_MODE=3Dy grep -i floppy /etc/modprobe.conf alias block-major-2-* floppy strace -estat,open /sbin/modprobe -v floppy open("/etc/ld.so.preload", O_RDONLY) =3D -1 ENOENT (No such file or = directory) open("/etc/ld.so.cache", O_RDONLY) =3D 3 open("/lib/libc.so.6.1", O_RDONLY) =3D 3 open("/etc/modprobe.conf", O_RDONLY) =3D 3 open("/lib/modules/2.6.4/modules.dep", O_RDONLY) =3D 3 open("/proc/modules", O_RDONLY) =3D 3 open("/lib/modules/2.6.4/kernel/drivers/block/floppy.ko", O_RDONLY) =3D= 3 insmod /lib/modules/2.6.4/kernel/drivers/block/floppy.ko =3D> OK without module floppy loaded: mdir a: Can't open /dev/fd0: No such device or address No msg in KRB (dmesg) and log from /tmp/modprobe.log =3D> FAILED modprobe -v floppy insmod /lib/modules/2.6.4/kernel/drivers/block/floppy.ko =3D> OK mdir a: =3D> OK My questions are: 1. What process name has the "new" kmod? There=B4s no such process in t= he table. 2. What triggers to run the prog given in /proc/sys/kernel/modprobe ( for a missing device)? Strange: Looks like there is no kmod build or loaded or .. I should look in detail about this.. >>Kernel 2.6.4: >>Some modules (floppy, lp, loop..) won=B4t be autoloaded any more sinc= e >>2.4.21. There=B4s no block-major aso. request in the kernel-ring buff= er. >>I have /etc/modules.conf and /etc/modprobe.conf with modutils-2.4.21-= 23.1 >>and depmod -V: module-init-tools 3.0-pre5. How can I track this down? >>Shouldn't be there a kmod process/ thread in the process list? >=20 >=20 > Check you have CONFIG_KMOD=3Dy. If so, the correct way of debugging > module problems is something like this: >=20 > echo '#! /bin/sh' > /tmp/modprobe > echo 'echo "$@" >> /tmp/modprobe.log' >> /tmp/modprobe > echo 'exec /sbin/modprobe "$@"' >> /tmp/modprobe > chmod a+x /tmp/modprobe > echo /tmp/modprobe > /proc/sys/kernel/modprobe >=20 > Then do something that should cause the module to load: you'll see th= e > command which gets called in /tmp/modprobe.log. Then you can add "-v= " > and run it manually, hopefully providing enlightenment. - To unsubscribe from this list: send the line "unsubscribe linux-admin" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html