source: BOOK/final-system/common/module-init-tools.xml@ 9e2e6ae

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9e2e6ae was 8ac1263, checked in by Jonathan Norman <jon@…>, 13 years ago

Added a patch to module-init-tools to remove warnings caused by Zlib

  • Property mode set to 100644
File size: 5.3 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
[8ac1263]28 <para os="p1">The following patch removes warnings caused by Zlib 1.2.6:</para>
29
30<screen os="p2"><userinput>patch -Np1 -i ../&module-init-tools-zlib_fix-patch;</userinput></screen>
31
[c4534a5]32 <para os="c">Issue the following commands to perform the tests</para>
33
[75a2135]34<screen os="d"><userinput>sed -i "s/\(make\)\( all\)/\1 DOCBOOKTOMAN=true\2/" tests/runtests &amp;&amp;
35./tests/runtests</userinput></screen>
[c999585]36
[e0e40d3]37 <para os="e">Prepare Module-Init-Tools for compilation:</para>
[3f8be484]38
[f4cc1c2]39<screen os="f"><userinput>./configure --prefix=/usr \
[1e58202]40 --bindir=/bin --sbindir=/sbin \
[e60a7f6]41 --enable-zlib-dynamic</userinput></screen>
[3f8be484]42
[e0e40d3]43 <variablelist os="g">
[da0b4a3]44 <title>The meaning of the configure option:</title>
[3f8be484]45
46 <varlistentry>
[e60a7f6]47 <term><parameter>--enable-zlib-dynamic</parameter></term>
[3f8be484]48 <listitem>
49 <para>This allows the Module-Init-Tools package to handle compressed
50 kernel modules.</para>
51 </listitem>
52 </varlistentry>
53
54 </variablelist>
55
[e0e40d3]56 <para os="h">Compile the package:</para>
[3f8be484]57
[75a2135]58<screen os="i"><userinput>make DOCBOOKTOMAN=true</userinput></screen>
[c6c6c35]59
[e0e40d3]60 <para os="j">Install the package:</para>
[3f8be484]61
[75a2135]62<screen os="k"><userinput>make install</userinput></screen>
[e69b20a]63
[3f8be484]64 </sect2>
65
66 <sect2 id="contents-module-init-tools" role="content">
67 <title>Contents of Module-Init-Tools</title>
68
69 <segmentedlist>
70 <segtitle>Installed programs</segtitle>
71
72 <seglistitem>
[188b6b2]73 <seg>depmod, insmod, insmod.static, lsmod, modinfo, modprobe, and
74 rmmod</seg>
[3f8be484]75 </seglistitem>
76 </segmentedlist>
77
78 <variablelist>
79 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
80 <?dbfo list-presentation="list"?>
81 <?dbhtml list-presentation="table"?>
82
83 <varlistentry id="depmod">
84 <term><command>depmod</command></term>
85 <listitem>
86 <para>Creates a dependency file based on the symbols it finds in
87 the existing set of modules; this dependency file is used by
88 <command>modprobe</command> to automatically load the required
89 modules</para>
90 <indexterm zone="ch-system-module-init-tools depmod">
91 <primary sortas="b-depmod">depmod</primary>
92 </indexterm>
93 </listitem>
94 </varlistentry>
95
96 <varlistentry id="insmod">
97 <term><command>insmod</command></term>
98 <listitem>
99 <para>Installs a loadable module in the running kernel</para>
100 <indexterm zone="ch-system-module-init-tools insmod">
101 <primary sortas="b-insmod">insmod</primary>
102 </indexterm>
103 </listitem>
104 </varlistentry>
105
106 <varlistentry id="insmod.static">
107 <term><command>insmod.static</command></term>
108 <listitem>
109 <para>A statically compiled version of <command>insmod</command></para>
110 <indexterm zone="ch-system-module-init-tools insmod.static">
111 <primary sortas="b-insmod.static">insmod.static</primary>
112 </indexterm>
113 </listitem>
114 </varlistentry>
115
116 <varlistentry id="lsmod">
117 <term><command>lsmod</command></term>
118 <listitem>
119 <para>Lists currently loaded modules</para>
120 <indexterm zone="ch-system-module-init-tools lsmod">
121 <primary sortas="b-lsmod">lsmod</primary>
122 </indexterm>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry id="modinfo">
127 <term><command>modinfo</command></term>
128 <listitem>
129 <para>Examines an object file associated with a kernel module and
130 displays any information that it can glean</para>
131 <indexterm zone="ch-system-module-init-tools modinfo">
132 <primary sortas="b-modinfo">modinfo</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 <varlistentry id="modprobe">
138 <term><command>modprobe</command></term>
139 <listitem>
140 <para>Uses a dependency file, created by <command>depmod</command>,
141 to automatically load relevant modules</para>
142 <indexterm zone="ch-system-module-init-tools modprobe">
143 <primary sortas="b-modprobe">modprobe</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="rmmod">
149 <term><command>rmmod</command></term>
150 <listitem>
151 <para>Unloads modules from the running kernel</para>
152 <indexterm zone="ch-system-module-init-tools rmmod">
153 <primary sortas="b-rmmod">rmmod</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 </variablelist>
159
160 </sect2>
161
162</sect1>
Note: See TracBrowser for help on using the repository browser.