mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-21 06:28:02 +00:00
c6cb3aa2f1
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3621 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
158 lines
5.3 KiB
XML
158 lines
5.3 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
]>
|
|
<sect1 id="ch-system-module-init-tools" xreflabel="Module-Init-Tools" role="wrap">
|
|
<title>Module-Init-Tools-&module-init-tools-version;</title>
|
|
<?dbhtml filename="module-init-tools.html"?>
|
|
|
|
<indexterm zone="ch-system-module-init-tools"><primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary></indexterm>
|
|
|
|
<sect2 role="package"><title/>
|
|
<para>The Module-Init-Tools package contains programs for handling kernel
|
|
modules in Linux kernels greater than or equal to version 2.5.47.</para>
|
|
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&diskspace;</segtitle>
|
|
<seglistitem><seg>0.1 SBU</seg><seg>650 KB</seg></seglistitem>
|
|
</segmentedlist>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Module-Init-Tools installation depends on</segtitle>
|
|
<seglistitem><seg>Bash, Binutils, Bison,
|
|
Coreutils, Diffutils, Flex, GCC, Glibc, Grep, M4, Make, Sed</seg></seglistitem>
|
|
</segmentedlist>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Module-Init-Tools</title>
|
|
|
|
<para>Prepare Module-Init-Tools for compilation:</para>
|
|
|
|
<screen><userinput>./configure --prefix="" --enable-zlib</userinput></screen>
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
<para>To test the results, issue:
|
|
<userinput>make check</userinput>.</para>
|
|
|
|
<para>Install it:</para>
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed programs</segtitle>
|
|
<seglistitem><seg>depmod, genksyms, insmod,
|
|
insmod_ksymoops_clean, kallsyms (link to insmod), kernelversion, ksyms
|
|
(link to insmod), lsmod (link to insmod), modinfo, modprobe (link to insmod)
|
|
and rmmod (link to insmod)</seg></seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist><title>Short descriptions</title>
|
|
|
|
<varlistentry>
|
|
<term id="depmod"><command>depmod</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools depmod"><primary sortas="b-depmod">depmod</primary></indexterm>
|
|
<para>creates a dependency file, based on the
|
|
symbols it finds in the existing set of modules. This dependency file is used
|
|
by modprobe to automatically load the required modules.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term id="genksyms"><command>genksyms</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools genksyms"><primary sortas="b-genksyms">genksyms</primary></indexterm>
|
|
<para>generates symbol version information.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term id="insmod"><command>insmod</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools insmod"><primary sortas="b-insmod">insmod</primary></indexterm>
|
|
<para>installs a loadable module in the running kernel.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term id="insmod_ksymoops_clean"><command>insmod_ksymoops_clean</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools insmod_ksymoops_clean"><primary sortas="b-insmod_ksymoops_clean">insmod_ksymoops_clean</primary></indexterm>
|
|
<para>deletes saved ksyms and modules not accessed for two days.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term id="kallsyms"><command>kallsyms</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools kallsyms"><primary sortas="b-kallsyms">kallsyms</primary></indexterm>
|
|
<para>extracts all kernel symbols for debugging.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term id="kernelversion"><command>kernelversion</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools kernelversion"><primary sortas="b-kernelversion">kernelversion</primary></indexterm>
|
|
<para>reports the major version of the running kernel.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term id="ksyms"><command>ksyms</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools ksyms"><primary sortas="b-ksyms">ksyms</primary></indexterm>
|
|
<para>displays exported kernel symbols.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term id="lsmod"><command>lsmod</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools lsmod"><primary sortas="b-lsmod">lsmod</primary></indexterm>
|
|
<para>shows which modules are loaded.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term id="modinfo"><command>modinfo</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools modinfo"><primary sortas="b-modinfo">modinfo</primary></indexterm>
|
|
<para>examines an object file associated with
|
|
a kernel module and displays any information that it can glean.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term id="modprobe"><command>modprobe</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools modprobe"><primary sortas="b-modprobe">modprobe</primary></indexterm>
|
|
<para>uses a dependency file, created by
|
|
depmod, to automatically load the relevant modules.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term id="rmmod"><command>rmmod</command></term>
|
|
<listitem>
|
|
<indexterm zone="ch-system-module-init-tools rmmod"><primary sortas="b-rmmod">rmmod</primary></indexterm>
|
|
<para>unloads modules from the running kernel.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|