source: chapter06/module-init-tools.xml@ 0d9735e4

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 0d9735e4 was 0d9735e4, checked in by Archaic <archaic@…>, 18 years ago

Fixed issue where module-init-tools would not re-install its binaries. Thanks to Manuel for the report and Dan for the fix.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7571 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.9 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 %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 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>0.3 SBU</seg>
29 <seg>3.3 MB</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Module-Init-Tools</title>
37
38 <para>Issue the following commands to perform the tests (note that the
39 <command>make distclean</command> command is required to clean up the source
40 tree, as the source gets recompiled as part of the testing process):</para>
41
42<screen><userinput>./configure &amp;&amp;
43make check &amp;&amp;
44make distclean</userinput></screen>
45
46 <para>Prepare Module-Init-Tools for compilation:</para>
47
48<screen><userinput>./configure --prefix=/ --enable-zlib</userinput></screen>
49
50 <para>Compile the package:</para>
51
52<screen><userinput>make</userinput></screen>
53
54 <para>Install the package:</para>
55
56<screen><userinput>make INSTALL=install install</userinput></screen>
57
58 <variablelist>
59 <title>The meaning of the make parameter:</title>
60 <varlistentry>
61 <term><parameter>INSTALL=install</parameter></term>
62 <listitem>
63 <para>Normally, make install will not install the binaries if they
64 already exist. This option overrides that behavior by calling
65 <command>install</command> instead of using the default wrapper
66 script.</para>
67 </listitem>
68 </varlistentry>
69 </variablelist>
70
71 </sect2>
72
73 <sect2 id="contents-module-init-tools" role="content">
74 <title>Contents of Module-Init-Tools</title>
75
76 <segmentedlist>
77 <segtitle>Installed programs</segtitle>
78
79 <seglistitem>
80 <seg>depmod, generate-modprobe.conf, insmod, insmod.static, lsmod,
81 modinfo, modprobe, and rmmod</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 the
94 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 module
107 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
159 <command>depmod</command>, 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.