[7f2a588] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[e5ca6b9d] | 8 | <sect1 id="ch-system-kmod" role="wrap">
|
---|
| 9 | <?dbhtml filename="kmod.html"?>
|
---|
[3f8be484] | 10 |
|
---|
[e5ca6b9d] | 11 | <title>Kmod-&kmod-version;</title>
|
---|
[3f8be484] | 12 |
|
---|
[e5ca6b9d] | 13 | <indexterm zone="ch-system-kmod">
|
---|
| 14 | <primary sortas="a-Kmod">Kmod</primary>
|
---|
[3f8be484] | 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
[e5ca6b9d] | 20 | <para>The Kmod package contains programs for loading, inserting
|
---|
| 21 | and removing kernel modules for Linux. Kmod replaces the
|
---|
| 22 | Module-Init-tools package.</para>
|
---|
[3f8be484] | 23 |
|
---|
| 24 | </sect2>
|
---|
| 25 |
|
---|
| 26 | <sect2 role="installation">
|
---|
[e5ca6b9d] | 27 | <title>Installation of Kmod</title>
|
---|
[3f8be484] | 28 |
|
---|
[e5ca6b9d] | 29 | <para os="a">Prepare Kmod for compilation:</para>
|
---|
[8ac1263] | 30 |
|
---|
[e5ca6b9d] | 31 | <screen os="b"><userinput>./configure --prefix=/usr \
|
---|
| 32 | --bindir=/bin --sysconfdir=/etc \
|
---|
[a81e2bd] | 33 | --with-rootlibdir=/lib --disable-manpages \
|
---|
[e5ca6b9d] | 34 | --with-zlib --with-xz</userinput></screen>
|
---|
[8ac1263] | 35 |
|
---|
[e5ca6b9d] | 36 | <variablelist os="c">
|
---|
[da0b4a3] | 37 | <title>The meaning of the configure option:</title>
|
---|
[3f8be484] | 38 |
|
---|
| 39 | <varlistentry>
|
---|
[e5ca6b9d] | 40 | <term><parameter>--with-rootlibdir=/lib</parameter></term>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Install location for shared libraries.</para>
|
---|
| 43 | </listitem>
|
---|
| 44 | </varlistentry>
|
---|
| 45 |
|
---|
| 46 | <varlistentry>
|
---|
| 47 | <term><parameter>--with-zlib --with-xz</parameter></term>
|
---|
[3f8be484] | 48 | <listitem>
|
---|
[e5ca6b9d] | 49 | <para>This allows the Kmod package to handle zlib and XZ
|
---|
| 50 | compressed kernel modules.</para>
|
---|
[3f8be484] | 51 | </listitem>
|
---|
| 52 | </varlistentry>
|
---|
| 53 |
|
---|
| 54 | </variablelist>
|
---|
| 55 |
|
---|
[e5ca6b9d] | 56 | <para os="d">Compile the package:</para>
|
---|
| 57 |
|
---|
| 58 | <screen os="e"><userinput>make</userinput></screen>
|
---|
[3f8be484] | 59 |
|
---|
[e5ca6b9d] | 60 | <para os="f">To test the results, issue: <userinput>make check</userinput></para>
|
---|
[c6c6c35] | 61 |
|
---|
[e5ca6b9d] | 62 | <para os="g">Install the package:</para>
|
---|
[3f8be484] | 63 |
|
---|
[a81e2bd] | 64 | <screen os="h"><userinput>make install
|
---|
| 65 | make -C man install</userinput></screen>
|
---|
[e69b20a] | 66 |
|
---|
[e5ca6b9d] | 67 | <para os="i">Create symbolic links for programs that expect Module-Init-Tools.</para>
|
---|
| 68 |
|
---|
| 69 | <screen os="j"><userinput>ln -sv kmod /bin/lsmod
|
---|
| 70 | ln -sv ../bin/kmod /sbin/depmod
|
---|
| 71 | ln -sv ../bin/kmod /sbin/insmod
|
---|
| 72 | ln -sv ../bin/kmod /sbin/modprobe
|
---|
| 73 | ln -sv ../bin/kmod /sbin/modinfo
|
---|
| 74 | ln -sv ../bin/kmod /sbin/rmmod</userinput></screen>
|
---|
| 75 |
|
---|
[3f8be484] | 76 | </sect2>
|
---|
| 77 |
|
---|
[e5ca6b9d] | 78 | <sect2 id="contents-kmod" role="content">
|
---|
| 79 | <title>Contents of Kmod</title>
|
---|
[3f8be484] | 80 |
|
---|
| 81 | <segmentedlist>
|
---|
| 82 | <segtitle>Installed programs</segtitle>
|
---|
| 83 |
|
---|
| 84 | <seglistitem>
|
---|
[2b220db9] | 85 | <seg>depmod, insmod, kmod, lsmod, modinfo, modprobe, and
|
---|
[188b6b2] | 86 | rmmod</seg>
|
---|
[3f8be484] | 87 | </seglistitem>
|
---|
| 88 | </segmentedlist>
|
---|
| 89 |
|
---|
| 90 | <variablelist>
|
---|
| 91 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 92 | <?dbfo list-presentation="list"?>
|
---|
| 93 | <?dbhtml list-presentation="table"?>
|
---|
| 94 |
|
---|
| 95 | <varlistentry id="depmod">
|
---|
| 96 | <term><command>depmod</command></term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>Creates a dependency file based on the symbols it finds in
|
---|
| 99 | the existing set of modules; this dependency file is used by
|
---|
| 100 | <command>modprobe</command> to automatically load the required
|
---|
| 101 | modules</para>
|
---|
[e5ca6b9d] | 102 | <indexterm zone="ch-system-kmod depmod">
|
---|
[3f8be484] | 103 | <primary sortas="b-depmod">depmod</primary>
|
---|
| 104 | </indexterm>
|
---|
| 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
| 107 |
|
---|
| 108 | <varlistentry id="insmod">
|
---|
| 109 | <term><command>insmod</command></term>
|
---|
| 110 | <listitem>
|
---|
| 111 | <para>Installs a loadable module in the running kernel</para>
|
---|
[e5ca6b9d] | 112 | <indexterm zone="ch-system-kmod insmod">
|
---|
[3f8be484] | 113 | <primary sortas="b-insmod">insmod</primary>
|
---|
| 114 | </indexterm>
|
---|
| 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
| 117 |
|
---|
[2b220db9] | 118 | <varlistentry id="kmod">
|
---|
| 119 | <term><command>kmod</command></term>
|
---|
| 120 | <listitem>
|
---|
| 121 | <para>Loads and unloads kernel modules</para>
|
---|
| 122 | <indexterm zone="ch-system-kmod kmod">
|
---|
| 123 | <primary sortas="b-kmod">kmod</primary>
|
---|
| 124 | </indexterm>
|
---|
| 125 | </listitem>
|
---|
| 126 | </varlistentry>
|
---|
| 127 |
|
---|
[3f8be484] | 128 | <varlistentry id="lsmod">
|
---|
| 129 | <term><command>lsmod</command></term>
|
---|
| 130 | <listitem>
|
---|
| 131 | <para>Lists currently loaded modules</para>
|
---|
[e5ca6b9d] | 132 | <indexterm zone="ch-system-kmod lsmod">
|
---|
[3f8be484] | 133 | <primary sortas="b-lsmod">lsmod</primary>
|
---|
| 134 | </indexterm>
|
---|
| 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
| 137 |
|
---|
| 138 | <varlistentry id="modinfo">
|
---|
| 139 | <term><command>modinfo</command></term>
|
---|
| 140 | <listitem>
|
---|
| 141 | <para>Examines an object file associated with a kernel module and
|
---|
| 142 | displays any information that it can glean</para>
|
---|
[e5ca6b9d] | 143 | <indexterm zone="ch-system-kmod modinfo">
|
---|
[3f8be484] | 144 | <primary sortas="b-modinfo">modinfo</primary>
|
---|
| 145 | </indexterm>
|
---|
| 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="modprobe">
|
---|
| 150 | <term><command>modprobe</command></term>
|
---|
| 151 | <listitem>
|
---|
| 152 | <para>Uses a dependency file, created by <command>depmod</command>,
|
---|
| 153 | to automatically load relevant modules</para>
|
---|
[e5ca6b9d] | 154 | <indexterm zone="ch-system-kmod modprobe">
|
---|
[3f8be484] | 155 | <primary sortas="b-modprobe">modprobe</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
| 159 |
|
---|
| 160 | <varlistentry id="rmmod">
|
---|
| 161 | <term><command>rmmod</command></term>
|
---|
| 162 | <listitem>
|
---|
| 163 | <para>Unloads modules from the running kernel</para>
|
---|
[e5ca6b9d] | 164 | <indexterm zone="ch-system-kmod rmmod">
|
---|
[3f8be484] | 165 | <primary sortas="b-rmmod">rmmod</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | </variablelist>
|
---|
| 171 |
|
---|
| 172 | </sect2>
|
---|
| 173 |
|
---|
| 174 | </sect1>
|
---|