Re: 2.6.0 + where is /etc/modules?

2004-01-04 Thread Pascal Seiler
As a not for long time Linux (debian) user I'm totally confused about
loading kernel modules in Kernel 2.6.0. I figured out that Kernel 2.6.0
uses module-init-tools. I dought that this will autodetect needed
modules at boot time and then load them. False?

Is it correct that modules I wish to load at boot time need still be
listed in /etc/modules? Are they other ways to load modules?

Sorry but I now googled for days and couldn't find a documentation about
modules in Kernel 2.6.0 that could me explain these things in an easy
(for my bad brain) way.

Does anybody know such a documentation.

Thx for any comment or response

Pascal


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: 2.6.0 + where is /etc/modules?

2004-01-04 Thread ben_foley
On Sun, Jan 04, 2004 at 05:29:34PM +0100, Pascal Seiler wrote:
 As a not for long time Linux (debian) user I'm totally confused about
 loading kernel modules in Kernel 2.6.0. I figured out that Kernel 2.6.0
 uses module-init-tools. I dought that this will autodetect needed
 modules at boot time and then load them. False?

module-init-tools?

 Is it correct that modules I wish to load at boot time need still be
 listed in /etc/modules? Are they other ways to load modules?

true enough, but you probably need to bake your own kernel to select whatever modules 
are
lacking.

 
 Sorry but I now googled for days and couldn't find a documentation about
 modules in Kernel 2.6.0 that could me explain these things in an easy
 (for my bad brain) way.
 
 Does anybody know such a documentation.
 
 Thx for any comment or response
 
 Pascal
 
 
 -- 
 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]



Re: [DEB-USER] Re: 2.6.0 + where is /etc/modules?

2004-01-04 Thread Paul M Foster
On Sun, Jan 04, 2004 at 05:29:34PM +0100, Pascal Seiler wrote:

 As a not for long time Linux (debian) user I'm totally confused about
 loading kernel modules in Kernel 2.6.0. I figured out that Kernel 2.6.0
 uses module-init-tools. I dought that this will autodetect needed
 modules at boot time and then load them. False?
 
 Is it correct that modules I wish to load at boot time need still be
 listed in /etc/modules? Are they other ways to load modules?

I don't know how Debian will be setting it up in the future, but for
kernel 2.6, the module handling is different. Instead of
/etc/modules.conf, 2.6 uses a file called /etc/modprobe.conf, with a
slightly different syntax. With the module-init-tools package (which I
presume is part of the 2.6 bundle), there is a script that converts your
/etc/modules.conf to /etc/modprobe.conf. Likewise, with the
documentation for that package, it briefly explains the differences in
the two formats.

I have not done all this myself. I saw a post about it, and decided to
check it out in advance of installing a 2.6 kernel. I downloaded the
module-init-tools package and examined its docs and the script I
mentioned. If you google for module-init-tools, you'll find where to
download it.

Paul


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: 2.6.0 + where is /etc/modules?

2003-10-17 Thread Andrew Schulman
 Documentation on how to load modules in 2.6.0 on
 Debian is a mess.

Don't be too hard on Debian.  Things have changed in 2.6.0, and it's true that 
the docs haven't caught up yet.  But this isn't surprising.  Give the 
maintainers some more time to catch up.

Meanwhile here's what I've figured out:

For kernel 2.4 and below, modprobe et al. were provided by the modutils 
package.  For 2.6 and above, now it's module-init-tools.  The 
module-init-tools are compatible with the new module loader in 2.6, and also 
backwards compatible with kernel 2.4 and earlier. (In fact they just call the 
old modutils if they detect a 2.4 kernel).  The modutils are still there (if 
you still have modutils installed), but they've been renamed, e.g. 
update-modules to update-modules.modutils.

With modutils, I put alias and option file fragments into /etc/modutils.  
update-modules would assemble the parts into /etc/modules.conf and then run 
depmod -a to update /lib/modules/kernel version/modules.dep.

With module-init-tools, alias and option file fragments now go into /etc/
modprobe.d.  (One set can also be put into /etc/modprobe.conf.)  
update-modules now generates /lib/modules/modprobe.conf, which kernel 2.6 
apparently wants to see.  It also still maintains /etc/modules.conf.

Now that we're using module-init-tools, it would be nice to get rid of 
modutils, to cut down on the amount of this junk.  I find it confusing to 
have both sets of files present at once, and I'm sure I'm not alone.  But in 
my case hotplug still depends on modutils, so for now I'm stuck with it.

See also:
/usr/share/doc/module-init-tools/FAQ
/usr/src/linux/Documentation/Changes
http://kerneltrap.org/node/view/799 - How to upgrade to 2.6

Hope that helps.
Andrew.

-- 
To reply by email, change deadspam.com to alumni.utexas.net


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: 2.6.0 + where is /etc/modules?

2003-10-17 Thread Marc Wilson
On Fri, Oct 17, 2003 at 11:06:46AM -0700, Hugo Vanwoerkom wrote:
 Trying to load a sound module that was in /etc/modules
 in 2.4.21 as cs4232.
 /etc/modules is no longer used in 2.6.0. Everything in
 the Debian Manual refers to /etc/modules.

Just as an aside, /etc/modules wasn't used in 2.4.x or 2.2.x, either.  It's
a Debian-ism.  Modules listed there are loaded during boot by the
/etc/init.d/modutils script (beginning at line 16 of that script).

If you had your modules set up properly, you wouldn't need to use
/etc/modules.  It's a crutch.

I have no idea whatsoever if that script still exists if you're using the
module-init-tools package to support 2.6.x, nor do I care.  I'm not about
to run 2.6, nor will I until there's some demonstrated advantage in it.

Your mileage may vary.

-- 
 Marc Wilson | Yow!  I want my nose in lights!
 [EMAIL PROTECTED] |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]