source: chapter06/module-init-tools.xml@ 6fdd678

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 6fdd678 was 6fdd678, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated a tar switch to their current name in tar-1.15.1

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

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