Configure PnP Card before Kernel loads modules
Hi, I have an old but still pretty good ISA PnP Soundcard (EWS64XL) . Now I have to initialize the card at boot time BEFORE the kernel loads the moduls, otherwise the (sound-)modul will mess up my configuration. Which boot script allows me to do some action before the kernel starts to load the modules?? In detail: if have a script (|/etc/init.d/isapnp|) which looks like that: #! /bin/sh # /etc/init.d/isapnp: configure Plug and Play boards test -x /sbin/isapnp || exit 0 /sbin/isapnp /etc/isapnp.conf exit 0 and a startup script which looks like that: # Configure the isa plug and play boards before loading # modules. Need to do this before loading modules to get # a chance of configuring and starting PnP boards before # the drivers mess all this up. # if [ -x /etc/init.d/isapnp ] then /etc/init.d/isapnp start thanke for any advice! andreas i worked according to the very good tutorial form Marcus Brinkmann: http://www.tldp.org/HOWTO/Soundblaster-AWE.html#toc2 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Configure PnP Card before Kernel loads modules
Hello Andreas Bohnert ([EMAIL PROTECTED]) wrote: I have an old but still pretty good ISA PnP Soundcard (EWS64XL) . Now I have to initialize the card at boot time BEFORE the kernel loads the moduls, otherwise the (sound-)modul will mess up my configuration. Which boot script allows me to do some action before the kernel starts to load the modules?? In detail: if have a script (|/etc/init.d/isapnp|) which looks like that: #! /bin/sh # /etc/init.d/isapnp: configure Plug and Play boards test -x /sbin/isapnp || exit 0 /sbin/isapnp /etc/isapnp.conf exit 0 and a startup script which looks like that: # Configure the isa plug and play boards before loading # modules. Need to do this before loading modules to get # a chance of configuring and starting PnP boards before # the drivers mess all this up. # if [ -x /etc/init.d/isapnp ] then /etc/init.d/isapnp start Modules from /etc/modules are loaded by /etc/init.d/modutils which is symlinked to /etc/rcS.d/S20modutils. If you want to have your script run before that, symlink it to /etc/rcS.d/S??modutils where ?? is less than 20. If instead you used update-modules to add a line alias sound-slot-0 modulename to /etc/modules.conf, the driver will be loaded when needed. By the way, are using kernel 2.2 or 2.4? 2.4 has improved isa pnp support, /maybe/ you won't need to run isapnptools. best regards Andreas Janssen -- Andreas Janssen [EMAIL PROTECTED] PGP-Key-ID: 0xDC801674 Registered Linux User #267976 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Configure PnP Card before Kernel loads modules
thanks andreas, I will try that. stupid question: is sound-slot-0 just a random name? about the kernel question: I''m using the 2.4.18 kernel, but he does not auto configure my card - maybe this is switched of by default and I have to configure it (good tip!) thanks andreas Andreas Janssen wrote: Modules from /etc/modules are loaded by /etc/init.d/modutils which is symlinked to /etc/rcS.d/S20modutils. If you want to have your script run before that, symlink it to /etc/rcS.d/S??modutils where ?? is less than 20. If instead you used update-modules to add a line alias sound-slot-0 modulename to /etc/modules.conf, the driver will be loaded when needed. By the way, are using kernel 2.2 or 2.4? 2.4 has improved isa pnp support, /maybe/ you won't need to run isapnptools. best regards Andreas Janssen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Configure PnP Card before Kernel loads modules
On Thu, 30 Oct 2003 11:19:40 +0100, Andreas Bohnert wrote: thanks andreas, I will try that. stupid question: is just a random name? No, it is not. It has to be that way so any program that wants to access the sound card (via sound-slot-0) is poited to the correct driver. Greetings Andre -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
AW: Configure PnP Card before Kernel loads modules
If instead you used update-modules to add a line alias sound-slot-0 modulename to /etc/modules.conf, the driver will be loaded when needed. thanks andreas andre, there's something wrong.. i did the following (sam9407 is the module name...): i changend /etc/modutils/sam9407, so it just contains: alias sound-slot-0 sam9407 then I did update-modules, so my modules.conf was updated with the line upove. after that I invoked depmod -a to update my modules.dep after a reboot I get with lsmod: homer:~# lsmod Module Size Used byNot tainted sam9407 116832 0 (autoclean) (unused) soundcore 3844 0 (autoclean) but sam9407 shouldn't be there, right? i still can find an entry in modules.dep: /lib/modules/2.4.18/kernel/drivers/sound/sam9407.o: i thought it will be removed!? regards andreas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
AW: Configure PnP Card before Kernel loads modules
Just ignore my last posting. Everything is allright now. Thanks very much! andreas If instead you used update-modules to add a line alias sound-slot-0 modulename to /etc/modules.conf, the driver will be loaded when needed. thanks andreas andre, there's something wrong.. i did the following (sam9407 is the module name...): i changend /etc/modutils/sam9407, so it just contains: alias sound-slot-0 sam9407 then I did update-modules, so my modules.conf was updated with the line upove. after that I invoked depmod -a to update my modules.dep after a reboot I get with lsmod: homer:~# lsmod Module Size Used byNot tainted sam9407 116832 0 (autoclean) (unused) soundcore 3844 0 (autoclean) but sam9407 shouldn't be there, right? i still can find an entry in modules.dep: /lib/modules/2.4.18/kernel/drivers/sound/sam9407.o: i thought it will be removed!? regards andreas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]