Ignore:
Timestamp:
Oct 10, 2012, 6:42:21 PM (12 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
f7b2c72
Parents:
0cce40d (diff), 80cbd64 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of git.cross-lfs.org:cross-lfs

File:
1 moved

Legend:

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

    r0cce40d r73ace20  
    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="c">Issue the following commands to perform the tests</para>
     29    <para os="a">Prepare Kmod for compilation:</para>
    2930
    30 <screen os="d"><userinput>sed -i "s/\(make\)\( all\)/\1 DOCBOOKTOMAN=true\2/" tests/runtests &amp;&amp;
    31 ./tests/runtests</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>
    3235
    33     <para os="e">Prepare Module-Init-Tools for compilation:</para>
    34 
    35 <screen os="f"><userinput>./configure --prefix=/usr \
    36     --bindir=/bin --sbindir=/sbin \
    37     --enable-zlib-dynamic</userinput></screen>
    38 
    39     <variablelist os="g">
     36    <variablelist os="c">
    4037      <title>The meaning of the configure option:</title>
    4138
    4239      <varlistentry>
    43         <term><parameter>--enable-zlib-dynamic</parameter></term>
     40        <term><parameter>--with-rootlibdir=/lib</parameter></term>
    4441        <listitem>
    45           <para>This allows the Module-Init-Tools package to handle compressed
    46           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>
    4751        </listitem>
    4852      </varlistentry>
     
    5054    </variablelist>
    5155
    52     <para os="h">Compile the package:</para>
     56    <para os="d">Compile the package:</para>
    5357
    54 <screen os="i"><userinput>make DOCBOOKTOMAN=true</userinput></screen>
     58<screen os="e"><userinput>make</userinput></screen>
    5559
    56     <para os="j">Install the package:</para>
     60    <para os="f">To test the results, issue: <userinput>make check</userinput></para>
    5761
    58 <screen os="k"><userinput>make install</userinput></screen>
     62    <para os="g">Install the package:</para>
    5963
     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 
    6075  </sect2>
    6176
    62   <sect2 id="contents-module-init-tools" role="content">
    63     <title>Contents of Module-Init-Tools</title>
     77  <sect2 id="contents-kmod" role="content">
     78    <title>Contents of Kmod</title>
    6479
    6580    <segmentedlist>
     
    6782
    6883      <seglistitem>
    69         <seg>depmod, insmod, insmod.static, lsmod, modinfo, modprobe, and
     84        <seg>depmod, insmod, lsmod, modinfo, modprobe, and
    7085        rmmod</seg>
    7186      </seglistitem>
     
    8499          <command>modprobe</command> to automatically load the required
    85100          modules</para>
    86           <indexterm zone="ch-system-module-init-tools depmod">
     101          <indexterm zone="ch-system-kmod depmod">
    87102            <primary sortas="b-depmod">depmod</primary>
    88103          </indexterm>
     
    94109        <listitem>
    95110          <para>Installs a loadable module in the running kernel</para>
    96           <indexterm zone="ch-system-module-init-tools insmod">
     111          <indexterm zone="ch-system-kmod insmod">
    97112            <primary sortas="b-insmod">insmod</primary>
    98           </indexterm>
    99         </listitem>
    100       </varlistentry>
    101 
    102       <varlistentry id="insmod.static">
    103         <term><command>insmod.static</command></term>
    104         <listitem>
    105           <para>A statically compiled version of <command>insmod</command></para>
    106           <indexterm zone="ch-system-module-init-tools insmod.static">
    107             <primary sortas="b-insmod.static">insmod.static</primary>
    108113          </indexterm>
    109114        </listitem>
     
    114119        <listitem>
    115120          <para>Lists currently loaded modules</para>
    116           <indexterm zone="ch-system-module-init-tools lsmod">
     121          <indexterm zone="ch-system-kmod lsmod">
    117122            <primary sortas="b-lsmod">lsmod</primary>
    118123          </indexterm>
     
    125130          <para>Examines an object file associated with a kernel module and
    126131          displays any information that it can glean</para>
    127           <indexterm zone="ch-system-module-init-tools modinfo">
     132          <indexterm zone="ch-system-kmod modinfo">
    128133            <primary sortas="b-modinfo">modinfo</primary>
    129134          </indexterm>
     
    136141          <para>Uses a dependency file, created by <command>depmod</command>,
    137142          to automatically load relevant modules</para>
    138           <indexterm zone="ch-system-module-init-tools modprobe">
     143          <indexterm zone="ch-system-kmod modprobe">
    139144            <primary sortas="b-modprobe">modprobe</primary>
    140145          </indexterm>
     
    146151        <listitem>
    147152          <para>Unloads modules from the running kernel</para>
    148           <indexterm zone="ch-system-module-init-tools rmmod">
     153          <indexterm zone="ch-system-kmod rmmod">
    149154            <primary sortas="b-rmmod">rmmod</primary>
    150155          </indexterm>
Note: See TracChangeset for help on using the changeset viewer.