* Load kernel module automatically
@ 2002-06-04 19:38 Michael Zhu
2002-06-04 19:46 ` Richard B. Johnson
` (3 more replies)
0 siblings, 4 replies; 28+ messages in thread
From: Michael Zhu @ 2002-06-04 19:38 UTC (permalink / raw)
To: kernelnewbies; +Cc: linux-kernel
Hi, I built a kernel module. I can load it into the
kernle using insmod command. But each time when I
reboot my computer I couldn't find it any more. I mean
I need to use the insmod to load the module each time
I reboot the computer. How can I modify the
configuration so that the Linux OS can load my module
automatically during reboot? I need to copy my module
to the following directory?
/lib/modules/2.4.7-10/
I've done that. But it doesn't work.
Any help will be appreciated.
______________________________________________________________________
Movies, Music, Sports, Games! http://entertainment.yahoo.ca
^ permalink raw reply [flat|nested] 28+ messages in thread* Re: Load kernel module automatically 2002-06-04 19:38 Load kernel module automatically Michael Zhu @ 2002-06-04 19:46 ` Richard B. Johnson 2002-06-04 19:49 ` Mark Hounschell ` (2 subsequent siblings) 3 siblings, 0 replies; 28+ messages in thread From: Richard B. Johnson @ 2002-06-04 19:46 UTC (permalink / raw) To: Michael Zhu; +Cc: kernelnewbies, linux-kernel On Tue, 4 Jun 2002, Michael Zhu wrote: > Hi, I built a kernel module. I can load it into the > kernle using insmod command. But each time when I > reboot my computer I couldn't find it any more. I mean > I need to use the insmod to load the module each time > I reboot the computer. How can I modify the > configuration so that the Linux OS can load my module > automatically during reboot? I need to copy my module > to the following directory? > /lib/modules/2.4.7-10/ > > I've done that. But it doesn't work. > > Any help will be appreciated. man modules.conf Cheers, Dick Johnson Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips). Windows-2000/Professional isn't. ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-04 19:38 Load kernel module automatically Michael Zhu 2002-06-04 19:46 ` Richard B. Johnson @ 2002-06-04 19:49 ` Mark Hounschell 2002-06-05 19:47 ` Michael Zhu 2002-06-04 22:27 ` Jan Hudec 2002-06-05 18:56 ` Eric Kristopher Sandall 3 siblings, 1 reply; 28+ messages in thread From: Mark Hounschell @ 2002-06-04 19:49 UTC (permalink / raw) To: Michael Zhu; +Cc: kernelnewbies, linux-kernel Michael Zhu wrote: > > Hi, I built a kernel module. I can load it into the > kernle using insmod command. But each time when I > reboot my computer I couldn't find it any more. I mean > I need to use the insmod to load the module each time > I reboot the computer. How can I modify the > configuration so that the Linux OS can load my module > automatically during reboot? I need to copy my module > to the following directory? > /lib/modules/2.4.7-10/ > > I've done that. But it doesn't work. > > Any help will be appreciated. $man modules.conf Mark ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-04 19:49 ` Mark Hounschell @ 2002-06-05 19:47 ` Michael Zhu 2002-06-05 20:07 ` Måns Rullgård ` (2 more replies) 0 siblings, 3 replies; 28+ messages in thread From: Michael Zhu @ 2002-06-05 19:47 UTC (permalink / raw) To: markh; +Cc: kernelnewbies, linux-kernel Hi, I've read the man page of modules.conf. But I still couldn't figure out how to solve my problem. I mean how to change the modules.conf file. Can I edit this file directly? Can anyone give me an example? Thanks. --- Mark Hounschell <markh@compro.net> wrote: > Michael Zhu wrote: > > > > Hi, I built a kernel module. I can load it into > the > > kernle using insmod command. But each time when I > > reboot my computer I couldn't find it any more. I > mean > > I need to use the insmod to load the module each > time > > I reboot the computer. How can I modify the > > configuration so that the Linux OS can load my > module > > automatically during reboot? I need to copy my > module > > to the following directory? > > /lib/modules/2.4.7-10/ > > > > I've done that. But it doesn't work. > > > > Any help will be appreciated. > > $man modules.conf > > Mark ______________________________________________________________________ Movies, Music, Sports, Games! http://entertainment.yahoo.ca ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 19:47 ` Michael Zhu @ 2002-06-05 20:07 ` Måns Rullgård 2002-06-06 0:00 ` Keith Owens 2002-06-06 8:59 ` Jan Hudec 2 siblings, 0 replies; 28+ messages in thread From: Måns Rullgård @ 2002-06-05 20:07 UTC (permalink / raw) To: Michael Zhu; +Cc: markh, kernelnewbies, linux-kernel Michael Zhu <mylinuxk@yahoo.ca> writes: > Hi, I've read the man page of modules.conf. But I > still couldn't figure out how to solve my problem. I > mean how to change the modules.conf file. Can I edit > this file directly? Not without a text editor of some kind. > Can anyone give me an example? emacs modules.conf -- Måns Rullgård mru@users.sf.net ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 19:47 ` Michael Zhu 2002-06-05 20:07 ` Måns Rullgård @ 2002-06-06 0:00 ` Keith Owens 2002-06-06 8:59 ` Jan Hudec 2 siblings, 0 replies; 28+ messages in thread From: Keith Owens @ 2002-06-06 0:00 UTC (permalink / raw) To: linux-kernel On Wed, 5 Jun 2002 15:47:16 -0400 (EDT), Michael Zhu <mylinuxk@yahoo.ca> wrote: >Hi, I've read the man page of modules.conf. But I >still couldn't figure out how to solve my problem. I >mean how to change the modules.conf file. Can I edit >this file directly? Can anyone give me an example? /etc/modules.conf does NOT automatically load modules. It contains information that is applied to a module during the load process but something else has to trigger the initial module load. NB, not conf.modules, that is an alternative name that is obsolete. The initial load can be manual (user types 'modprobe foo') or automatic. For the automatic case, a module can be requested by kernel code (CONFIG_KMOD eventually runs 'modprobe foo' from the kernel) or some startup script can issue modprobe. Startup scripts vary from one distribution to another, look in /etc/rc.sysinit, /etc/rc.local and /etc/rc.d/ for references to modules to find out how your distribution does automatic loading at startup. Redhat does most of the work in /etc/rc.sysinit, other distributions may vary. That code explicitly loads sound drivers if they are listed in /etc/modules.conf, then if /etc/rc.modules exists, it tries to execute that script. So define /etc/rc.modules, mark it executable and put your modprobe commands in that file. ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 19:47 ` Michael Zhu 2002-06-05 20:07 ` Måns Rullgård 2002-06-06 0:00 ` Keith Owens @ 2002-06-06 8:59 ` Jan Hudec 2002-06-06 9:16 ` Mark Hounschell 2 siblings, 1 reply; 28+ messages in thread From: Jan Hudec @ 2002-06-06 8:59 UTC (permalink / raw) To: kernelnewbies, linux-kernel On Wed, Jun 05, 2002 at 03:47:16PM -0400, Michael Zhu wrote: > Hi, I've read the man page of modules.conf. But I > still couldn't figure out how to solve my problem. I > mean how to change the modules.conf file. Can I edit > this file directly? Can anyone give me an example? You say you read the page. ... Hey, wait a moment! There are TWO files. /etc/modules.conf, that defines how to load modules when they are requested (default parameters), which modules to load on kernel request (autoloading) etc. And then there is another file - /etc/modules, that is simply processed like for each line do modprobe <the line> during boot process. So depending on what kind of module you have. If it's a module for some device, you can make the alias in modules.conf and kernel will ask for it when it's needed. It also works for some special cases (like iptables - they don't even need an alias). For other things, especially network device drivers you need to load them from /etc/modules Note: ALL config files on unix are made so that they can be edited by hand using eny editor. -------------------------------------------------------------------------------- - Jan Hudec `Bulb' <bulb@ucw.cz> ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-06 8:59 ` Jan Hudec @ 2002-06-06 9:16 ` Mark Hounschell 2002-06-06 11:22 ` Jan Hudec 2002-06-07 3:42 ` Andrew Rodland 0 siblings, 2 replies; 28+ messages in thread From: Mark Hounschell @ 2002-06-06 9:16 UTC (permalink / raw) To: kernelnewbies, linux-kernel; +Cc: Jan Hudec Jan Hudec wrote: > > On Wed, Jun 05, 2002 at 03:47:16PM -0400, Michael Zhu wrote: > > Hi, I've read the man page of modules.conf. But I > > still couldn't figure out how to solve my problem. I > > mean how to change the modules.conf file. Can I edit > > this file directly? Can anyone give me an example? > > You say you read the page. ... Hey, wait a moment! > There are TWO files. /etc/modules.conf, that defines how to load modules > when they are requested (default parameters), which modules to load on > kernel request (autoloading) etc. And then there is another file - > /etc/modules, that is simply processed like > for each line do modprobe <the line> > during boot process. > > So depending on what kind of module you have. If it's a module for some > device, you can make the alias in modules.conf and kernel will ask for > it when it's needed. It also works for some special cases (like iptables > - they don't even need an alias). For other things, especially network > device drivers you need to load them from /etc/modules > That isn't the case. There is no /etc/modules file on any Linux box I've ever used. My network driver modules are loaded automatically by the kernel's internal module loader "kmod" because the are set up correctly in /etc/modules.conf. "alias eth0 3c905" ALL device driver modules can be set up to load automatacally by "kmod". Mark ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-06 9:16 ` Mark Hounschell @ 2002-06-06 11:22 ` Jan Hudec 2002-06-06 13:24 ` Mark Hounschell 2002-06-07 3:42 ` Andrew Rodland 1 sibling, 1 reply; 28+ messages in thread From: Jan Hudec @ 2002-06-06 11:22 UTC (permalink / raw) To: kernelnewbies, linux-kernel On Thu, Jun 06, 2002 at 05:16:48AM -0400, Mark Hounschell wrote: > That isn't the case. There is no /etc/modules file on any Linux box I've > ever used. My network driver modules are loaded automatically by the kernel's > internal module loader "kmod" because the are set up correctly in /etc/modules.conf. > > "alias eth0 3c905" > > ALL device driver modules can be set up to load automatacally by "kmod". That I didn't know. However, I have a computer with four network cards in it. Since they are numbered dynamicaly, loading modules in different order results in different numbering of devices. How do I assure that upon request for eg. eth2 the loaded module is assigned eth2? -------------------------------------------------------------------------------- - Jan Hudec `Bulb' <bulb@ucw.cz> ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-06 11:22 ` Jan Hudec @ 2002-06-06 13:24 ` Mark Hounschell 0 siblings, 0 replies; 28+ messages in thread From: Mark Hounschell @ 2002-06-06 13:24 UTC (permalink / raw) To: Jan Hudec; +Cc: kernelnewbies, linux-kernel Jan Hudec wrote: > > On Thu, Jun 06, 2002 at 05:16:48AM -0400, Mark Hounschell wrote: > > That isn't the case. There is no /etc/modules file on any Linux box I've > > ever used. My network driver modules are loaded automatically by the kernel's > > internal module loader "kmod" because the are set up correctly in /etc/modules.conf. > > > > "alias eth0 3c905" > > > > ALL device driver modules can be set up to load automatacally by "kmod". > > That I didn't know. However, I have a computer with four network cards > in it. Since they are numbered dynamicaly, loading modules in different > order results in different numbering of devices. How do I assure that > upon request for eg. eth2 the loaded module is assigned eth2? The order in which they are labeled is the order the are found during the pci scan. The lspci command should tell you which is which. Then place the correct entries in /etc/modules.conf alias eth0 3c905 alias eth1 blabla alias eth2 blablaaaa . . Regards Mark ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-06 9:16 ` Mark Hounschell 2002-06-06 11:22 ` Jan Hudec @ 2002-06-07 3:42 ` Andrew Rodland 1 sibling, 0 replies; 28+ messages in thread From: Andrew Rodland @ 2002-06-07 3:42 UTC (permalink / raw) To: linux-kernel [-- Attachment #1: Type: text/plain, Size: 413 bytes --] On Thu, 06 Jun 2002 05:16:48 -0400 Mark Hounschell <dmarkh@cfl.rr.com> wrote: > That isn't the case. There is no /etc/modules file on any Linux box > I've ever used. My network driver modules are loaded automatically by you haven't used a lot of linux boxen. it's there on every major distribution and most of the ones that aren't. Er, except slack. That still uses /etc/rc.d/rc.modules, doesn't it? --hobbw [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-04 19:38 Load kernel module automatically Michael Zhu 2002-06-04 19:46 ` Richard B. Johnson 2002-06-04 19:49 ` Mark Hounschell @ 2002-06-04 22:27 ` Jan Hudec 2002-06-04 22:54 ` Austin Gonyou 2002-06-05 18:56 ` Eric Kristopher Sandall 3 siblings, 1 reply; 28+ messages in thread From: Jan Hudec @ 2002-06-04 22:27 UTC (permalink / raw) To: kernelnewbies, linux-kernel On Tue, Jun 04, 2002 at 03:38:06PM -0400, Michael Zhu wrote: > Hi, I built a kernel module. I can load it into the > kernle using insmod command. But each time when I > reboot my computer I couldn't find it any more. I mean > I need to use the insmod to load the module each time > I reboot the computer. How can I modify the > configuration so that the Linux OS can load my module > automatically during reboot? I need to copy my module > to the following directory? > /lib/modules/2.4.7-10/ Kernel does not seek for modules to load in any way. Actually, in usual installation there are tons of modules compiled an mostly unused. You must put the insmod command (or better modprobe command) somewhere in the init scripts. Since I expect your installation is RedHat (the kernel version looks like a RedHat one), there should already be one a it should be loading all modules listed in /etc/modules.conf (not sure abou the exact name - I don't have RedHat). -------------------------------------------------------------------------------- - Jan Hudec `Bulb' <bulb@ucw.cz> ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-04 22:27 ` Jan Hudec @ 2002-06-04 22:54 ` Austin Gonyou 2002-06-04 23:27 ` Mark Hounschell 0 siblings, 1 reply; 28+ messages in thread From: Austin Gonyou @ 2002-06-04 22:54 UTC (permalink / raw) To: Jan Hudec; +Cc: kernelnewbies, linux-kernel On Tue, 2002-06-04 at 17:27, Jan Hudec wrote: > On Tue, Jun 04, 2002 at 03:38:06PM -0400, Michael Zhu wrote: > > Hi, I built a kernel module. I can load it into the > > kernle using insmod command. But each time when I > > reboot my computer I couldn't find it any more. I mean > > I need to use the insmod to load the module each time > > I reboot the computer. How can I modify the > > configuration so that the Linux OS can load my module > > automatically during reboot? I need to copy my module > > to the following directory? > > /lib/modules/2.4.7-10/ > > Kernel does not seek for modules to load in any way. Actually, in usual > installation there are tons of modules compiled an mostly unused. You > must put the insmod command (or better modprobe command) somewhere in > the init scripts. Since I expect your installation is RedHat (the kernel > version looks like a RedHat one), there should already be one a it > should be loading all modules listed in /etc/modules.conf (not sure abou > the exact name - I don't have RedHat). Isn't that what modules.conf (conf.modules on some) is for though? To have lists of available devices and load modules if their services are used?(i.e. ifup eth0, but eth0 doesn't exist at boot time, so ifup calls a utility that loads the module, then ifup continues to run) > -------------------------------------------------------------------------------- > - Jan Hudec `Bulb' <bulb@ucw.cz> > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-04 22:54 ` Austin Gonyou @ 2002-06-04 23:27 ` Mark Hounschell 2002-06-05 0:11 ` Austin Gonyou 0 siblings, 1 reply; 28+ messages in thread From: Mark Hounschell @ 2002-06-04 23:27 UTC (permalink / raw) To: Austin Gonyou; +Cc: Jan Hudec, kernelnewbies, linux-kernel Austin Gonyou wrote: > > On Tue, 2002-06-04 at 17:27, Jan Hudec wrote: > > On Tue, Jun 04, 2002 at 03:38:06PM -0400, Michael Zhu wrote: > > > Hi, I built a kernel module. I can load it into the > > > kernle using insmod command. But each time when I > > > reboot my computer I couldn't find it any more. I mean > > > I need to use the insmod to load the module each time > > > I reboot the computer. How can I modify the > > > configuration so that the Linux OS can load my module > > > automatically during reboot? I need to copy my module > > > to the following directory? > > > /lib/modules/2.4.7-10/ > > > > Kernel does not seek for modules to load in any way. Actually, in usual > > installation there are tons of modules compiled an mostly unused. You > > must put the insmod command (or better modprobe command) somewhere in > > the init scripts. Since I expect your installation is RedHat (the kernel > > version looks like a RedHat one), there should already be one a it > > should be loading all modules listed in /etc/modules.conf (not sure abou > > the exact name - I don't have RedHat). > > Isn't that what modules.conf (conf.modules on some) is for though? To > have lists of available devices and load modules if their services are > used?(i.e. ifup eth0, but eth0 doesn't exist at boot time, so ifup calls > a utility that loads the module, then ifup continues to run) > The utility is built into the kernel, it's called kmod and uses /etc/modules.conf as it's config file.... Mark ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-04 23:27 ` Mark Hounschell @ 2002-06-05 0:11 ` Austin Gonyou 0 siblings, 0 replies; 28+ messages in thread From: Austin Gonyou @ 2002-06-05 0:11 UTC (permalink / raw) To: dmarkh; +Cc: Jan Hudec, kernelnewbies, linux-kernel On Tue, 2002-06-04 at 18:27, Mark Hounschell wrote: > Austin Gonyou wrote: > > > > On Tue, 2002-06-04 at 17:27, Jan Hudec wrote: ........ > > > Kernel does not seek for modules to load in any way. Actually, in usual > > > installation there are tons of modules compiled an mostly unused. You > > > must put the insmod command (or better modprobe command) somewhere in > > > the init scripts. Since I expect your installation is RedHat (the kernel > > > version looks like a RedHat one), there should already be one a it > > > should be loading all modules listed in /etc/modules.conf (not sure abou > > > the exact name - I don't have RedHat). > > > > Isn't that what modules.conf (conf.modules on some) is for though? To > > have lists of available devices and load modules if their services are > > used?(i.e. ifup eth0, but eth0 doesn't exist at boot time, so ifup calls > > a utility that loads the module, then ifup continues to run) > > > The utility is built into the kernel, it's called kmod and uses /etc/modules.conf > as it's config file.... That's all my point was...:) Thanks! > > Mark > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-04 19:38 Load kernel module automatically Michael Zhu ` (2 preceding siblings ...) 2002-06-04 22:27 ` Jan Hudec @ 2002-06-05 18:56 ` Eric Kristopher Sandall 2002-06-05 19:03 ` John Tyner 3 siblings, 1 reply; 28+ messages in thread From: Eric Kristopher Sandall @ 2002-06-05 18:56 UTC (permalink / raw) To: Michael Zhu; +Cc: kernelnewbies, linux-kernel On Tue, 4 Jun 2002, Michael Zhu wrote: > Hi, I built a kernel module. I can load it into the > kernle using insmod command. But each time when I > reboot my computer I couldn't find it any more. I mean > I need to use the insmod to load the module each time > I reboot the computer. How can I modify the > configuration so that the Linux OS can load my module > automatically during reboot? I need to copy my module > to the following directory? > /lib/modules/2.4.7-10/ You don't need to do this, actually, you should _not_ do this. > I've done that. But it doesn't work. > > Any help will be appreciated. Just put the module name in /etc/modules example: I want my network card (3Com 3c905c - 3c59x module), vfat, and ide-scsi (for my IDE burner) to load at boot, so I have in my /etc/modules: 3c59x ide-scsi vfat The order does not matter. -ES Try out Source Mage GNU/Linux now! It's magic! (http://sourcemage.org) -- Eric Sandall | (P)e-mail: sandalle@mail.wsu.edu Debian Linux Beowulf Cluster | (P)web: http://hellhound.homeip.net/ ICQ: 667348 | User 196285: http://counter.li.org/ SysAdmin, Shock Physics, WSU | (W)web: http://www.shock.wsu.edu/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 18:56 ` Eric Kristopher Sandall @ 2002-06-05 19:03 ` John Tyner 2002-06-05 19:08 ` Eric Kristopher Sandall 0 siblings, 1 reply; 28+ messages in thread From: John Tyner @ 2002-06-05 19:03 UTC (permalink / raw) To: Eric Kristopher Sandall; +Cc: Michael Zhu, kernelnewbies, linux-kernel > Just put the module name in /etc/modules This is distribution dependent isn't it? ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 19:03 ` John Tyner @ 2002-06-05 19:08 ` Eric Kristopher Sandall 2002-06-05 19:41 ` Michael Zhu 2002-06-05 20:57 ` Oliver Wegner 0 siblings, 2 replies; 28+ messages in thread From: Eric Kristopher Sandall @ 2002-06-05 19:08 UTC (permalink / raw) To: John Tyner; +Cc: Michael Zhu, kernelnewbies, linux-kernel On Wed, 5 Jun 2002, John Tyner wrote: > > Just put the module name in /etc/modules > > This is distribution dependent isn't it? afaik, it is not distro dependent. I've used /etc/modules in RedHat, Debian, Sorcery, Source Mage, and Mandrake, all to the same effect. -ES -- Eric Sandall | (P)e-mail: sandalle@mail.wsu.edu Debian Linux Beowulf Cluster | (P)web: http://hellhound.homeip.net/ ICQ: 667348 | User 196285: http://counter.li.org/ SysAdmin, Shock Physics, WSU | (W)web: http://www.shock.wsu.edu/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 19:08 ` Eric Kristopher Sandall @ 2002-06-05 19:41 ` Michael Zhu 2002-06-05 20:25 ` Eric Kristopher Sandall 2002-06-05 20:57 ` Oliver Wegner 1 sibling, 1 reply; 28+ messages in thread From: Michael Zhu @ 2002-06-05 19:41 UTC (permalink / raw) To: Eric Kristopher Sandall, John Tyner; +Cc: kernelnewbies, linux-kernel Hi, I couldn't find the /etc/modules file in my Linux machine. There is only a modules.conf file under /etc directory. My Linux is RedHat 7.2 with kernel version 2.4.7-10. What is wrong with this? Michael --- Eric Kristopher Sandall <sandalle@wsunix.wsu.edu> wrote: > On Wed, 5 Jun 2002, John Tyner wrote: > > > > Just put the module name in /etc/modules > > > > This is distribution dependent isn't it? > > afaik, it is not distro dependent. I've used > /etc/modules in RedHat, > Debian, Sorcery, Source Mage, and Mandrake, all to > the same effect. > > -ES > > -- > Eric Sandall | (P)e-mail: > sandalle@mail.wsu.edu > Debian Linux Beowulf Cluster | (P)web: > http://hellhound.homeip.net/ > ICQ: 667348 | User 196285: > http://counter.li.org/ > SysAdmin, Shock Physics, WSU | (W)web: > http://www.shock.wsu.edu/ > ______________________________________________________________________ Movies, Music, Sports, Games! http://entertainment.yahoo.ca ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 19:41 ` Michael Zhu @ 2002-06-05 20:25 ` Eric Kristopher Sandall 2002-06-06 13:27 ` Thunder from the hill 0 siblings, 1 reply; 28+ messages in thread From: Eric Kristopher Sandall @ 2002-06-05 20:25 UTC (permalink / raw) To: Michael Zhu; +Cc: John Tyner, kernelnewbies, linux-kernel On Wed, 5 Jun 2002, Michael Zhu wrote: > Hi, I couldn't find the /etc/modules file in my Linux > machine. There is only a modules.conf file under /etc > directory. My Linux is RedHat 7.2 with kernel version > 2.4.7-10. What is wrong with this? > > Michael Just create the file, and then put in the text. /etc/modules.conf is for module options and aliases. example: My sound card is a sb16, with irq=7 io=0x220, dma1=0, dma2=5 in /etc/modules.conf (this is from memory, might not be exact) alias eth0 3c59x alias sound sb options sb irq=7, io=0x220, dma=0, dma16=5 Now, I can do "modprobe sound"[0] and it will load my sb module with those paramaters. I could also do "modprobe sb" and it will load my sb module with those parameters. I can also do "modprobe eth0" and it will load my 3c59x module. You may also put the aliased names in /etc/modules. example: eth0 sound vfat [0] modprobe is the preferred way to load modules, instead of insmod. modprobe will load any dependencies your module needs, and will unload all of them if one fails to load. -ES -- Eric Sandall | (P)e-mail: sandalle@mail.wsu.edu Debian Linux Beowulf Cluster | (P)web: http://hellhound.homeip.net/ ICQ: 667348 | User 196285: http://counter.li.org/ SysAdmin, Shock Physics, WSU | (W)web: http://www.shock.wsu.edu/ ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 20:25 ` Eric Kristopher Sandall @ 2002-06-06 13:27 ` Thunder from the hill 0 siblings, 0 replies; 28+ messages in thread From: Thunder from the hill @ 2002-06-06 13:27 UTC (permalink / raw) To: Eric Kristopher Sandall Cc: Michael Zhu, John Tyner, kernelnewbies, linux-kernel Hi, On Wed, 5 Jun 2002, Eric Kristopher Sandall wrote: > in /etc/modules.conf (this is from memory, might not be exact) > alias eth0 3c59x > alias sound sb > options sb irq=7, io=0x220, dma=0, dma16=5 Erm, no. You can alias sb as sound, but this won't help you that much. It needs to be char-major-14, and for alsa sound-slot-0 (in addition!). Regards, Thunder -- ship is leaving right on time | Thunder from the hill at ngforever empty harbour, wave goodbye | evacuation of the isle | free inhabitant not directly caveman's paintings drowning | belonging anywhere ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 19:08 ` Eric Kristopher Sandall 2002-06-05 19:41 ` Michael Zhu @ 2002-06-05 20:57 ` Oliver Wegner 2002-06-05 21:37 ` Richard B. Johnson 1 sibling, 1 reply; 28+ messages in thread From: Oliver Wegner @ 2002-06-05 20:57 UTC (permalink / raw) To: Eric Kristopher Sandall, linux-kernel Am Mittwoch, 5. Juni 2002 21:08 schrieb Eric Kristopher Sandall: > On Wed, 5 Jun 2002, John Tyner wrote: > > > Just put the module name in /etc/modules > > > > This is distribution dependent isn't it? > > afaik, it is not distro dependent. I've used /etc/modules in RedHat, > Debian, Sorcery, Source Mage, and Mandrake, all to the same effect. well, i havent found that file /etc/modules in SuSE. am not aware right now how they handle loading modules during boot process... ;) Oliver -- America may be unique in being a country which has leapt from barbarism to decadence without touching civilization. -- John O'Hara ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 20:57 ` Oliver Wegner @ 2002-06-05 21:37 ` Richard B. Johnson 2002-06-05 22:23 ` Oliver Wegner 2002-06-05 22:33 ` Oliver Wegner 0 siblings, 2 replies; 28+ messages in thread From: Richard B. Johnson @ 2002-06-05 21:37 UTC (permalink / raw) To: Oliver Wegner; +Cc: Eric Kristopher Sandall, linux-kernel On Wed, 5 Jun 2002, Oliver Wegner wrote: > Am Mittwoch, 5. Juni 2002 21:08 schrieb Eric Kristopher Sandall: > > On Wed, 5 Jun 2002, John Tyner wrote: > > > > Just put the module name in /etc/modules > > > > > > This is distribution dependent isn't it? > > > > afaik, it is not distro dependent. I've used /etc/modules in RedHat, > > Debian, Sorcery, Source Mage, and Mandrake, all to the same effect. > > well, i havent found that file /etc/modules in SuSE. am not aware right now > how they handle loading modules during boot process... ;) > > Oliver > This is getting "tired". I told you how to find out this information. Here is a SuSE distribution's /etc/modules.conf, complete with its copyright notice. You need to know that Linux uses a strange command interpreter that, unlike windows, does not know how to read one's mind. This means that, should you enter, for instance, `ls /etc/modules`, it isn't going to find it because it doesn't exist. You need to either type its full name or use wild-cards which I won't explain here. # # # Copyright (c) 1996-2000 SuSE GmbH Nuernberg, Germany. All rights reserved. # # Author: Hubert Mantel <mantel@suse.de>, 1996-2000 # # Configuration file for loadable modules; used by modprobe and kerneld # # Aliases - specify your hardware alias eth1 off alias tr0 off alias scsi_hostadapter off alias fb0 off # only used for Mylex or Compaq Raid as module alias block-major-48 off alias block-major-49 off alias block-major-72 off alias block-major-73 off # only needed for fifth and sixth IDE adaptor alias block-major-56 off alias block-major-57 off # mouse (for older busmice) alias char-major-10 off alias parport_lowlevel parport_pc options parport_pc io=0x378 irq=none,none # If you have multiple parallel ports, specify them this way: # options parport_pc io=0x378,0x278 irq=none,none # For parallel port devices, uncomment the following two lines and change # "frpw" to the protocol type you use # post-install paride insmod frpw # pre-remove paride rmmod frpw #***************************************************************************** # If you want to use the kernel sound drivers instead of OSS 3.8.1z (the # recommended solution) please put comment signs in front of the following # entries. Then choose one of the sample configurations below. Uncomment all # lines starting with 'alias', 'options' or 'pre-/post-install' within one # such configuration and modify the parameters according to your needs (e.g. # the ressources chosen for this device in /etc/isapnp.conf). For a lot of # ISA soundcards the Soundblaster driver is a good starting point. #***************************************************************************** alias char-major-14 off alias sound off alias midi off #***************************************************************************** # module : ad1816.o AD1816 chip # # Supported cards : # # Terratec Base 1/64 # HP Kayak # Acer FX-3D # SY-1816 # Highscreen Sound-Boostar 32 Wave 3D # Highscreen Sound-Boostar 16 # # Documentation available in /usr/src/linux/Documentation/sound/AD1816 # and in /usr/src/linux/drivers/sound/ad1816.c . # # Possible configuration : # # alias char-major-14 ad1816 # post-install ad1816 modprobe "-k" opl3 # post-install ad1816 modprobe "-k" mpu401 # options ad1816 io=0x530 irq=5 dma=1 dma2=3 ad1816_clockfreq=33000 # options opl3 io=0x0388 # options mpu401 io=0x0330 irq=9 # #***************************************************************************** # module : ad1848.o AD1848/CS4231/CS4248 Chip # --> Windows Sound System (MSS/WSS) # # A variety of common ISA soundcards are # compatible with this family of chips. # # Documentation available in /usr/src/linux/drivers/sound/ad1848.c (search # for MODULE_PARM) and in /usr/src/linux/Documentation/sound/README.OSS . # Usually this module is used in conjunction with other higher level sound # modules. # # Possible configuration for stand-alone usage : # # alias char-major-14 ad1848 # options ad1848 io=0x530 irq=7 dma=0 dma2=3 # #***************************************************************************** # module : cs4232.o Crystal 423x chipsets # # Documentation available in /usr/src/linux/drivers/sound/cs4232.c (search # for MODULE_PARM) and in /usr/src/linux/Documentation/sound/CS4232 . This # chip is often used together with other sound hardware. # # Possible configuration for stand-alone usage : # # alias char-major-14 cs4232 # post-install cs4232 modprobe "-k" opl3 # options cs4232 io=0x534 irq=5 dma=1 dma2=0 mpuio=0x330 mpuirq=9 # options opl3 io=0x388 # #***************************************************************************** # module : es1370.o Ensoniq 1370 Chipsatz (--> PCI64/128) # # Supported cards : # # Creative Labs PCI64/128 # # Documentation availabke at /usr/src/linux/Documentation/sound/es1370 and # /usr/src/linux/drivers/sound/es1370.c . # # alias char-major-14 es1370 # options es1370 joystick=1 # #***************************************************************************** # module : es1371.o Creative Ensoniq 1371 Chipsatz (--> PCI64/128) # # Supported cards : # # Creative Labs PCI64/128 # # Documentation availabke at /usr/src/linux/Documentation/sound/es1371 and # /usr/src/linux/drivers/sound/es1371.c . # # alias char-major-14 es1371 # options es1371 joystick=0x200 # #***************************************************************************** # module : mad16.o MAD16 # # Possible configuration : # # alias char-major-14 mad16 # options sb mad16=1 # options mad16 io=0x530 irq=7 dma=0 dma16=1 # #***************************************************************************** # module : sb.o Soundblaster 16, SB Pro + Clones # Also needed for AWE32/64 # # Dcoumentation available in /usr/src/linux/Documentation/sound/Soundblaster # and in /usr/src/linux/drivers/sound/sb.c . # # Possible configuration : # # alias char-major-14 sb # post-install sb /sbin/modprobe "-k" "adlib_card" # options sb io=0x220 irq=7 dma=1 dma16=5 mpu_io=0x330 # options adlib_card io=0x388 # #***************************************************************************** # module : trix.o MediaTrix AudioTrix Pro # # alias char-major-14 trix # pre-install trix modprobe "-k" # #***************************************************************************** # module : wavefront.o Turtle Beach Maui, Tropez, Tropez Plus # # Comment from /usr/src/linux/Documentation/sound/Wavefront : # (please read that file !) # "the wavefront options "io" and "irq" ***MUST*** match the "synthio" # and "synthirq" cs4232 options." # # Possible configuration : # # alias char-major-14 wavefront # alias synth0 wavefront # alias mixer0 cs4232 # alias audio0 cs4232 # pre-install wavefront modprobe "-k" "cs4232" # post-install wavefront modprobe "-k" "opl3" # options wavefront io=0x200 irq=9 # options cs4232 synthirq=9 synthio=0x200 io=0x530 irq=5 dma=1 dma2=0 # options opl3 io=0x388 # #***************************************************************************** #***************************************************************************** # Example config for ALSA (for SB16 PnP - like cards) # You don't need to run isapnp with ALSA, it has full PnP support. # See /usr/doc/packages/alsa/README.SuSE #***************************************************************************** # #ALSA native device support: # # alias char-major-116 snd # options snd snd_major=116 snd_cards_limit=1 # #Insert your sound driver name here, and it you have a PCI or PnP card, #you are ready to do "rcsalsactl start": # # alias snd-card-0 snd-card-sb16 # ^^^^^^^^^^^^^ # options snd-card-sb16 snd_index=0 # ^^^^^^^^^^^^^ # #For a list of supported soundcards look into /usr/src/packages/alsa/cards.txt # #OSS/Free emulation # # alias char-major-14 soundcore # alias snd-slot-0 snd-card-0 # alias sound-service-0-0 snd-mixer-oss # alias sound-service-0-1 snd-seq-oss # alias sound-service-0-3 snd-pcm-oss # alias sound-service-0-8 snd-seq-oss # alias sound-service-0-12 snd-pcm-oss # #Set mixer to stored defaults (with alsactl store) # post-install snd alsactl restore # #***************************************************************************** ######################################################################## # Options; these are examples; uncommented and modify the lines you need ######################################################################## # options cdu31a cdu31a_port=0x340 cdu31a_irq=0 # options sbpcd sbpcd=0x230,1 # options aztcd aztcd=0x320 # options cm206 cm206=0x340,11 # options gscd gscd=0x340 # options mcd mcd=0x300,11 # options mcdx mcdx=0x300,11 # options optcd optcd=0x340 # options sjcd sjcd_base=0x340 # options sonycd535 sonycd535=0x340 # options isp16 isp16_cdrom_base=0x340 isp16_cdrom_irq=0 isp16_cdrom_dma=0 isp16_cdrom_type=Sanyo # options ne io=0x300 irq=5 # Use this if you have two cards: # options ne io=0x300,0x320 irq=5,7 # options tulip options=0 # options 3c59x options=0 # options 3c501 io=0x280 irq=5 # options 3c503 io=0x280 irq=5 xcvr=0 # options 3c505 io=0x300 irq=10 # options 3c507 io=0x300 irq=10 # options 3c509 irq=10 # options at1700 io=0x260 irq=10 # options smc-ultra io=0x200 irq=10 # options wd io=0x300 irq=10 # options smc9194 io=0x200 irq=10 ifport=0 # options e2100 io=0x300 irq=10 mem=0xd0000 xcvr=0 # options depca io=0x200 irq=7 # options ewrk3 io=0x300 irq=10 # options eexpress io=0x300 irq=10 # options hp-plus io=0x300 irq=10 # options hp io=0x300 irq=10 # options hp100 hp100_port=0x380 # options apricot io=0x300 irq=10 # options ac3200 io=0x300 irq=10 mem=0xd0000 # options de620 io=0x378 irq=7 bnc=1 # options ibmtr io=0xa20 # options arcnet io=0x300 irq=10 shmem=0xd0000 # options plip io=0x378 irq=7 # options eepro io=0x260 irq=10 mem=0x6000 # options eth16i io=0x2a0 irq=10 # options fmv18x io=0x220 irq=10 # options ni52 io=0x360 irq=9 memstart=0xd0000 memend=0xd4000 # options bttv card=2 # options tuner type=7 options dummy0 -o dummy0 options dummy1 -o dummy1 alias block-major-1 rd alias block-major-2 floppy alias block-major-3 off alias block-major-7 loop alias block-major-8 sd_mod alias block-major-11 sr_mod alias block-major-13 xd alias block-major-15 cdu31a alias block-major-16 gscd alias block-major-17 optcd alias block-major-18 sjcd alias block-major-20 mcdx alias block-major-22 off alias block-major-23 mcd alias block-major-24 sonycd535 alias block-major-25 sbpcd alias block-major-26 sbpcd alias block-major-27 sbpcd alias block-major-28 sbpcd alias block-major-29 aztcd alias block-major-32 cm206 alias block-major-33 off alias block-major-34 off # network block device alias block-major-43 off alias block-major-45 pd alias block-major-46 pcd alias block-major-47 pf alias char-major-4 serial alias char-major-5 serial alias char-major-6 lp alias char-major-9 st alias char-major-10-135 off alias char-major-10-175 agpgart alias char-major-10-240 agpgarti810 alias char-major-15 off alias char-major-19 cyclades alias char-major-20 cyclades alias char-major-21 sg alias char-major-27 ftape # fb alias char-major-29 off alias char-major-30 iBCS alias char-major-36 netlink_dev # alias char-major-43 hisax # alias char-major-44 hisax # alias char-major-45 hisax alias char-major-43 off alias char-major-44 off alias char-major-45 off alias char-major-48 riscom8 alias char-major-49 riscom8 alias char-major-67 coda alias char-major-75 specialix alias char-major-76 specialix alias char-major-81 bttv alias char-major-83 vtx options vtx quiet=1 alias char-major-89 i2c-dev alias char-major-96 pt alias char-major-97 pg alias char-major-107 3dfx alias char-major-108 ppp_async alias char-major-109 lvm # ppp over ethernet alias char-major-144 pppox # IrDA alias char-major-161 ircomm-tty # USB alias char-major-166 acm #alias char-major-180 usbcore alias char-major-240 usb-serial alias binfmt-332 iBCS alias binfmt-518 iBCS alias binfmt-204 binfmt_aout alias binfmt-263 binfmt_aout alias binfmt-264 binfmt_aout alias binfmt-267 binfmt_aout alias binfmt-0064 binfmt_aout alias binfmt-0008 binfmt_aout alias iso9660 isofs alias tty-ldisc-1 slip alias tty-ldisc-3 ppp alias tty-ldisc-5 mkiss # alias tty-ldisc-7 6pack alias tty-ldisc-7 off # IrDA alias tty-ldisc-11 irtty # alias ax0 mkiss alias ax0 off # alias sp0 6pack alias sp0 off alias slip0 slip alias sl0 slip alias slip1 slip alias sl1 slip alias ppp0 ppp alias ppp1 ppp alias plip0 plip alias plip1 plip alias ppp-compress-21 bsd_comp alias ppp-compress-26 ppp_deflate alias net-pf-3 ax25 # alias net-pf-3 off alias net-pf-4 ipx # alias net-pf-4 off alias net-pf-5 appletalk # alias net-pf-5 off alias net-pf-6 netrom # alias net-pf-6 off alias net-pf-10 ipv6 # alias net-pf-10 off alias net-pf-11 rose # alias net-pf-11 off alias net-pf-17 af_packet alias tap0 ethertap alias tap1 ethertap alias tap2 ethertap alias tap3 ethertap alias tap4 ethertap alias tap5 ethertap alias tap6 ethertap alias tap7 ethertap alias tap8 ethertap alias tap9 ethertap alias tap10 ethertap alias tap11 ethertap alias tap12 ethertap alias tap13 ethertap alias tap14 ethertap alias tap15 ethertap # Added by YaST2, do not change alias usb-hostadapter usb-uhci # ALSA section {$#@begin@#$} [don't remove or move this line] vvvvv # # ALSA native device support, generated by YaST2 # alias char-major-116 snd options snd snd_major=116 snd_cards_limit=1 alias snd-card-0 snd-card-es1938 options snd-card-es1938 snd_index=0 snd_id=card1 # # OSS/Free emulation # alias sound-slot-0 snd-card-0 alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss # # ALSA section {$#@_end_@#$} [don't remove or move this line] ^^^^^ # YaST2: Intel Corporation 82557 [Ethernet Pro 100] alias eth0 eepro100 Cheers, Dick Johnson Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips). Windows-2000/Professional isn't. ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 21:37 ` Richard B. Johnson @ 2002-06-05 22:23 ` Oliver Wegner 2002-06-05 23:45 ` Alan Cox 2002-06-05 22:33 ` Oliver Wegner 1 sibling, 1 reply; 28+ messages in thread From: Oliver Wegner @ 2002-06-05 22:23 UTC (permalink / raw) To: root, linux-kernel Am Mittwoch, 5. Juni 2002 23:37 schrieb Richard B. Johnson: > On Wed, 5 Jun 2002, Oliver Wegner wrote: > > Am Mittwoch, 5. Juni 2002 21:08 schrieb Eric Kristopher Sandall: > > > On Wed, 5 Jun 2002, John Tyner wrote: > > > > > Just put the module name in /etc/modules > > > > > > > > This is distribution dependent isn't it? > > > > > > afaik, it is not distro dependent. I've used /etc/modules in > > > RedHat, Debian, Sorcery, Source Mage, and Mandrake, all to the same > > > effect. > > > > well, i havent found that file /etc/modules in SuSE. am not aware > > right now how they handle loading modules during boot process... ;) > > > > Oliver > > This is getting "tired". I told you how to find out this information. all i wanted to point out was that it doesnt seem to be distribution independent as someone had stated before because that file /etc/modules for example doesnt exist under SuSE. i wasnt asking anything about it myself. anyway i will be able to find out that information if i need to sometime. thanks. Oliver -- The first myth of management is that it exists. The second myth of management is that success equals skill. -- Robert Heller ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 22:23 ` Oliver Wegner @ 2002-06-05 23:45 ` Alan Cox 2002-06-05 23:12 ` J.A. Magallon 0 siblings, 1 reply; 28+ messages in thread From: Alan Cox @ 2002-06-05 23:45 UTC (permalink / raw) To: Oliver Wegner; +Cc: root, linux-kernel On Wed, 2002-06-05 at 23:23, Oliver Wegner wrote: > all i wanted to point out was that it doesnt seem to be distribution > independent as someone had stated before because that file /etc/modules > for example doesnt exist under SuSE. i wasnt asking anything about it > myself. > > anyway i will be able to find out that information if i need to sometime. > thanks. modules.conf is the standard name for it. A long time ago it was sometimes called conf.modules. ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 23:45 ` Alan Cox @ 2002-06-05 23:12 ` J.A. Magallon 0 siblings, 0 replies; 28+ messages in thread From: J.A. Magallon @ 2002-06-05 23:12 UTC (permalink / raw) To: Alan Cox; +Cc: Oliver Wegner, root, linux-kernel On 2002.06.06 Alan Cox wrote: >On Wed, 2002-06-05 at 23:23, Oliver Wegner wrote: >> all i wanted to point out was that it doesnt seem to be distribution >> independent as someone had stated before because that file /etc/modules >> for example doesnt exist under SuSE. i wasnt asking anything about it >> myself. >> >> anyway i will be able to find out that information if i need to sometime. >> thanks. > >modules.conf is the standard name for it. A long time ago it was >sometimes called conf.modules. > Usually there is an rc script called /etc/rc.d/rc.modules. It can load modules directly (perhaps this is the case on SuSE and RH), or it reads the list of modules to load from an independent file (/etc/modules in Mandrake, for example). In the first case you add the 'modprobe xxxx' directly in the rc script, and in the second you just add 'xxxx' in /etc/modules, so you do not modify a system file and rpm is happy about .rpmnew files. -- J.A. Magallon # Let the source be with you... mailto:jamagallon@able.es Mandrake Linux release 8.3 (Cooker) for i586 Linux werewolf 2.4.19-pre10-jam1 #3 SMP jue jun 6 00:00:33 CEST 2002 i686 ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically 2002-06-05 21:37 ` Richard B. Johnson 2002-06-05 22:23 ` Oliver Wegner @ 2002-06-05 22:33 ` Oliver Wegner 1 sibling, 0 replies; 28+ messages in thread From: Oliver Wegner @ 2002-06-05 22:33 UTC (permalink / raw) To: root, linux-kernel Am Mittwoch, 5. Juni 2002 23:37 schrieb Richard B. Johnson: > On Wed, 5 Jun 2002, Oliver Wegner wrote: > > Am Mittwoch, 5. Juni 2002 21:08 schrieb Eric Kristopher Sandall: > > > On Wed, 5 Jun 2002, John Tyner wrote: > > > > > Just put the module name in /etc/modules > > > > > > > > This is distribution dependent isn't it? > > > > > > afaik, it is not distro dependent. I've used /etc/modules in > > > RedHat, Debian, Sorcery, Source Mage, and Mandrake, all to the same > > > effect. > > > > well, i havent found that file /etc/modules in SuSE. am not aware > > right now how they handle loading modules during boot process... ;) > > > > Oliver > [...] You need to know that Linux uses a strange command > interpreter that, unlike windows, does not know how to read one's > mind. i never asked linux to read my mind and i know about the differences between windows and linux. i appreciate that linux doesnt try to do everything automatically. thats one reason why i use linux ;) > This means that, should you enter, for instance, `ls > /etc/modules`, it isn't going to find it because it doesn't exist. You > need to either type its full name or use wild-cards which I won't > explain here. i am aware of all that of course, i think everybody who reads this mailinglist knows how to handle shell commands and wildcards so i wonder why you mention it here though. maybe you should consider writing a book for linux beginners ;) Oliver ^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: Load kernel module automatically
@ 2002-06-06 13:29 Thunder from the hill
0 siblings, 0 replies; 28+ messages in thread
From: Thunder from the hill @ 2002-06-06 13:29 UTC (permalink / raw)
To: Michael Zhu; +Cc: markh, kernelnewbies, Linux Kernel Mailing List
Hi,
On Wed, 5 Jun 2002, Michael Zhu wrote:
> Hi, I've read the man page of modules.conf. But I
> still couldn't figure out how to solve my problem. I
> mean how to change the modules.conf file. Can I edit
> this file directly? Can anyone give me an example?
>
> Thanks.
/etc/modules.conf is quite useful if you work with /dev files w/0 devfs,
protocol families etc.
Example: you have your sound driver compiled as a module. In /dev you have
a couple of sound character devs with major number 14. Now you write an
alias for it into your /etc/modules.conf:
alias char-major-14 soundcore
Example: you have your ipv6 over ipv4 compiled as a module. Your protocol
family 41 requires ipv6 to be loaded. Therefore say:
alias net-pf-41 ipv6
Regards,
Thunder
--
ship is leaving right on time | Thunder from the hill at ngforever
empty harbour, wave goodbye |
evacuation of the isle | free inhabitant not directly
caveman's paintings drowning | belonging anywhere
^ permalink raw reply [flat|nested] 28+ messages in threadend of thread, other threads:[~2002-06-07 14:52 UTC | newest] Thread overview: 28+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-06-04 19:38 Load kernel module automatically Michael Zhu 2002-06-04 19:46 ` Richard B. Johnson 2002-06-04 19:49 ` Mark Hounschell 2002-06-05 19:47 ` Michael Zhu 2002-06-05 20:07 ` Måns Rullgård 2002-06-06 0:00 ` Keith Owens 2002-06-06 8:59 ` Jan Hudec 2002-06-06 9:16 ` Mark Hounschell 2002-06-06 11:22 ` Jan Hudec 2002-06-06 13:24 ` Mark Hounschell 2002-06-07 3:42 ` Andrew Rodland 2002-06-04 22:27 ` Jan Hudec 2002-06-04 22:54 ` Austin Gonyou 2002-06-04 23:27 ` Mark Hounschell 2002-06-05 0:11 ` Austin Gonyou 2002-06-05 18:56 ` Eric Kristopher Sandall 2002-06-05 19:03 ` John Tyner 2002-06-05 19:08 ` Eric Kristopher Sandall 2002-06-05 19:41 ` Michael Zhu 2002-06-05 20:25 ` Eric Kristopher Sandall 2002-06-06 13:27 ` Thunder from the hill 2002-06-05 20:57 ` Oliver Wegner 2002-06-05 21:37 ` Richard B. Johnson 2002-06-05 22:23 ` Oliver Wegner 2002-06-05 23:45 ` Alan Cox 2002-06-05 23:12 ` J.A. Magallon 2002-06-05 22:33 ` Oliver Wegner -- strict thread matches above, loose matches on Subject: below -- 2002-06-06 13:29 Thunder from the hill
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox