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="a">Prepare Module-Init-Tools for compilation:</para>
|
---|
31 |
|
---|
32 | <screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
---|
33 | --prefix=/usr --bindir=/bin \
|
---|
34 | --sbindir=/sbin --enable-zlib-dynamic</userinput></screen>
|
---|
35 |
|
---|
36 | <variablelist os="c">
|
---|
37 | <title>The meaning of the configure options:</title>
|
---|
38 |
|
---|
39 | <varlistentry>
|
---|
40 | <term><parameter>--enable-zlib-dynamic</parameter></term>
|
---|
41 | <listitem>
|
---|
42 | <para>This allows the Module-Init-Tools package to handle compressed
|
---|
43 | kernel modules.</para>
|
---|
44 | </listitem>
|
---|
45 | </varlistentry>
|
---|
46 |
|
---|
47 | </variablelist>
|
---|
48 |
|
---|
49 | <para os="d">Compile the package:</para>
|
---|
50 |
|
---|
51 | <screen os="e"><userinput>make DOCBOOKTOMAN=</userinput></screen>
|
---|
52 |
|
---|
53 | <para os="f">Install the package:</para>
|
---|
54 |
|
---|
55 | <screen os="g"><userinput>make DESTDIR=${CLFS} INSTALL=install install</userinput></screen>
|
---|
56 |
|
---|
57 | <variablelist os="h">
|
---|
58 | <title>The meaning of the make parameter:</title>
|
---|
59 | <varlistentry>
|
---|
60 | <term><parameter>INSTALL=install</parameter></term>
|
---|
61 | <listitem>
|
---|
62 | <para>Normally, <command>make install</command> will not install the
|
---|
63 | binaries if they already exist. This option overrides that behavior
|
---|
64 | by calling <command>install</command> instead of using the default
|
---|
65 | wrapper script.</para>
|
---|
66 | </listitem>
|
---|
67 | </varlistentry>
|
---|
68 | </variablelist>
|
---|
69 |
|
---|
70 | </sect2>
|
---|
71 |
|
---|
72 | <sect2 id="contents-module-init-tools" role="content">
|
---|
73 | <title>Contents of Module-Init-Tools</title>
|
---|
74 |
|
---|
75 | <segmentedlist>
|
---|
76 | <segtitle>Installed programs</segtitle>
|
---|
77 |
|
---|
78 | <seglistitem>
|
---|
79 | <seg>depmod, generate-modprobe.conf, insmod, insmod.static,
|
---|
80 | lsmod (link to insmod), modinfo, modprobe (link to insmod), and
|
---|
81 | rmmod (link to insmod)</seg>
|
---|
82 | </seglistitem>
|
---|
83 | </segmentedlist>
|
---|
84 |
|
---|
85 | <variablelist>
|
---|
86 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
87 | <?dbfo list-presentation="list"?>
|
---|
88 | <?dbhtml list-presentation="table"?>
|
---|
89 |
|
---|
90 | <varlistentry id="depmod">
|
---|
91 | <term><command>depmod</command></term>
|
---|
92 | <listitem>
|
---|
93 | <para>Creates a dependency file based on the symbols it finds in
|
---|
94 | the existing set of modules; this dependency file is used by
|
---|
95 | <command>modprobe</command> to automatically load the required
|
---|
96 | modules</para>
|
---|
97 | <indexterm zone="ch-system-module-init-tools depmod">
|
---|
98 | <primary sortas="b-depmod">depmod</primary>
|
---|
99 | </indexterm>
|
---|
100 | </listitem>
|
---|
101 | </varlistentry>
|
---|
102 |
|
---|
103 | <varlistentry id="generate-modprobe.conf">
|
---|
104 | <term><command>generate-modprobe.conf</command></term>
|
---|
105 | <listitem>
|
---|
106 | <para>Creates a modprobe.conf file from an existing 2.2 or 2.4
|
---|
107 | module setup</para>
|
---|
108 | <indexterm zone="ch-system-module-init-tools generate-modprobe.conf">
|
---|
109 | <primary sortas="b-generate-modprobe.conf">generate-modprobe.conf</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>
|
---|