Differences between revisions 1 and 2
Revision 1 as of 2008-09-13 15:01:07
Size: 3616
Editor: FranklinPiat
Comment: New page, based on "ModulesConf", and others.
Revision 2 as of 2008-09-13 15:09:44
Size: 3617
Editor: FranklinPiat
Comment: missing "}"
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
 * Extra modules, that's aren't in Linux kernel. Those are usually built using DebPkg:module-assistant. List of available modules can be listed by running {{{apt-cache rdepends module-assistant}}}. ''Note:'' some of those packages are in {{{contrib}}}, or {{{non-free}} sections.  * Extra modules, that's aren't in Linux kernel. Those are usually built using DebPkg:module-assistant. List of available modules can be listed by running {{{apt-cache rdepends module-assistant}}}. ''Note:'' some of those packages are in {{{contrib}}}, or {{{non-free}}} sections.

This page is an introduction and FAQ for Modules. It is not intended to replace official documentation (listed at the bottom of the page).

  • ?TableOfContents(2)

Kernel Modules

Under Debian, the module can be installed from three different kind of sources :

  • Upstream (Linux) Kernel modules : Those are shipped in the linux-image-2.6 kernel packages.

  • Extra modules, that's aren't in Linux kernel. Those are usually built using module-assistant. List of available modules can be listed by running apt-cache rdepends module-assistant. Note: some of those packages are in contrib, or non-free sections.

  • Others, like Third party, Proprietary and other or Binary blobs modules... You should not install such modules on your system.

Automatic loading of modules

  • {i} Nowadays, most modules related to hardware support should be automatically loaded, thanks to ["udev"] and modules alias that are hardcoded in kernel modules (see the alias fields in modinfo snd-hda-intel outpur).

If you want to get a module to autoload when a device is accessed you can often add a file to /etc/modutils and run update-modules to generate /etc/modules.conf . When the kernel receives a request to open a device file that it does not have capabilities for it issues a request to modprobe for the module char-major-n' or block-major-n' depending on whether the device is a character or block device, and the device's major number, n. For example, my sound devices have major number 14, and my sound module is emu10k1 so added the alias below to my /etc/modutils directory.

$ ls -l /dev/dsp
crw-rw----    1 root     audio     14,   3 Jul  5  2000 /dev/dsp

$ cat /etc/modutils/sound
alias char-major-14 emu10k1

Alias

This file links specific ["Kernel"] module names to the service names the kernel knows (aliases).

As a very simple example, it could link the service eth0 to the kernel driver module for the particular ethernet card you installed in your computer.

The alias directive can be used to give alias names to modules. A line in /etc/modules.conf that look like this:

 alias iso9660 isofs 

makes it possible to write modprobe iso9660 although there is no object file for such module available.

See Also


CategoryKernel