source: BOOK/final-system/common/module-init-tools.xml@ 36f408e1

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 36f408e1 was 3373dd11, checked in by Jim Gifford <clfs@…>, 19 years ago

r668@server (orig r666): manuel | 2005-11-08 15:25:13 -0800
Removing SBUs and DUs. Chapter final-system, round 6.

  • Property mode set to 100644
File size: 6.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-system-module-init-tools" role="wrap">
11 <?dbhtml filename="module-init-tools.html"?>
12
13 <title>Module-Init-Tools-&module-init-tools-version;</title>
14
15 <indexterm zone="ch-system-module-init-tools">
16 <primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary>
17 </indexterm>
18
19 <sect2 role="package">
20 <title/>
21
22 <para>The Module-Init-Tools package contains programs for handling kernel
23 modules in Linux kernels greater than or equal to version 2.5.47.</para>
24
25 <segmentedlist>
26 <segtitle>&dependencies;</segtitle>
27
28 <seglistitem>
29 <seg>Bash, Binutils, Bison, Coreutils, Diffutils, GCC, Glibc,
30 Grep, M4, Make, and Sed</seg>
31 </seglistitem>
32 </segmentedlist>
33
34 </sect2>
35
36 <sect2 role="installation">
37 <title>Installation of Module-Init-Tools</title>
38
39 <para os="a">Module-Init-Tools attempts to rewrite its
40 <filename>modprobe.conf</filename> man page during the build process.
41 This is unnecessary and also relies on <command>docbook2man</command>
42 &mdash; which is not installed in LFS. Run the following command to
43 avoid this:</para>
44
45<screen os="b"><userinput>touch modprobe.conf.5</userinput></screen>
46
47 <para os="g">If you wish to run the test suite for Module-Init-Tools, you
48 will need to download the separate testsuite tarball. Issue the
49 following commands to perform the tests (note that the
50 <command>make distclean</command> command is required to clean up
51 the source tree, as the source gets recompiled as part of the testing
52 process):</para>
53
54<screen os="g1"><userinput>tar -xvf ../module-init-tools-testsuite-&module-init-tools-version;.tar.bz2 &amp;&amp;
55./configure &amp;&amp;
56make check &amp;&amp;
57make distclean</userinput></screen>
58
59 <para os="c">Prepare Module-Init-Tools for compilation:</para>
60
61<screen os="c1"><userinput>./configure --prefix="" --enable-zlib</userinput></screen>
62
63 <variablelist os="d">
64 <title>The meaning of the configure options:</title>
65
66 <varlistentry>
67 <term><parameter>--enable-zlib</parameter></term>
68 <listitem>
69 <para>This allows the Module-Init-Tools package to handle compressed
70 kernel modules.</para>
71 </listitem>
72 </varlistentry>
73
74 </variablelist>
75
76 <para os="e">Compile the package:</para>
77
78<screen os="f"><userinput>make</userinput></screen>
79
80 <para os="h">Install the package:</para>
81
82<screen os="i"><userinput>make install</userinput></screen>
83
84 </sect2>
85
86 <sect2 id="contents-module-init-tools" role="content">
87 <title>Contents of Module-Init-Tools</title>
88
89 <segmentedlist>
90 <segtitle>Installed programs</segtitle>
91
92 <seglistitem>
93 <seg>depmod, insmod, insmod.static, lsmod (link to insmod),
94 modinfo, modprobe (link to insmod), and rmmod (link to insmod)</seg>
95 </seglistitem>
96 </segmentedlist>
97
98 <variablelist>
99 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
100 <?dbfo list-presentation="list"?>
101 <?dbhtml list-presentation="table"?>
102
103 <varlistentry id="depmod">
104 <term><command>depmod</command></term>
105 <listitem>
106 <para>Creates a dependency file based on the symbols it finds in
107 the existing set of modules; this dependency file is used by
108 <command>modprobe</command> to automatically load the required
109 modules</para>
110 <indexterm zone="ch-system-module-init-tools depmod">
111 <primary sortas="b-depmod">depmod</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 <varlistentry id="insmod">
117 <term><command>insmod</command></term>
118 <listitem>
119 <para>Installs a loadable module in the running kernel</para>
120 <indexterm zone="ch-system-module-init-tools insmod">
121 <primary sortas="b-insmod">insmod</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="insmod.static">
127 <term><command>insmod.static</command></term>
128 <listitem>
129 <para>A statically compiled version of <command>insmod</command></para>
130 <indexterm zone="ch-system-module-init-tools insmod.static">
131 <primary sortas="b-insmod.static">insmod.static</primary>
132 </indexterm>
133 </listitem>
134 </varlistentry>
135
136 <varlistentry id="lsmod">
137 <term><command>lsmod</command></term>
138 <listitem>
139 <para>Lists currently loaded modules</para>
140 <indexterm zone="ch-system-module-init-tools lsmod">
141 <primary sortas="b-lsmod">lsmod</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
146 <varlistentry id="modinfo">
147 <term><command>modinfo</command></term>
148 <listitem>
149 <para>Examines an object file associated with a kernel module and
150 displays any information that it can glean</para>
151 <indexterm zone="ch-system-module-init-tools modinfo">
152 <primary sortas="b-modinfo">modinfo</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="modprobe">
158 <term><command>modprobe</command></term>
159 <listitem>
160 <para>Uses a dependency file, created by <command>depmod</command>,
161 to automatically load relevant modules</para>
162 <indexterm zone="ch-system-module-init-tools modprobe">
163 <primary sortas="b-modprobe">modprobe</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="rmmod">
169 <term><command>rmmod</command></term>
170 <listitem>
171 <para>Unloads modules from the running kernel</para>
172 <indexterm zone="ch-system-module-init-tools rmmod">
173 <primary sortas="b-rmmod">rmmod</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 </variablelist>
179
180 </sect2>
181
182</sect1>
Note: See TracBrowser for help on using the repository browser.