Changeset e5ca6b9d for BOOK/final-system/common
- Timestamp:
- Mar 14, 2012, 3:25:50 PM (13 years ago)
- Branches:
- clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 7bb1bf01
- Parents:
- 14b90c2
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/kmod.xml
r14b90c2 re5ca6b9d 6 6 ]> 7 7 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"?> 10 10 11 <title> Module-Init-Tools-&module-init-tools-version;</title>11 <title>Kmod-&kmod-version;</title> 12 12 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> 15 15 </indexterm> 16 16 … … 18 18 <title/> 19 19 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> 22 23 23 24 </sect2> 24 25 25 26 <sect2 role="installation"> 26 <title>Installation of Module-Init-Tools</title>27 <title>Installation of Kmod</title> 27 28 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> 29 30 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> 31 35 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 && 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"> 44 37 <title>The meaning of the configure option:</title> 45 38 46 39 <varlistentry> 47 <term><parameter>-- enable-zlib-dynamic</parameter></term>40 <term><parameter>--with-rootlibdir=/lib</parameter></term> 48 41 <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> 51 51 </listitem> 52 52 </varlistentry> … … 54 54 </variablelist> 55 55 56 <para os=" h">Compile the package:</para>56 <para os="d">Compile the package:</para> 57 57 58 <screen os=" i"><userinput>make DOCBOOKTOMAN=true</userinput></screen>58 <screen os="e"><userinput>make</userinput></screen> 59 59 60 <para os=" j">Install the package:</para>60 <para os="f">To test the results, issue: <userinput>make check</userinput></para> 61 61 62 <screen os="k"><userinput>make install</userinput></screen>62 <para os="g">Install the package:</para> 63 63 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 69 ln -sv ../bin/kmod /sbin/depmod 70 ln -sv ../bin/kmod /sbin/insmod 71 ln -sv ../bin/kmod /sbin/modprobe 72 ln -sv ../bin/kmod /sbin/modinfo 73 ln -sv ../bin/kmod /sbin/rmmod</userinput></screen> 74 64 75 </sect2> 65 76 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> 68 79 69 80 <segmentedlist> … … 71 82 72 83 <seglistitem> 73 <seg>depmod, insmod, insmod.static,lsmod, modinfo, modprobe, and84 <seg>depmod, insmod, lsmod, modinfo, modprobe, and 74 85 rmmod</seg> 75 86 </seglistitem> … … 88 99 <command>modprobe</command> to automatically load the required 89 100 modules</para> 90 <indexterm zone="ch-system- module-init-toolsdepmod">101 <indexterm zone="ch-system-kmod depmod"> 91 102 <primary sortas="b-depmod">depmod</primary> 92 103 </indexterm> … … 98 109 <listitem> 99 110 <para>Installs a loadable module in the running kernel</para> 100 <indexterm zone="ch-system- module-init-toolsinsmod">111 <indexterm zone="ch-system-kmod insmod"> 101 112 <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>112 113 </indexterm> 113 114 </listitem> … … 118 119 <listitem> 119 120 <para>Lists currently loaded modules</para> 120 <indexterm zone="ch-system- module-init-toolslsmod">121 <indexterm zone="ch-system-kmod lsmod"> 121 122 <primary sortas="b-lsmod">lsmod</primary> 122 123 </indexterm> … … 129 130 <para>Examines an object file associated with a kernel module and 130 131 displays any information that it can glean</para> 131 <indexterm zone="ch-system- module-init-toolsmodinfo">132 <indexterm zone="ch-system-kmod modinfo"> 132 133 <primary sortas="b-modinfo">modinfo</primary> 133 134 </indexterm> … … 140 141 <para>Uses a dependency file, created by <command>depmod</command>, 141 142 to automatically load relevant modules</para> 142 <indexterm zone="ch-system- module-init-toolsmodprobe">143 <indexterm zone="ch-system-kmod modprobe"> 143 144 <primary sortas="b-modprobe">modprobe</primary> 144 145 </indexterm> … … 150 151 <listitem> 151 152 <para>Unloads modules from the running kernel</para> 152 <indexterm zone="ch-system- module-init-toolsrmmod">153 <indexterm zone="ch-system-kmod rmmod"> 153 154 <primary sortas="b-rmmod">rmmod</primary> 154 155 </indexterm>
Note:
See TracChangeset
for help on using the changeset viewer.