[9dfc02f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[9dfc02f] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
[3e36a78] | 4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
[9dfc02f] | 5 | %general-entities;
|
---|
[3e36a78] | 6 | %patches-entities;
|
---|
[9dfc02f] | 7 | ]>
|
---|
[81fd230] | 8 | <sect1 id="ch-system-module-init-tools" role="wrap">
|
---|
[9dfc02f] | 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 |
|
---|
[a001133] | 14 | <sect2 role="package"><title/>
|
---|
[81fd230] | 15 | <para>The Module-Init-Tools package contains programs for handling kernel
|
---|
| 16 | modules in Linux kernels greater than or equal to version 2.5.47.</para>
|
---|
[9dfc02f] | 17 |
|
---|
[a001133] | 18 | <segmentedlist>
|
---|
| 19 | <segtitle>&buildtime;</segtitle>
|
---|
| 20 | <segtitle>&diskspace;</segtitle>
|
---|
[eb6d9eb] | 21 | <seglistitem><seg>0.1 SBU</seg><seg>4.9 MB</seg></seglistitem>
|
---|
[a001133] | 22 | </segmentedlist>
|
---|
[9dfc02f] | 23 |
|
---|
[81fd230] | 24 | <segmentedlist>
|
---|
[45992ae] | 25 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 26 | <seglistitem><seg>Bash, Binutils, Bison,
|
---|
| 27 | Coreutils, Diffutils, Flex, GCC, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
|
---|
| 28 | </segmentedlist>
|
---|
[a001133] | 29 | </sect2>
|
---|
[9dfc02f] | 30 |
|
---|
[a001133] | 31 | <sect2 role="installation">
|
---|
[9dfc02f] | 32 | <title>Installation of Module-Init-Tools</title>
|
---|
| 33 |
|
---|
[1ccbb42] | 34 | <para>Module-Init-Tools attempts to rewrite its
|
---|
| 35 | <filename>modprobe.conf</filename> man page during the build process. This is
|
---|
| 36 | unnecessary and also relies on <command>docbook2man</command> — which is not
|
---|
| 37 | installed in LFS. Run the following command to avoid this:</para>
|
---|
[aa8363a] | 38 |
|
---|
| 39 | <screen><userinput>touch modprobe.conf.5</userinput></screen>
|
---|
| 40 |
|
---|
[9dfc02f] | 41 | <para>Prepare Module-Init-Tools for compilation:</para>
|
---|
| 42 |
|
---|
| 43 | <screen><userinput>./configure --prefix="" --enable-zlib</userinput></screen>
|
---|
| 44 |
|
---|
[e5846ef] | 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
|
---|
| 51 | kernel modules.</para></listitem>
|
---|
| 52 | </varlistentry>
|
---|
| 53 | </variablelist>
|
---|
| 54 |
|
---|
[9dfc02f] | 55 | <para>Compile the package:</para>
|
---|
| 56 |
|
---|
[aa8363a] | 57 | <screen><userinput>make</userinput></screen>
|
---|
[81fd230] | 58 |
|
---|
[9dfc02f] | 59 | <para>To test the results, issue:
|
---|
| 60 | <userinput>make check</userinput>.</para>
|
---|
| 61 |
|
---|
[81fd230] | 62 | <para>Install the package:</para>
|
---|
[9dfc02f] | 63 |
|
---|
| 64 | <screen><userinput>make install</userinput></screen>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 |
|
---|
[c6cb3aa] | 69 | <sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
|
---|
[9dfc02f] | 70 |
|
---|
[81fd230] | 71 | <segmentedlist>
|
---|
| 72 | <segtitle>Installed programs</segtitle>
|
---|
[08eb1c4] | 73 | <seglistitem><seg>depmod, insmod,
|
---|
| 74 | insmod.static, lsmod (link to insmod), modinfo, modprobe (link to
|
---|
[81fd230] | 75 | insmod), and rmmod (link to insmod)</seg></seglistitem>
|
---|
| 76 | </segmentedlist>
|
---|
| 77 |
|
---|
| 78 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 79 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 80 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 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
|
---|
| 86 | existing set of modules; this dependency file is used by <command>modprobe</command> to
|
---|
| 87 | automatically 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 |
|
---|
[bc2136e] | 100 | <varlistentry id="insmod.static">
|
---|
| 101 | <term><command>insmod.static</command></term>
|
---|
[81fd230] | 102 | <listitem>
|
---|
[20549627] | 103 | <para>A statically compiled version of <command>insmod</command></para>
|
---|
[bc2136e] | 104 | <indexterm zone="ch-system-module-init-tools insmod.static"><primary
|
---|
| 105 | sortas="b-insmod.static">insmod.static</primary></indexterm>
|
---|
[81fd230] | 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
|
---|
| 121 | displays 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>
|
---|
[9dfc02f] | 143 |
|
---|
| 144 | </sect2>
|
---|
| 145 |
|
---|
| 146 | </sect1>
|
---|
[81fd230] | 147 |
|
---|