[02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[c439b8a] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[02095ae] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-module-init-tools" role="wrap">
|
---|
| 9 | <?dbhtml filename="module-init-tools.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Module-Init-Tools-&module-init-tools-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-module-init-tools">
|
---|
| 14 | <primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Module-Init-Tools package contains programs for handling kernel
|
---|
| 21 | modules in Linux kernels greater than or equal to version 2.5.47.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
[12e6567] | 25 | &env-target;
|
---|
| 26 |
|
---|
[02095ae] | 27 | <sect2 role="installation">
|
---|
| 28 | <title>Installation of Module-Init-Tools</title>
|
---|
| 29 |
|
---|
[cec581c] | 30 | <para os="p1">The following patch contains the man-pages for Module Init Tools:</para>
|
---|
| 31 |
|
---|
| 32 | <screen os="p2"><userinput>patch -Np1 -i ../&module-init-tools-manpages-patch;</userinput></screen>
|
---|
| 33 |
|
---|
[02095ae] | 34 | <para os="a">Prepare Module-Init-Tools for compilation:</para>
|
---|
| 35 |
|
---|
[cee2ca2] | 36 | <screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
---|
[cfaf68c] | 37 | --prefix=/usr --bindir=/bin \
|
---|
| 38 | --sbindir=/sbin --enable-zlib</userinput></screen>
|
---|
[02095ae] | 39 |
|
---|
| 40 | <variablelist os="c">
|
---|
| 41 | <title>The meaning of the configure options:</title>
|
---|
| 42 |
|
---|
| 43 | <varlistentry>
|
---|
| 44 | <term><parameter>--enable-zlib</parameter></term>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>This allows the Module-Init-Tools package to handle compressed
|
---|
| 47 | kernel modules.</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | </varlistentry>
|
---|
| 50 |
|
---|
| 51 | </variablelist>
|
---|
| 52 |
|
---|
| 53 | <para os="d">Compile the package:</para>
|
---|
| 54 |
|
---|
| 55 | <screen os="e"><userinput>make</userinput></screen>
|
---|
| 56 |
|
---|
| 57 | <para os="f">Install the package:</para>
|
---|
| 58 |
|
---|
[586feb7] | 59 | <screen os="g"><userinput>make DESTDIR=${CLFS} INSTALL=install install</userinput></screen>
|
---|
[82b662d] | 60 |
|
---|
| 61 | <variablelist os="h">
|
---|
| 62 | <title>The meaning of the make parameter:</title>
|
---|
| 63 | <varlistentry>
|
---|
| 64 | <term><parameter>INSTALL=install</parameter></term>
|
---|
| 65 | <listitem>
|
---|
[14ab808] | 66 | <para>Normally, <command>make install</command> will not install the
|
---|
| 67 | binaries if they already exist. This option overrides that behavior
|
---|
| 68 | by calling <command>install</command> instead of using the default
|
---|
| 69 | wrapper script.</para>
|
---|
[82b662d] | 70 | </listitem>
|
---|
| 71 | </varlistentry>
|
---|
| 72 | </variablelist>
|
---|
[02095ae] | 73 |
|
---|
| 74 | </sect2>
|
---|
| 75 |
|
---|
| 76 | <sect2 id="contents-module-init-tools" role="content">
|
---|
| 77 | <title>Contents of Module-Init-Tools</title>
|
---|
| 78 |
|
---|
| 79 | <segmentedlist>
|
---|
| 80 | <segtitle>Installed programs</segtitle>
|
---|
| 81 |
|
---|
| 82 | <seglistitem>
|
---|
[59fb197] | 83 | <seg>depmod, generate-modprobe.conf, insmod, insmod.static,
|
---|
| 84 | lsmod (link to insmod), modinfo, modprobe (link to insmod), and
|
---|
| 85 | rmmod (link to insmod)</seg>
|
---|
[02095ae] | 86 | </seglistitem>
|
---|
| 87 | </segmentedlist>
|
---|
| 88 |
|
---|
| 89 | <variablelist>
|
---|
| 90 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 91 | <?dbfo list-presentation="list"?>
|
---|
| 92 | <?dbhtml list-presentation="table"?>
|
---|
| 93 |
|
---|
| 94 | <varlistentry id="depmod">
|
---|
| 95 | <term><command>depmod</command></term>
|
---|
| 96 | <listitem>
|
---|
| 97 | <para>Creates a dependency file based on the symbols it finds in
|
---|
| 98 | the existing set of modules; this dependency file is used by
|
---|
| 99 | <command>modprobe</command> to automatically load the required
|
---|
| 100 | modules</para>
|
---|
| 101 | <indexterm zone="ch-system-module-init-tools depmod">
|
---|
| 102 | <primary sortas="b-depmod">depmod</primary>
|
---|
| 103 | </indexterm>
|
---|
| 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 |
|
---|
[59fb197] | 107 | <varlistentry id="generate-modprobe.conf">
|
---|
| 108 | <term><command>generate-modprobe.conf</command></term>
|
---|
| 109 | <listitem>
|
---|
| 110 | <para>Creates a modprobe.conf file from an existing 2.2 or 2.4
|
---|
| 111 | module setup</para>
|
---|
| 112 | <indexterm zone="ch-system-module-init-tools generate-modprobe.conf">
|
---|
| 113 | <primary sortas="b-generate-modprobe.conf">generate-modprobe.conf</primary>
|
---|
| 114 | </indexterm>
|
---|
| 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
| 117 |
|
---|
[02095ae] | 118 | <varlistentry id="insmod">
|
---|
| 119 | <term><command>insmod</command></term>
|
---|
| 120 | <listitem>
|
---|
| 121 | <para>Installs a loadable module in the running kernel</para>
|
---|
| 122 | <indexterm zone="ch-system-module-init-tools insmod">
|
---|
| 123 | <primary sortas="b-insmod">insmod</primary>
|
---|
| 124 | </indexterm>
|
---|
| 125 | </listitem>
|
---|
| 126 | </varlistentry>
|
---|
| 127 |
|
---|
| 128 | <varlistentry id="insmod.static">
|
---|
| 129 | <term><command>insmod.static</command></term>
|
---|
| 130 | <listitem>
|
---|
| 131 | <para>A statically compiled version of <command>insmod</command></para>
|
---|
| 132 | <indexterm zone="ch-system-module-init-tools insmod.static">
|
---|
| 133 | <primary sortas="b-insmod.static">insmod.static</primary>
|
---|
| 134 | </indexterm>
|
---|
| 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
| 137 |
|
---|
| 138 | <varlistentry id="lsmod">
|
---|
| 139 | <term><command>lsmod</command></term>
|
---|
| 140 | <listitem>
|
---|
| 141 | <para>Lists currently loaded modules</para>
|
---|
| 142 | <indexterm zone="ch-system-module-init-tools lsmod">
|
---|
| 143 | <primary sortas="b-lsmod">lsmod</primary>
|
---|
| 144 | </indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="modinfo">
|
---|
| 149 | <term><command>modinfo</command></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>Examines an object file associated with a kernel module and
|
---|
| 152 | displays any information that it can glean</para>
|
---|
| 153 | <indexterm zone="ch-system-module-init-tools modinfo">
|
---|
| 154 | <primary sortas="b-modinfo">modinfo</primary>
|
---|
| 155 | </indexterm>
|
---|
| 156 | </listitem>
|
---|
| 157 | </varlistentry>
|
---|
| 158 |
|
---|
| 159 | <varlistentry id="modprobe">
|
---|
| 160 | <term><command>modprobe</command></term>
|
---|
| 161 | <listitem>
|
---|
| 162 | <para>Uses a dependency file, created by <command>depmod</command>,
|
---|
| 163 | to automatically load relevant modules</para>
|
---|
| 164 | <indexterm zone="ch-system-module-init-tools modprobe">
|
---|
| 165 | <primary sortas="b-modprobe">modprobe</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="rmmod">
|
---|
| 171 | <term><command>rmmod</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>Unloads modules from the running kernel</para>
|
---|
| 174 | <indexterm zone="ch-system-module-init-tools rmmod">
|
---|
| 175 | <primary sortas="b-rmmod">rmmod</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | </variablelist>
|
---|
| 181 |
|
---|
| 182 | </sect2>
|
---|
| 183 |
|
---|
| 184 | </sect1>
|
---|