source: BOOK/final-system/common/module-init-tools.xml@ 17c95250

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 17c95250 was 4759399, checked in by Chris Staub <chris@…>, 15 years ago

Corrected instructions for module-init-tools testsuite

  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[7f2a588]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
25 <sect2 role="installation">
26 <title>Installation of Module-Init-Tools</title>
27
[c4534a5]28 <para os="c">Issue the following commands to perform the tests</para>
29
30 <note os="cc">
[af4f700]31 <para>The <command>make clean</command> command is required to clean up
32 the source tree, otherwise the code built for testing will be installed,
33 and the test version of <command>modprobe</command> does not function
34 outside the test environment.</para>
[c4534a5]35 </note>
[86b01c92]36
37<screen os="d"><userinput>./configure &amp;&amp;
[0f9d1e9]38make check &amp;&amp;
[4759399]39./tests/runtests &amp;&amp;
[c4534a5]40make clean</userinput></screen>
[c999585]41
[e0e40d3]42 <para os="e">Prepare Module-Init-Tools for compilation:</para>
[3f8be484]43
[f4cc1c2]44<screen os="f"><userinput>./configure --prefix=/usr \
[1e58202]45 --bindir=/bin --sbindir=/sbin \
[e60a7f6]46 --enable-zlib-dynamic</userinput></screen>
[3f8be484]47
[e0e40d3]48 <variablelist os="g">
[da0b4a3]49 <title>The meaning of the configure option:</title>
[3f8be484]50
51 <varlistentry>
[e60a7f6]52 <term><parameter>--enable-zlib-dynamic</parameter></term>
[3f8be484]53 <listitem>
54 <para>This allows the Module-Init-Tools package to handle compressed
55 kernel modules.</para>
56 </listitem>
57 </varlistentry>
58
59 </variablelist>
60
[e0e40d3]61 <para os="h">Compile the package:</para>
[3f8be484]62
[b3dfbf1]63<screen os="i"><userinput>make DOCBOOKTOMAN=""</userinput></screen>
[c6c6c35]64
[e0e40d3]65 <para os="j">Install the package:</para>
[3f8be484]66
[e69b20a]67<screen os="k"><userinput>make INSTALL=install install</userinput></screen>
68
[694e331]69 <variablelist os="l">
[c6c6c35]70 <title>The meaning of the make install parameter:</title>
[e69b20a]71 <varlistentry>
72 <term><parameter>INSTALL=install</parameter></term>
73 <listitem>
[040521bc]74 <para>Normally, <command>make install</command> will not install the binaries if they
[e69b20a]75 already exist. This option overrides that behavior by calling
76 <command>install</command> instead of using the default wrapper
77 script.</para>
78 </listitem>
79 </varlistentry>
80 </variablelist>
81
[3f8be484]82 </sect2>
83
84 <sect2 id="contents-module-init-tools" role="content">
85 <title>Contents of Module-Init-Tools</title>
86
87 <segmentedlist>
88 <segtitle>Installed programs</segtitle>
89
90 <seglistitem>
[188b6b2]91 <seg>depmod, insmod, insmod.static, lsmod, modinfo, modprobe, and
92 rmmod</seg>
[3f8be484]93 </seglistitem>
94 </segmentedlist>
95
96 <variablelist>
97 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
98 <?dbfo list-presentation="list"?>
99 <?dbhtml list-presentation="table"?>
100
101 <varlistentry id="depmod">
102 <term><command>depmod</command></term>
103 <listitem>
104 <para>Creates a dependency file based on the symbols it finds in
105 the existing set of modules; this dependency file is used by
106 <command>modprobe</command> to automatically load the required
107 modules</para>
108 <indexterm zone="ch-system-module-init-tools depmod">
109 <primary sortas="b-depmod">depmod</primary>
110 </indexterm>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry id="insmod">
115 <term><command>insmod</command></term>
116 <listitem>
117 <para>Installs a loadable module in the running kernel</para>
118 <indexterm zone="ch-system-module-init-tools insmod">
119 <primary sortas="b-insmod">insmod</primary>
120 </indexterm>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry id="insmod.static">
125 <term><command>insmod.static</command></term>
126 <listitem>
127 <para>A statically compiled version of <command>insmod</command></para>
128 <indexterm zone="ch-system-module-init-tools insmod.static">
129 <primary sortas="b-insmod.static">insmod.static</primary>
130 </indexterm>
131 </listitem>
132 </varlistentry>
133
134 <varlistentry id="lsmod">
135 <term><command>lsmod</command></term>
136 <listitem>
137 <para>Lists currently loaded modules</para>
138 <indexterm zone="ch-system-module-init-tools lsmod">
139 <primary sortas="b-lsmod">lsmod</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="modinfo">
145 <term><command>modinfo</command></term>
146 <listitem>
147 <para>Examines an object file associated with a kernel module and
148 displays any information that it can glean</para>
149 <indexterm zone="ch-system-module-init-tools modinfo">
150 <primary sortas="b-modinfo">modinfo</primary>
151 </indexterm>
152 </listitem>
153 </varlistentry>
154
155 <varlistentry id="modprobe">
156 <term><command>modprobe</command></term>
157 <listitem>
158 <para>Uses a dependency file, created by <command>depmod</command>,
159 to automatically load relevant modules</para>
160 <indexterm zone="ch-system-module-init-tools modprobe">
161 <primary sortas="b-modprobe">modprobe</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="rmmod">
167 <term><command>rmmod</command></term>
168 <listitem>
169 <para>Unloads modules from the running kernel</para>
170 <indexterm zone="ch-system-module-init-tools rmmod">
171 <primary sortas="b-rmmod">rmmod</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 </variablelist>
177
178 </sect2>
179
180</sect1>
Note: See TracBrowser for help on using the repository browser.