Click to See Complete Forum and Search --> : How do you configure the kernel to load a module automatically?


Prometheux
04-01-2001, 02:53 PM
Hey everybody...

Here's my problem: I have crystal cs4232 onboard audio, which I could compile directly into the 2.2.x kernels; all I had to do was get the correct irq and stuff from windows, and then enter that into xconfig. It found it every time I booted my machine up.

I got the 2.4.x kernel, and they changed the sound section; at least for my card. Now you can't put all of that information right there, if you compile it into the kernel you have to pass the irq and io plus other things in the kernel command line, which I'm guessing is appending to lilo. Anyway, I tried that, and could never get it to work. So then I recompiled the kernel this time loading sound as a module, hoping that the kernel would allocate the resources itself. Well, that didn't work, and to this day I have to type a few insmod commands and enter the irq, etc., every time I boot up. It's getting quite annoying. Is there a way to make the kernel do all that for me?

Thanks for any help.

MBMarduk
04-01-2001, 03:10 PM
I've been having the same trouble.
Every fscking time I need to access my CD and CDRW i have to type "insmod ide-scsi".
I read the file "/usr/src/linux-x-x-xx/Documentation/kmod.txt" which explains how to set it up (you should too), but something's still not working. I think either "/etc/modules.conf" is STILL not set up correctly or something else. :(

sans-hubris
04-01-2001, 03:32 PM
Can you post some of the error messages you get or at least a description of them? That would help us diagnose the problem.

Prometheux
04-01-2001, 04:24 PM
OK, I seemed to have averted the problem for now. I just compiled 2.4.3, and when I put the insmod commands into rc.local, it works without me having to do it. I tried that before with 2.4.2, and it never worked with the same settings. One of the dmas changed every time. Now it works. Go figure. Maybe it was a bug they fixed. I dunno. Thanks for all the help anyway.

bdg1983
04-01-2001, 04:50 PM
Yes, the rc.modules or rc.local (depending on the distro) is the correct file to use to load the modules.

TO MBMarduk... from the CD Writer NHF

SCSI Emulation Setup

Find out the name of physical CD-ROM device. This is probably /dev/hdc (the master device on the second IDE cable) but could be /dev/hdb (slave device on the primary IDE cable or /dev/hdd (slave device on the secondary
cable).


Become root.

Add the following line to the end of your /etc/rc.local:

insmod ide-scsi

RedHat seemed to be the only distribution with an rc.local file. for the others, you have to find some other mechanism for running this command before attempting to record.


Add the following line to the end of your /etc/lilo.conf file:

append="hdc=ide-scsi"

where "hdc" might be "hdb" or "hdd" depending on where your drive is installed. This instructs the kernel to access the cd-writer via the scsi emulation driver.


Reconfigure LILO by running the following command at the Unix shell prompt:

lilo