Page 1 of 1
Kernel 2.6.0 (final/stable) is out
Posted: 2003-12-20 07:35pm
by Pu-239
Fetch it at kernel.org. You will need to install module-init-tools and fetch some nVidia patches at minuet.org (might be wrong, google for it) .
Also, guess the release date for 2.8 here:
http://kernelpool.tummy.com/kernelpool/
Posted: 2003-12-20 07:59pm
by phongn
Even with the new module-init-tools, 2.6 still won't properly autoload my modules. It is very annoying having to manually load up yenta_socket, ALSA and cardmgr.
Posted: 2003-12-20 11:08pm
by Pu-239
What's wrong w/ manual loading in an init script? Memory usage is neglible. In debian,
For me, autoloading works for some things like the ppp compression modules, but it doesn't for the network card(which has to be manually loaded by putting the string 8139too in /etc/modules. It does work for cdrom/floppy and other stuff that access device files in /dev since I use devfs(with compatibility entries disabled since I'm a masochist who likes to fix everything that is broken as the result of this(though the autoloading works fine with it enabled))+devfsd+edited modprobe.conf- devfsd runs
which loads the appropriate module or series of commands via aliases in modprobe.devfs(which is include[ed] into modprobe.conf). I have no idea if it works on static /dev configurations (manually unloading cdrom modules, mknod[ing] a device file for a cdrom outside of /dev, and dd[ing] from it apparently doesn't work though).
Oh, I forgot- modules.conf has been renamed to modprobe.conf (I'm not sure if the format changed though), which may need to be modified manually depending on distro.
Here's the /etc/init.d/module-init-tools startup script provided by Debian for loading modules listed in /etc/modules (though you can just edit your /etc/rc.d/rc.local (I think, since debian has a non-standard sysvinit scheme)).
Code: Select all
#!/bin/sh -e
PATH=/sbin:/bin:/usr/sbin:/usr/bin
# Silently exit if the kernel does not support modules or needs modutils.
[ -f /proc/modules -a ! -f /proc/ksyms ] || exit 0
[ -x /sbin/depmod ] || exit 0
KVER=$(uname -r)
if [ ! -w /lib/modules/$KVER/ ]; then
echo "Not running depmod because /lib/modules/$KVER/ is not writeable."
else
run_depmod=yes
fi
if [ "$run_depmod" ]; then
echo -n "Calculating module dependencies... "
depmod --quick
echo "done."
fi
# Loop over every line in /etc/modules.
echo 'Loading modules...'
grep '^[^#]' /etc/modules | \
while read module args; do
[ "$module" ] || continue
echo " $module"
modprobe $module $args || true
done
echo "All modules loaded."
# Just in case a sysadmin prefers generic symbolic links in
# /lib/modules/boot for boot time modules we will load these modules.
if [ -n "$(modprobe --list --type boot)" ]; then
modprobe --all --type boot '*'
fi
exit 0
Posted: 2003-12-21 10:38pm
by Pu-239
GRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR!
They marked devfs as obsolete, and replaced it w/ udev, which is inferior since it cannot autoload modules, and is not even stable yet. F*CK! Well, I hope they don't purge it for awhile.