Ignore:
Timestamp:
Mar 14, 2012, 3:25:50 PM (12 years ago)
Author:
Jonathan Norman <jon@…>
Branches:
clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
7bb1bf01
Parents:
14b90c2
Message:

Replaced Module-Init-Tools with Kmod

File:
1 moved

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/kmod.xml

    r14b90c2 re5ca6b9d  
    66]>
    77
    8 <sect1 id="ch-system-module-init-tools" role="wrap">
    9   <?dbhtml filename="module-init-tools.html"?>
     8<sect1 id="ch-system-kmod" role="wrap">
     9  <?dbhtml filename="kmod.html"?>
    1010
    11   <title>Module-Init-Tools-&module-init-tools-version;</title>
     11  <title>Kmod-&kmod-version;</title>
    1212
    13   <indexterm zone="ch-system-module-init-tools">
    14     <primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary>
     13  <indexterm zone="ch-system-kmod">
     14    <primary sortas="a-Kmod">Kmod</primary>
    1515  </indexterm>
    1616
     
    1818    <title/>
    1919
    20     <para>The Module-Init-Tools package contains programs for handling kernel
    21     modules in Linux kernels greater than or equal to version 2.5.47.</para>
     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>
    2223
    2324  </sect2>
    2425
    2526  <sect2 role="installation">
    26     <title>Installation of Module-Init-Tools</title>
     27    <title>Installation of Kmod</title>
    2728
    28     <para os="p1">The following patch removes warnings caused by Zlib 1.2.6:</para>
     29    <para os="a">Prepare Kmod for compilation:</para>
    2930
    30 <screen os="p2"><userinput>patch -Np1 -i ../&module-init-tools-zlib_fix-patch;</userinput></screen>
     31<screen os="b"><userinput>./configure --prefix=/usr \
     32    --bindir=/bin --sysconfdir=/etc \
     33    --with-rootlibdir=/lib \
     34    --with-zlib --with-xz</userinput></screen>
    3135
    32     <para os="c">Issue the following commands to perform the tests</para>
    33 
    34 <screen os="d"><userinput>sed -i "s/\(make\)\( all\)/\1 DOCBOOKTOMAN=true\2/" tests/runtests &amp;&amp;
    35 ./tests/runtests</userinput></screen>
    36 
    37     <para os="e">Prepare Module-Init-Tools for compilation:</para>
    38 
    39 <screen os="f"><userinput>./configure --prefix=/usr \
    40     --bindir=/bin --sbindir=/sbin \
    41     --enable-zlib-dynamic</userinput></screen>
    42 
    43     <variablelist os="g">
     36    <variablelist os="c">
    4437      <title>The meaning of the configure option:</title>
    4538
    4639      <varlistentry>
    47         <term><parameter>--enable-zlib-dynamic</parameter></term>
     40        <term><parameter>--with-rootlibdir=/lib</parameter></term>
    4841        <listitem>
    49           <para>This allows the Module-Init-Tools package to handle compressed
    50           kernel modules.</para>
     42          <para>Install location for shared libraries.</para>
     43        </listitem>
     44      </varlistentry>
     45
     46      <varlistentry>
     47        <term><parameter>--with-zlib --with-xz</parameter></term>
     48        <listitem>
     49          <para>This allows the Kmod package to handle zlib and XZ
     50            compressed kernel modules.</para>
    5151        </listitem>
    5252      </varlistentry>
     
    5454    </variablelist>
    5555
    56     <para os="h">Compile the package:</para>
     56    <para os="d">Compile the package:</para>
    5757
    58 <screen os="i"><userinput>make DOCBOOKTOMAN=true</userinput></screen>
     58<screen os="e"><userinput>make</userinput></screen>
    5959
    60     <para os="j">Install the package:</para>
     60    <para os="f">To test the results, issue: <userinput>make check</userinput></para>
    6161
    62 <screen os="k"><userinput>make install</userinput></screen>
     62    <para os="g">Install the package:</para>
    6363
     64<screen os="h"><userinput>make install</userinput></screen>
     65
     66    <para os="i">Create symbolic links for programs that expect Module-Init-Tools.</para>
     67
     68<screen os="j"><userinput>ln -sv kmod /bin/lsmod
     69ln -sv ../bin/kmod /sbin/depmod
     70ln -sv ../bin/kmod /sbin/insmod
     71ln -sv ../bin/kmod /sbin/modprobe
     72ln -sv ../bin/kmod /sbin/modinfo
     73ln -sv ../bin/kmod /sbin/rmmod</userinput></screen>
     74 
    6475  </sect2>
    6576
    66   <sect2 id="contents-module-init-tools" role="content">
    67     <title>Contents of Module-Init-Tools</title>
     77  <sect2 id="contents-kmod" role="content">
     78    <title>Contents of Kmod</title>
    6879
    6980    <segmentedlist>
     
    7182
    7283      <seglistitem>
    73         <seg>depmod, insmod, insmod.static, lsmod, modinfo, modprobe, and
     84        <seg>depmod, insmod, lsmod, modinfo, modprobe, and
    7485        rmmod</seg>
    7586      </seglistitem>
     
    8899          <command>modprobe</command> to automatically load the required
    89100          modules</para>
    90           <indexterm zone="ch-system-module-init-tools depmod">
     101          <indexterm zone="ch-system-kmod depmod">
    91102            <primary sortas="b-depmod">depmod</primary>
    92103          </indexterm>
     
    98109        <listitem>
    99110          <para>Installs a loadable module in the running kernel</para>
    100           <indexterm zone="ch-system-module-init-tools insmod">
     111          <indexterm zone="ch-system-kmod insmod">
    101112            <primary sortas="b-insmod">insmod</primary>
    102           </indexterm>
    103         </listitem>
    104       </varlistentry>
    105 
    106       <varlistentry id="insmod.static">
    107         <term><command>insmod.static</command></term>
    108         <listitem>
    109           <para>A statically compiled version of <command>insmod</command></para>
    110           <indexterm zone="ch-system-module-init-tools insmod.static">
    111             <primary sortas="b-insmod.static">insmod.static</primary>
    112113          </indexterm>
    113114        </listitem>
     
    118119        <listitem>
    119120          <para>Lists currently loaded modules</para>
    120           <indexterm zone="ch-system-module-init-tools lsmod">
     121          <indexterm zone="ch-system-kmod lsmod">
    121122            <primary sortas="b-lsmod">lsmod</primary>
    122123          </indexterm>
     
    129130          <para>Examines an object file associated with a kernel module and
    130131          displays any information that it can glean</para>
    131           <indexterm zone="ch-system-module-init-tools modinfo">
     132          <indexterm zone="ch-system-kmod modinfo">
    132133            <primary sortas="b-modinfo">modinfo</primary>
    133134          </indexterm>
     
    140141          <para>Uses a dependency file, created by <command>depmod</command>,
    141142          to automatically load relevant modules</para>
    142           <indexterm zone="ch-system-module-init-tools modprobe">
     143          <indexterm zone="ch-system-kmod modprobe">
    143144            <primary sortas="b-modprobe">modprobe</primary>
    144145          </indexterm>
     
    150151        <listitem>
    151152          <para>Unloads modules from the running kernel</para>
    152           <indexterm zone="ch-system-module-init-tools rmmod">
     153          <indexterm zone="ch-system-kmod rmmod">
    153154            <primary sortas="b-rmmod">rmmod</primary>
    154155          </indexterm>
Note: See TracChangeset for help on using the changeset viewer.