[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kmod not functioning correctly with 2.2.3 kernel



Jason Stokes <jstok@bluedog.apana.org.au> writes:
JS> In order to get sound support for my SB Ensoniq AudioPCI 32, I
JS> compiled a custom 2.2.3 kernel with make-kpkg and installed it.
JS> Alas, the new module interface isn't functioning correctly.

(Actually, it sounds like kmod is in fact DTRTing.)

JS> Certain unused modules are autoloaded on startup, and are never
JS> flushed,

See kmod.txt in the kernel documentation for information on how to
make unused modules go away.  If modules are getting unnecessarily
loaded by the Debian startup files, just take them out of
/etc/modules.  (Mine is in fact empty.)  The potato modutils package
DTRT with cron and kmod.

JS> others (soundcore, es1371) don't autoload on demand.  For example,
JS> if I try to run xplaycd I get the kernel message:
JS> 
JS> Apr 11 13:57:12 valis modprobe: can't locate module char-major-14

So you ask for sound something.  The kernel says "aha!  We're opening
a character device with major number 14!  Uh...can I get a module for
that?"  You need to set up an alias in your conf.modules file for the
char-major-14 device that loads the right sound driver.  My
/etc/modutils/sound looks more or less like

        post-install soundcore modprobe -ks sb
        post-install sb modprobe -ks adlib_card
        options sb io=0x220 irq=5 dma=1 dma16=5 mpu_io=0x330
        options adlib_card io=0x388

with an "alias char-major-14 soundcore" in /etc/modutils/aliases.
(This is again with the potato modutils package; with a newer version, 
throw all of this in conf.modules.  And my hardware is a Sound Blaster 
16; your entries will definitely differ.)

-- 
David Maze             dmaze@mit.edu          http://donut.mit.edu/dmaze/
"Hey, Doug, do you mind if I push the Emergency Booth Self-Destruct Button?"
"Oh, sure, Dave, whatever...you _do_ know what that does, right?"


Reply to: