[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">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[81fd230] | 6 | <sect1 id="ch-system-module-init-tools" role="wrap">
|
---|
[9dfc02f] | 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 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[81fd230] | 13 | <para>The Module-Init-Tools package contains programs for handling kernel
|
---|
| 14 | modules in Linux kernels greater than or equal to version 2.5.47.</para>
|
---|
[9dfc02f] | 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
[fc1024a] | 19 | <seglistitem><seg>0.1 SBU</seg><seg>4.9 MB</seg></seglistitem>
|
---|
[a001133] | 20 | </segmentedlist>
|
---|
[9dfc02f] | 21 |
|
---|
[81fd230] | 22 | <segmentedlist>
|
---|
[45992ae] | 23 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 24 | <seglistitem><seg>Bash, Binutils, Bison,
|
---|
| 25 | Coreutils, Diffutils, Flex, GCC, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
|
---|
| 26 | </segmentedlist>
|
---|
[a001133] | 27 | </sect2>
|
---|
[9dfc02f] | 28 |
|
---|
[a001133] | 29 | <sect2 role="installation">
|
---|
[9dfc02f] | 30 | <title>Installation of Module-Init-Tools</title>
|
---|
| 31 |
|
---|
[ff4d299] | 32 | <para>Module-Init-Tools attempts to rewrite its
|
---|
| 33 | <filename>modprobe.conf</filename> man page during the build process. This is
|
---|
| 34 | unnecessary and also relies on <command>docbook2man</command> — which is not
|
---|
| 35 | installed in LFS. Run the following command to avoid this:</para>
|
---|
| 36 |
|
---|
| 37 | <screen><userinput>touch modprobe.conf.5</userinput></screen>
|
---|
| 38 |
|
---|
[9dfc02f] | 39 | <para>Prepare Module-Init-Tools for compilation:</para>
|
---|
| 40 |
|
---|
| 41 | <screen><userinput>./configure --prefix="" --enable-zlib</userinput></screen>
|
---|
| 42 |
|
---|
[90b56f5] | 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
|
---|
| 49 | kernel modules.</para></listitem>
|
---|
| 50 | </varlistentry>
|
---|
| 51 | </variablelist>
|
---|
| 52 |
|
---|
[9dfc02f] | 53 | <para>Compile the package:</para>
|
---|
| 54 |
|
---|
[ff4d299] | 55 | <screen><userinput>make</userinput></screen>
|
---|
[81fd230] | 56 |
|
---|
[9dfc02f] | 57 | <para>To test the results, issue:
|
---|
| 58 | <userinput>make check</userinput>.</para>
|
---|
| 59 |
|
---|
[81fd230] | 60 | <para>Install the package:</para>
|
---|
[9dfc02f] | 61 |
|
---|
| 62 | <screen><userinput>make install</userinput></screen>
|
---|
| 63 |
|
---|
| 64 | </sect2>
|
---|
| 65 |
|
---|
| 66 |
|
---|
[c6cb3aa] | 67 | <sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
|
---|
[9dfc02f] | 68 |
|
---|
[81fd230] | 69 | <segmentedlist>
|
---|
| 70 | <segtitle>Installed programs</segtitle>
|
---|
[a0bf931] | 71 | <seglistitem><seg>depmod, insmod,
|
---|
| 72 | insmod.static, lsmod (link to insmod), modinfo, modprobe (link to
|
---|
[81fd230] | 73 | insmod), and rmmod (link to insmod)</seg></seglistitem>
|
---|
| 74 | </segmentedlist>
|
---|
| 75 |
|
---|
| 76 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 77 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 78 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 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
|
---|
| 84 | existing set of modules; this dependency file is used by <command>modprobe</command> to
|
---|
| 85 | automatically 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 |
|
---|
[373a708] | 98 | <varlistentry id="insmod.static">
|
---|
| 99 | <term><command>insmod.static</command></term>
|
---|
[81fd230] | 100 | <listitem>
|
---|
[4e1fa97] | 101 | <para>A statically compiled version of <command>insmod</command></para>
|
---|
[373a708] | 102 | <indexterm zone="ch-system-module-init-tools insmod.static"><primary
|
---|
| 103 | sortas="b-insmod.static">insmod.static</primary></indexterm>
|
---|
[81fd230] | 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
|
---|
| 119 | displays 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>
|
---|
[9dfc02f] | 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 |
|
---|
| 144 | </sect1>
|
---|
[81fd230] | 145 |
|
---|