source: chapter06/module-init-tools.xml@ 08c4453

Last change on this file since 08c4453 was 4e1fa97, checked in by Archaic <archaic@…>, 19 years ago

Minor wording change. (merged from trunk r6039)

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

  • Property mode set to 100644
File size: 4.8 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>Prepare Module-Init-Tools for compilation:</para>
40
41<screen><userinput>./configure --prefix="" --enable-zlib</userinput></screen>
42
43<para>The meaning of the configure options:</para>
44
45<variablelist>
46<varlistentry>
47<term><parameter>--enable-zlib</parameter></term>
48<listitem><para>This allows the Module-Init-Tools package to handle compressed
49kernel modules.</para></listitem>
50</varlistentry>
51</variablelist>
52
53<para>Compile the package:</para>
54
55<screen><userinput>make</userinput></screen>
56
57<para>To test the results, issue:
58<userinput>make check</userinput>.</para>
59
60<para>Install the package:</para>
61
62<screen><userinput>make install</userinput></screen>
63
64</sect2>
65
66
67<sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
68
69<segmentedlist>
70<segtitle>Installed programs</segtitle>
71<seglistitem><seg>depmod, insmod,
72insmod.static, lsmod (link to insmod), modinfo, modprobe (link to
73insmod), and rmmod (link to insmod)</seg></seglistitem>
74</segmentedlist>
75
76<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
77<?dbfo list-presentation="list"?>
78<?dbhtml list-presentation="table"?>
79
80<varlistentry id="depmod">
81<term><command>depmod</command></term>
82<listitem>
83<para>Creates a dependency file based on the symbols it finds in the
84existing set of modules; this dependency file is used by <command>modprobe</command> to
85automatically load the required modules</para>
86<indexterm zone="ch-system-module-init-tools depmod"><primary sortas="b-depmod">depmod</primary></indexterm>
87</listitem>
88</varlistentry>
89
90<varlistentry id="insmod">
91<term><command>insmod</command></term>
92<listitem>
93<para>Installs a loadable module in the running kernel</para>
94<indexterm zone="ch-system-module-init-tools insmod"><primary sortas="b-insmod">insmod</primary></indexterm>
95</listitem>
96</varlistentry>
97
98<varlistentry id="insmod.static">
99<term><command>insmod.static</command></term>
100<listitem>
101<para>A statically compiled version of <command>insmod</command></para>
102<indexterm zone="ch-system-module-init-tools insmod.static"><primary
103sortas="b-insmod.static">insmod.static</primary></indexterm>
104</listitem>
105</varlistentry>
106
107<varlistentry id="lsmod">
108<term><command>lsmod</command></term>
109<listitem>
110<para>Lists currently loaded modules</para>
111<indexterm zone="ch-system-module-init-tools lsmod"><primary sortas="b-lsmod">lsmod</primary></indexterm>
112</listitem>
113</varlistentry>
114
115<varlistentry id="modinfo">
116<term><command>modinfo</command></term>
117<listitem>
118<para>Examines an object file associated with a kernel module and
119displays any information that it can glean</para>
120<indexterm zone="ch-system-module-init-tools modinfo"><primary sortas="b-modinfo">modinfo</primary></indexterm>
121</listitem>
122</varlistentry>
123
124<varlistentry id="modprobe">
125<term><command>modprobe</command></term>
126<listitem>
127<para>Uses a dependency file, created by
128<command>depmod</command>, to automatically load relevant modules</para>
129<indexterm zone="ch-system-module-init-tools modprobe"><primary sortas="b-modprobe">modprobe</primary></indexterm>
130</listitem>
131</varlistentry>
132
133<varlistentry id="rmmod">
134<term><command>rmmod</command></term>
135<listitem>
136<para>Unloads modules from the running kernel</para>
137<indexterm zone="ch-system-module-init-tools rmmod"><primary sortas="b-rmmod">rmmod</primary></indexterm>
138</listitem>
139</varlistentry>
140</variablelist>
141
142</sect2>
143
144</sect1>
145
Note: See TracBrowser for help on using the repository browser.