[9dfc02f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[9dfc02f] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[81fd230] | 6 | <sect1 id="ch-system-module-init-tools" role="wrap">
|
---|
[9dfc02f] | 7 | <title>Module-Init-Tools-&module-init-tools-version;</title>
|
---|
| 8 | <?dbhtml filename="module-init-tools.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-module-init-tools"><primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary></indexterm>
|
---|
| 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[81fd230] | 13 | <para>The Module-Init-Tools package contains programs for handling kernel
|
---|
| 14 | modules in Linux kernels greater than or equal to version 2.5.47.</para>
|
---|
[9dfc02f] | 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
[6856842] | 19 | <seglistitem><seg>0.3 SBU</seg><seg>3.3 MB</seg></seglistitem>
|
---|
[a001133] | 20 | </segmentedlist>
|
---|
[9dfc02f] | 21 |
|
---|
[81fd230] | 22 | <segmentedlist>
|
---|
[45992ae] | 23 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 24 | <seglistitem><seg>Bash, Binutils, Bison,
|
---|
| 25 | Coreutils, Diffutils, Flex, GCC, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
|
---|
| 26 | </segmentedlist>
|
---|
[a001133] | 27 | </sect2>
|
---|
[9dfc02f] | 28 |
|
---|
[a001133] | 29 | <sect2 role="installation">
|
---|
[9dfc02f] | 30 | <title>Installation of Module-Init-Tools</title>
|
---|
| 31 |
|
---|
[6856842] | 32 | <para>Issue the following commands to perform the tests (note that the
|
---|
| 33 | <command>make distclean</command> command is required to clean up the source
|
---|
| 34 | tree, as the source gets recompiled as part of the testing process):</para>
|
---|
[aa8363a] | 35 |
|
---|
[6856842] | 36 | <screen><userinput>./configure &&
|
---|
[89cca6e] | 37 | make check &&
|
---|
| 38 | make distclean</userinput></screen>
|
---|
| 39 |
|
---|
[9dfc02f] | 40 | <para>Prepare Module-Init-Tools for compilation:</para>
|
---|
| 41 |
|
---|
[6856842] | 42 | <screen><userinput>./configure --prefix="" --mandir=/usr/share/man \
|
---|
| 43 | --enable-zlib</userinput></screen>
|
---|
[9dfc02f] | 44 |
|
---|
[e5846ef] | 45 | <para>The meaning of the configure options:</para>
|
---|
| 46 |
|
---|
| 47 | <variablelist>
|
---|
| 48 | <varlistentry>
|
---|
[6856842] | 49 | <term><parameter>--mandir=/usr/share/man</parameter></term>
|
---|
| 50 | <listitem><para>This ensures the man pages are installed in the correct
|
---|
| 51 | location.</para></listitem>
|
---|
| 52 | </varlistentry>
|
---|
| 53 | <varlistentry>
|
---|
[e5846ef] | 54 | <term><parameter>--enable-zlib</parameter></term>
|
---|
| 55 | <listitem><para>This allows the Module-Init-Tools package to handle compressed
|
---|
| 56 | kernel modules.</para></listitem>
|
---|
| 57 | </varlistentry>
|
---|
| 58 | </variablelist>
|
---|
| 59 |
|
---|
[9dfc02f] | 60 | <para>Compile the package:</para>
|
---|
| 61 |
|
---|
[aa8363a] | 62 | <screen><userinput>make</userinput></screen>
|
---|
[81fd230] | 63 |
|
---|
| 64 | <para>Install the package:</para>
|
---|
[9dfc02f] | 65 |
|
---|
| 66 | <screen><userinput>make install</userinput></screen>
|
---|
| 67 |
|
---|
| 68 | </sect2>
|
---|
| 69 |
|
---|
| 70 |
|
---|
[c6cb3aa] | 71 | <sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
|
---|
[9dfc02f] | 72 |
|
---|
[81fd230] | 73 | <segmentedlist>
|
---|
| 74 | <segtitle>Installed programs</segtitle>
|
---|
[6856842] | 75 | <seglistitem><seg>depmod, generate-modprobe.conf, insmod,
|
---|
| 76 | insmod.static, lsmod, modinfo, modprobe, and rmmod</seg></seglistitem>
|
---|
[81fd230] | 77 | </segmentedlist>
|
---|
| 78 |
|
---|
| 79 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 80 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 81 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 82 |
|
---|
| 83 | <varlistentry id="depmod">
|
---|
| 84 | <term><command>depmod</command></term>
|
---|
| 85 | <listitem>
|
---|
| 86 | <para>Creates a dependency file based on the symbols it finds in the
|
---|
| 87 | existing set of modules; this dependency file is used by <command>modprobe</command> to
|
---|
| 88 | automatically load the required modules</para>
|
---|
| 89 | <indexterm zone="ch-system-module-init-tools depmod"><primary sortas="b-depmod">depmod</primary></indexterm>
|
---|
| 90 | </listitem>
|
---|
| 91 | </varlistentry>
|
---|
| 92 |
|
---|
[6856842] | 93 | <varlistentry id="generate-modprobe.conf">
|
---|
| 94 | <term><command>generate-modprobe.conf</command></term>
|
---|
| 95 | <listitem>
|
---|
| 96 | <para>Creates a modprobe.conf file from an existing 2.2 or 2.4 module setup</para>
|
---|
| 97 | <indexterm zone="ch-system-module-init-tools generate-modprobe.conf"><primary sortas="b-generate-modprobe.conf">generate-modprobe.conf</primary></indexterm>
|
---|
| 98 | </listitem>
|
---|
| 99 | </varlistentry>
|
---|
| 100 |
|
---|
[81fd230] | 101 | <varlistentry id="insmod">
|
---|
| 102 | <term><command>insmod</command></term>
|
---|
| 103 | <listitem>
|
---|
| 104 | <para>Installs a loadable module in the running kernel</para>
|
---|
| 105 | <indexterm zone="ch-system-module-init-tools insmod"><primary sortas="b-insmod">insmod</primary></indexterm>
|
---|
| 106 | </listitem>
|
---|
| 107 | </varlistentry>
|
---|
| 108 |
|
---|
[bc2136e] | 109 | <varlistentry id="insmod.static">
|
---|
| 110 | <term><command>insmod.static</command></term>
|
---|
[81fd230] | 111 | <listitem>
|
---|
[20549627] | 112 | <para>A statically compiled version of <command>insmod</command></para>
|
---|
[bc2136e] | 113 | <indexterm zone="ch-system-module-init-tools insmod.static"><primary
|
---|
| 114 | sortas="b-insmod.static">insmod.static</primary></indexterm>
|
---|
[81fd230] | 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
| 117 |
|
---|
| 118 | <varlistentry id="lsmod">
|
---|
| 119 | <term><command>lsmod</command></term>
|
---|
| 120 | <listitem>
|
---|
| 121 | <para>Lists currently loaded modules</para>
|
---|
| 122 | <indexterm zone="ch-system-module-init-tools lsmod"><primary sortas="b-lsmod">lsmod</primary></indexterm>
|
---|
| 123 | </listitem>
|
---|
| 124 | </varlistentry>
|
---|
| 125 |
|
---|
| 126 | <varlistentry id="modinfo">
|
---|
| 127 | <term><command>modinfo</command></term>
|
---|
| 128 | <listitem>
|
---|
| 129 | <para>Examines an object file associated with a kernel module and
|
---|
| 130 | displays any information that it can glean</para>
|
---|
| 131 | <indexterm zone="ch-system-module-init-tools modinfo"><primary sortas="b-modinfo">modinfo</primary></indexterm>
|
---|
| 132 | </listitem>
|
---|
| 133 | </varlistentry>
|
---|
| 134 |
|
---|
| 135 | <varlistentry id="modprobe">
|
---|
| 136 | <term><command>modprobe</command></term>
|
---|
| 137 | <listitem>
|
---|
| 138 | <para>Uses a dependency file, created by
|
---|
| 139 | <command>depmod</command>, to automatically load relevant modules</para>
|
---|
| 140 | <indexterm zone="ch-system-module-init-tools modprobe"><primary sortas="b-modprobe">modprobe</primary></indexterm>
|
---|
| 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 |
|
---|
| 144 | <varlistentry id="rmmod">
|
---|
| 145 | <term><command>rmmod</command></term>
|
---|
| 146 | <listitem>
|
---|
| 147 | <para>Unloads modules from the running kernel</para>
|
---|
| 148 | <indexterm zone="ch-system-module-init-tools rmmod"><primary sortas="b-rmmod">rmmod</primary></indexterm>
|
---|
| 149 | </listitem>
|
---|
| 150 | </varlistentry>
|
---|
| 151 | </variablelist>
|
---|
[9dfc02f] | 152 |
|
---|
| 153 | </sect2>
|
---|
| 154 |
|
---|
| 155 | </sect1>
|
---|
[81fd230] | 156 |
|
---|