📄 module-init-tools.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content= "application/xhtml+xml; charset=iso-8859-1" /> <title> 10.45. Module-Init-Tools-3.2.2 </title> <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /> <link rel="stylesheet" href="../stylesheets/lfs-print.css" type= "text/css" media="print" /> </head> <body id="lfs" class="CLFS-SVN-20060417-MIPS"> <div class="navheader"> <div class="headertitles"> <h4> Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS </h4> <h3> Chapter 10. Installing Basic System Software </h3> </div> <ul class="headerlinks"> <li class="prev"> <a accesskey="p" href="mktemp.html" title="Mktemp-1.5">Prev</a> <p> Mktemp-1.5 </p> </li> <li class="next"> <a accesskey="n" href="patch.html" title="Patch-2.5.9">Next</a> <p> Patch-2.5.9 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a> </li> </ul> </div> <div class="wrap" lang="en" xml:lang="en"> <div class="titlepage"> <h1 class="sect1"> 10.45. Module-Init-Tools-3.2.2 </h1> </div> <div class="package" lang="en" xml:lang="en"> <p> The Module-Init-Tools package contains programs for handling kernel modules in Linux kernels greater than or equal to version 2.5.47. </p> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installation depends on:</span></strong> <span class="seg">Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, M4, Make, Sed, and Zlib</span> </div> </div> </div> </div> <div class="installation" lang="en" xml:lang="en"> <div class="titlepage"> <h2 class="sect2"> 10.45.1. Installation of Module-Init-Tools </h2> </div> <p> This patch updates <tt class="filename">config.guess</tt> and <tt class="filename">config.sub</tt> for MIPS processors. </p> <pre class="userinput"><kbd class="command">patch -Np1 -i ../module-init-tools-3.2.2-mips_config_update-1.patch</kbd></pre> <p> Issue the following commands to perform the tests (note that the <span><strong class="command">make distclean</strong></span> command is required to clean up the source tree, as the source gets recompiled as part of the testing process): </p> <pre class="userinput"><kbd class="command">./configure &&make check &&make distclean</kbd></pre> <p> Prepare Module-Init-Tools for compilation: </p> <pre class="userinput"><kbd class="command">./configure --prefix=/ --enable-zlib</kbd></pre> <div class="variablelist"> <p class="title"> <b>The meaning of the configure options:</b> </p> <dl> <dt> <span class="term"><em class= "parameter"><tt>--enable-zlib</tt></em></span> </dt> <dd> <p> This allows the Module-Init-Tools package to handle compressed kernel modules. </p> </dd> </dl> </div> <p> Compile the package: </p> <pre class="userinput"><kbd class="command">make</kbd></pre> <p> Install the package: </p> <pre class="userinput"><kbd class="command">make install</kbd></pre> </div> <div class="content" lang="en" xml:lang="en"> <div class="titlepage"> <a id="contents-module-init-tools" name= "contents-module-init-tools"></a> <h2 class="sect2"> 10.45.2. Contents of Module-Init-Tools </h2> </div> <div class="segmentedlist"> <div class="seglistitem"> <div class="seg"> <strong><span class="segtitle">Installed programs:</span></strong> <span class="seg">depmod, insmod, insmod.static, lsmod (link to insmod), modinfo, modprobe (link to insmod), and rmmod (link to insmod)</span> </div> </div> </div> <div class="variablelist"> <h3> <a id="id3685354" name="id3685354"></a>Short Descriptions </h3> <table border="0"> <col align="left" valign="top" /> <tbody> <tr> <td> <a id="depmod" name="depmod"></a><span class= "term"><span><strong class= "command">depmod</strong></span></span> </td> <td> <p> Creates a dependency file based on the symbols it finds in the existing set of modules; this dependency file is used by <span><strong class= "command">modprobe</strong></span> to automatically load the required modules </p> </td> </tr> <tr> <td> <a id="insmod" name="insmod"></a><span class= "term"><span><strong class= "command">insmod</strong></span></span> </td> <td> <p> Installs a loadable module in the running kernel </p> </td> </tr> <tr> <td> <a id="insmod.static" name="insmod.static"></a><span class= "term"><span><strong class= "command">insmod.static</strong></span></span> </td> <td> <p> A statically compiled version of <span><strong class= "command">insmod</strong></span> </p> </td> </tr> <tr> <td> <a id="lsmod" name="lsmod"></a><span class= "term"><span><strong class= "command">lsmod</strong></span></span> </td> <td> <p> Lists currently loaded modules </p> </td> </tr> <tr> <td> <a id="modinfo" name="modinfo"></a><span class= "term"><span><strong class= "command">modinfo</strong></span></span> </td> <td> <p> Examines an object file associated with a kernel module and displays any information that it can glean </p> </td> </tr> <tr> <td> <a id="modprobe" name="modprobe"></a><span class= "term"><span><strong class= "command">modprobe</strong></span></span> </td> <td> <p> Uses a dependency file, created by <span><strong class= "command">depmod</strong></span>, to automatically load relevant modules </p> </td> </tr> <tr> <td> <a id="rmmod" name="rmmod"></a><span class= "term"><span><strong class= "command">rmmod</strong></span></span> </td> <td> <p> Unloads modules from the running kernel </p> </td> </tr> </tbody> </table> </div> </div> </div> <div class="navfooter"> <ul> <li class="prev"> <a accesskey="p" href="mktemp.html" title="Mktemp-1.5">Prev</a> <p> Mktemp-1.5 </p> </li> <li class="next"> <a accesskey="n" href="patch.html" title="Patch-2.5.9">Next</a> <p> Patch-2.5.9 </p> </li> <li class="up"> <a accesskey="u" href="chapter.html" title= "Chapter 10. Installing Basic System Software">Up</a>. </li> <li class="home"> <a accesskey="h" href="../index.html" title= "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-MIPS"> Home</a>. </li> </ul> </div> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -