source: chapter06/module-init-tools.xml@ e5846ef

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 e5846ef was e5846ef, checked in by Archaic <archaic@…>, 19 years ago

Round 2 of several minor wording changes in chapter 6 (matt).

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6258 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 <!ENTITY % patches-entities SYSTEM "../patches.ent">
5 %general-entities;
6 %patches-entities;
7]>
8<sect1 id="ch-system-module-init-tools" role="wrap">
9<title>Module-Init-Tools-&module-init-tools-version;</title>
10<?dbhtml filename="module-init-tools.html"?>
11
12<indexterm zone="ch-system-module-init-tools"><primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary></indexterm>
13
14<sect2 role="package"><title/>
15<para>The Module-Init-Tools package contains programs for handling kernel
16modules in Linux kernels greater than or equal to version 2.5.47.</para>
17
18<segmentedlist>
19<segtitle>&buildtime;</segtitle>
20<segtitle>&diskspace;</segtitle>
21<seglistitem><seg>0.1 SBU</seg><seg>4.9 MB</seg></seglistitem>
22</segmentedlist>
23
24<segmentedlist>
25<segtitle>&dependencies;</segtitle>
26<seglistitem><seg>Bash, Binutils, Bison,
27Coreutils, Diffutils, Flex, GCC, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
28</segmentedlist>
29</sect2>
30
31<sect2 role="installation">
32<title>Installation of Module-Init-Tools</title>
33
34<para>Module-Init-Tools attempts to rewrite its
35<filename>modprobe.conf</filename> man page during the build process. This is
36unnecessary and also relies on <command>docbook2man</command> &mdash; which is not
37installed in LFS. Run the following command to avoid this:</para>
38
39<screen><userinput>touch modprobe.conf.5</userinput></screen>
40
41<para>Prepare Module-Init-Tools for compilation:</para>
42
43<screen><userinput>./configure --prefix="" --enable-zlib</userinput></screen>
44
45<para>The meaning of the configure options:</para>
46
47<variablelist>
48<varlistentry>
49<term><parameter>--enable-zlib</parameter></term>
50<listitem><para>This allows the Module-Init-Tools package to handle compressed
51kernel modules.</para></listitem>
52</varlistentry>
53</variablelist>
54
55<para>Compile the package:</para>
56
57<screen><userinput>make</userinput></screen>
58
59<para>To test the results, issue:
60<userinput>make check</userinput>.</para>
61
62<para>Install the package:</para>
63
64<screen><userinput>make install</userinput></screen>
65
66</sect2>
67
68
69<sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
70
71<segmentedlist>
72<segtitle>Installed programs</segtitle>
73<seglistitem><seg>depmod, insmod,
74insmod.static, lsmod (link to insmod), modinfo, modprobe (link to
75insmod), and rmmod (link to insmod)</seg></seglistitem>
76</segmentedlist>
77
78<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
79<?dbfo list-presentation="list"?>
80<?dbhtml list-presentation="table"?>
81
82<varlistentry id="depmod">
83<term><command>depmod</command></term>
84<listitem>
85<para>Creates a dependency file based on the symbols it finds in the
86existing set of modules; this dependency file is used by <command>modprobe</command> to
87automatically load the required modules</para>
88<indexterm zone="ch-system-module-init-tools depmod"><primary sortas="b-depmod">depmod</primary></indexterm>
89</listitem>
90</varlistentry>
91
92<varlistentry id="insmod">
93<term><command>insmod</command></term>
94<listitem>
95<para>Installs a loadable module in the running kernel</para>
96<indexterm zone="ch-system-module-init-tools insmod"><primary sortas="b-insmod">insmod</primary></indexterm>
97</listitem>
98</varlistentry>
99
100<varlistentry id="insmod.static">
101<term><command>insmod.static</command></term>
102<listitem>
103<para>A statically compiled version of <command>insmod</command></para>
104<indexterm zone="ch-system-module-init-tools insmod.static"><primary
105sortas="b-insmod.static">insmod.static</primary></indexterm>
106</listitem>
107</varlistentry>
108
109<varlistentry id="lsmod">
110<term><command>lsmod</command></term>
111<listitem>
112<para>Lists currently loaded modules</para>
113<indexterm zone="ch-system-module-init-tools lsmod"><primary sortas="b-lsmod">lsmod</primary></indexterm>
114</listitem>
115</varlistentry>
116
117<varlistentry id="modinfo">
118<term><command>modinfo</command></term>
119<listitem>
120<para>Examines an object file associated with a kernel module and
121displays any information that it can glean</para>
122<indexterm zone="ch-system-module-init-tools modinfo"><primary sortas="b-modinfo">modinfo</primary></indexterm>
123</listitem>
124</varlistentry>
125
126<varlistentry id="modprobe">
127<term><command>modprobe</command></term>
128<listitem>
129<para>Uses a dependency file, created by
130<command>depmod</command>, to automatically load relevant modules</para>
131<indexterm zone="ch-system-module-init-tools modprobe"><primary sortas="b-modprobe">modprobe</primary></indexterm>
132</listitem>
133</varlistentry>
134
135<varlistentry id="rmmod">
136<term><command>rmmod</command></term>
137<listitem>
138<para>Unloads modules from the running kernel</para>
139<indexterm zone="ch-system-module-init-tools rmmod"><primary sortas="b-rmmod">rmmod</primary></indexterm>
140</listitem>
141</varlistentry>
142</variablelist>
143
144</sect2>
145
146</sect1>
147
Note: See TracBrowser for help on using the repository browser.