source: clfs-sysroot/BOOK/final-system/common/module-init-tools.xml@ f12c7f6

Last change on this file since f12c7f6 was 12e6567, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Added a sysroot wrapper.
Updated the build variables section of the book, each package uses its own.

  • Property mode set to 100644
File size: 6.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
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 &env-target;
26
27 <sect2 role="installation">
28 <title>Installation of Module-Init-Tools</title>
29
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
34 <para os="a">Prepare Module-Init-Tools for compilation:</para>
35
36<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
37 --prefix=/usr --bindir=/bin \
38 --sbindir=/sbin --enable-zlib</userinput></screen>
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
59<screen os="g"><userinput>make DESTDIR=${CLFS} INSTALL=install install</userinput></screen>
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>
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>
70 </listitem>
71 </varlistentry>
72 </variablelist>
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>
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>
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
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
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>
Note: See TracBrowser for help on using the repository browser.