[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>
|
---|
| 21 | <seglistitem><seg>0.1 SBU</seg><seg>650 KB</seg></seglistitem>
|
---|
| 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 |
|
---|
| 45 | <para>Compile the package:</para>
|
---|
| 46 |
|
---|
[aa8363a] | 47 | <screen><userinput>make</userinput></screen>
|
---|
[81fd230] | 48 |
|
---|
[9dfc02f] | 49 | <para>To test the results, issue:
|
---|
| 50 | <userinput>make check</userinput>.</para>
|
---|
| 51 |
|
---|
[81fd230] | 52 | <para>Install the package:</para>
|
---|
[9dfc02f] | 53 |
|
---|
| 54 | <screen><userinput>make install</userinput></screen>
|
---|
| 55 |
|
---|
| 56 | </sect2>
|
---|
| 57 |
|
---|
| 58 |
|
---|
[c6cb3aa] | 59 | <sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
|
---|
[9dfc02f] | 60 |
|
---|
[81fd230] | 61 | <segmentedlist>
|
---|
| 62 | <segtitle>Installed programs</segtitle>
|
---|
| 63 | <seglistitem><seg>depmod, genksyms, insmod,
|
---|
| 64 | insmod_ksymoops_clean, kallsyms (link to insmod), kernelversion, ksyms
|
---|
| 65 | (link to insmod), lsmod (link to insmod), modinfo, modprobe (link to
|
---|
| 66 | insmod), and rmmod (link to insmod)</seg></seglistitem>
|
---|
| 67 | </segmentedlist>
|
---|
| 68 |
|
---|
| 69 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 70 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 71 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 72 |
|
---|
| 73 | <varlistentry id="depmod">
|
---|
| 74 | <term><command>depmod</command></term>
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>Creates a dependency file based on the symbols it finds in the
|
---|
| 77 | existing set of modules; this dependency file is used by <command>modprobe</command> to
|
---|
| 78 | automatically load the required modules</para>
|
---|
| 79 | <indexterm zone="ch-system-module-init-tools depmod"><primary sortas="b-depmod">depmod</primary></indexterm>
|
---|
| 80 | </listitem>
|
---|
| 81 | </varlistentry>
|
---|
| 82 |
|
---|
| 83 | <varlistentry id="genksyms">
|
---|
| 84 | <term><command>genksyms</command></term>
|
---|
| 85 | <listitem>
|
---|
| 86 | <para>Generates symbol version information</para>
|
---|
| 87 | <indexterm zone="ch-system-module-init-tools genksyms"><primary sortas="b-genksyms">genksyms</primary></indexterm>
|
---|
| 88 | </listitem>
|
---|
| 89 | </varlistentry>
|
---|
| 90 |
|
---|
| 91 | <varlistentry id="insmod">
|
---|
| 92 | <term><command>insmod</command></term>
|
---|
| 93 | <listitem>
|
---|
| 94 | <para>Installs a loadable module in the running kernel</para>
|
---|
| 95 | <indexterm zone="ch-system-module-init-tools insmod"><primary sortas="b-insmod">insmod</primary></indexterm>
|
---|
| 96 | </listitem>
|
---|
| 97 | </varlistentry>
|
---|
| 98 |
|
---|
| 99 | <varlistentry id="insmod_ksymoops_clean">
|
---|
| 100 | <term><command>insmod_ksymoops_clean</command></term>
|
---|
| 101 | <listitem>
|
---|
| 102 | <para>Deletes saved ksyms and modules not accessed for two days</para>
|
---|
| 103 | <indexterm zone="ch-system-module-init-tools insmod_ksymoops_clean"><primary sortas="b-insmod_ksymoops_clean">insmod_ksymoops_clean</primary></indexterm>
|
---|
| 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 |
|
---|
| 107 | <varlistentry id="kallsyms">
|
---|
| 108 | <term><command>kallsyms</command></term>
|
---|
| 109 | <listitem>
|
---|
| 110 | <para>Extracts all kernel symbols for debugging</para>
|
---|
| 111 | <indexterm zone="ch-system-module-init-tools kallsyms"><primary sortas="b-kallsyms">kallsyms</primary></indexterm>
|
---|
| 112 | </listitem>
|
---|
| 113 | </varlistentry>
|
---|
| 114 |
|
---|
| 115 | <varlistentry id="kernelversion">
|
---|
| 116 | <term><command>kernelversion</command></term>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para>Reports the major version of the running kernel</para>
|
---|
| 119 | <indexterm zone="ch-system-module-init-tools kernelversion"><primary sortas="b-kernelversion">kernelversion</primary></indexterm>
|
---|
| 120 | </listitem>
|
---|
| 121 | </varlistentry>
|
---|
| 122 |
|
---|
| 123 | <varlistentry id="ksyms">
|
---|
| 124 | <term><command>ksyms</command></term>
|
---|
| 125 | <listitem>
|
---|
| 126 | <para>Displays exported kernel symbols</para>
|
---|
| 127 | <indexterm zone="ch-system-module-init-tools ksyms"><primary sortas="b-ksyms">ksyms</primary></indexterm>
|
---|
| 128 | </listitem>
|
---|
| 129 | </varlistentry>
|
---|
| 130 |
|
---|
| 131 | <varlistentry id="lsmod">
|
---|
| 132 | <term><command>lsmod</command></term>
|
---|
| 133 | <listitem>
|
---|
| 134 | <para>Lists currently loaded modules</para>
|
---|
| 135 | <indexterm zone="ch-system-module-init-tools lsmod"><primary sortas="b-lsmod">lsmod</primary></indexterm>
|
---|
| 136 | </listitem>
|
---|
| 137 | </varlistentry>
|
---|
| 138 |
|
---|
| 139 | <varlistentry id="modinfo">
|
---|
| 140 | <term><command>modinfo</command></term>
|
---|
| 141 | <listitem>
|
---|
| 142 | <para>Examines an object file associated with a kernel module and
|
---|
| 143 | displays any information that it can glean</para>
|
---|
| 144 | <indexterm zone="ch-system-module-init-tools modinfo"><primary sortas="b-modinfo">modinfo</primary></indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="modprobe">
|
---|
| 149 | <term><command>modprobe</command></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>Uses a dependency file, created by
|
---|
| 152 | <command>depmod</command>, to automatically load relevant modules</para>
|
---|
| 153 | <indexterm zone="ch-system-module-init-tools modprobe"><primary sortas="b-modprobe">modprobe</primary></indexterm>
|
---|
| 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
| 156 |
|
---|
| 157 | <varlistentry id="rmmod">
|
---|
| 158 | <term><command>rmmod</command></term>
|
---|
| 159 | <listitem>
|
---|
| 160 | <para>Unloads modules from the running kernel</para>
|
---|
| 161 | <indexterm zone="ch-system-module-init-tools rmmod"><primary sortas="b-rmmod">rmmod</primary></indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 | </variablelist>
|
---|
[9dfc02f] | 165 |
|
---|
| 166 | </sect2>
|
---|
| 167 |
|
---|
| 168 | </sect1>
|
---|
[81fd230] | 169 |
|
---|