source: chapter08/kmod.xml@ f5923aa

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 arm bdubbs/gcc13 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 f5923aa was f5923aa, checked in by Xi Ruoyao <xry111@…>, 2 years ago

kmod: link to openssl

  • Property mode set to 100644
File size: 6.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-kmod" role="wrap">
9 <?dbhtml filename="kmod.html"?>
10
11 <sect1info condition="script">
12 <productname>kmod</productname>
13 <productnumber>&kmod-version;</productnumber>
14 <address>&kmod-url;</address>
15 </sect1info>
16
17 <title>Kmod-&kmod-version;</title>
18
19 <indexterm zone="ch-system-kmod">
20 <primary sortas="a-Kmod">Kmod</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Kmod package contains libraries and utilities for loading kernel
27 modules</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&kmod-fin-sbu;</seg>
35 <seg>&kmod-fin-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Kmod</title>
43
44 <para>Prepare Kmod for compilation:</para>
45
46<screen><userinput remap="configure">./configure --prefix=/usr \
47 --sysconfdir=/etc \
48 --with-openssl \
49 --with-xz \
50 --with-zstd \
51 --with-zlib</userinput></screen>
52
53 <variablelist>
54 <title>The meaning of the configure options:</title>
55
56 <varlistentry>
57 <term>
58 <parameter>--with-openssl</parameter>
59 </term>
60 <listitem>
61 <para>This option enables Kmod to handle PKCS7 signatures for
62 kernel modules.</para>
63 </listitem>
64 </varlistentry>
65
66 <varlistentry>
67 <term>
68 <parameter>--with-xz</parameter>,
69 <parameter>--with-zlib</parameter>, and
70 <parameter>--with-zstd</parameter>
71 </term>
72 <listitem>
73 <para>These options enable Kmod to handle compressed kernel modules.</para>
74 </listitem>
75 </varlistentry>
76
77 </variablelist>
78
79 <para>Compile the package:</para>
80
81<screen><userinput remap="make">make</userinput></screen>
82
83 <para>This package does not come with a test suite that can be run in the
84 LFS chroot environment. At a minimum the git program is required and
85 several tests will not run outside of a git repository. </para>
86
87 <para>Install the package and create symlinks for
88 compatibility with Module-Init-Tools (the package that previously handled
89 Linux kernel modules):</para>
90
91<screen><userinput remap="install">make install
92
93for target in depmod insmod modinfo modprobe rmmod; do
94 ln -sfv ../bin/kmod /usr/sbin/$target
95done
96
97ln -sfv kmod /usr/bin/lsmod</userinput></screen>
98
99 </sect2>
100
101 <sect2 id="contents-kmod" role="content">
102 <title>Contents of Kmod</title>
103
104 <segmentedlist>
105 <segtitle>Installed programs</segtitle>
106 <segtitle>Installed library</segtitle>
107
108 <seglistitem>
109 <seg>depmod (link to kmod), insmod (link to kmod), kmod,
110 lsmod (link to kmod), modinfo (link to kmod), modprobe (link to kmod),
111 and rmmod (link to kmod)</seg>
112 <seg>libkmod.so</seg>
113 </seglistitem>
114 </segmentedlist>
115
116 <variablelist>
117 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
118 <?dbfo list-presentation="list"?>
119 <?dbhtml list-presentation="table"?>
120
121 <varlistentry id="depmod">
122 <term><command>depmod</command></term>
123 <listitem>
124 <para>Creates a dependency file based on the symbols it finds in the
125 existing set of modules; this dependency file is used by
126 <command>modprobe</command> to automatically load the required
127 modules</para>
128 <indexterm zone="ch-system-kmod depmod">
129 <primary sortas="b-depmod">depmod</primary>
130 </indexterm>
131 </listitem>
132 </varlistentry>
133
134 <varlistentry id="insmod">
135 <term><command>insmod</command></term>
136 <listitem>
137 <para>Installs a loadable module in the running kernel</para>
138 <indexterm zone="ch-system-kmod insmod">
139 <primary sortas="b-insmod">insmod</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="kmod">
145 <term><command>kmod</command></term>
146 <listitem>
147 <para>Loads and unloads kernel modules</para>
148 <indexterm zone="ch-system-kmod kmod">
149 <primary sortas="b-kmod">kmod</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
154 <varlistentry id="lsmod">
155 <term><command>lsmod</command></term>
156 <listitem>
157 <para>Lists currently loaded modules</para>
158 <indexterm zone="ch-system-kmod lsmod">
159 <primary sortas="b-lsmod">lsmod</primary>
160 </indexterm>
161 </listitem>
162 </varlistentry>
163
164 <varlistentry id="modinfo">
165 <term><command>modinfo</command></term>
166 <listitem>
167 <para>Examines an object file associated with a kernel module and
168 displays any information that it can glean</para>
169 <indexterm zone="ch-system-kmod modinfo">
170 <primary sortas="b-modinfo">modinfo</primary>
171 </indexterm>
172 </listitem>
173 </varlistentry>
174
175 <varlistentry id="modprobe">
176 <term><command>modprobe</command></term>
177 <listitem>
178 <para>Uses a dependency file, created by
179 <command>depmod</command>, to automatically load relevant modules</para>
180 <indexterm zone="ch-system-kmod modprobe">
181 <primary sortas="b-modprobe">modprobe</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="rmmod">
187 <term><command>rmmod</command></term>
188 <listitem>
189 <para>Unloads modules from the running kernel</para>
190 <indexterm zone="ch-system-kmod rmmod">
191 <primary sortas="b-rmmod">rmmod</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="libkmod">
197 <term><filename class="libraryfile">libkmod</filename></term>
198 <listitem>
199 <para>This library is used by other programs to load and unload kernel
200 modules</para>
201 <indexterm zone="ch-system-kmod">
202 <primary sortas="c-libkmod">libkmod</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 </variablelist>
208
209 </sect2>
210
211</sect1>
212
Note: See TracBrowser for help on using the repository browser.