module-init-tools.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-module-init-tools" role="wrap">
  7. <title>Module-Init-Tools-&module-init-tools-version;</title>
  8. <?dbhtml filename="module-init-tools.html"?>
  9. <indexterm zone="ch-system-module-init-tools"><primary sortas="a-Module-Init-Tools">Module-Init-Tools</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Module-Init-Tools package contains programs for handling kernel
  12. modules in Linux kernels greater than or equal to version 2.5.47.</para>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>0.1 SBU</seg><seg>4.9 MB</seg></seglistitem>
  17. </segmentedlist>
  18. <segmentedlist>
  19. <segtitle>&dependencies;</segtitle>
  20. <seglistitem><seg>Bash, Binutils, Bison,
  21. Coreutils, Diffutils, Flex, GCC, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
  22. </segmentedlist>
  23. </sect2>
  24. <sect2 role="installation">
  25. <title>Installation of Module-Init-Tools</title>
  26. <para>Module-Init-Tools attempts to rewrite its
  27. <filename>modprobe.conf</filename> man page during the build process. This is
  28. unnecessary and also relies on <command>docbook2man</command> &mdash; which is not
  29. installed in LFS. Run the following command to avoid this:</para>
  30. <screen><userinput>touch modprobe.conf.5</userinput></screen>
  31. <para>If you wish to run the test suite for Module-Init-Tools, you will need to
  32. download the separate testsuite tarball. Issue the following commands to
  33. perform the tests (note that the <command>make distclean</command> command is
  34. required to clean up the source tree, as the source gets recompiled as part of
  35. the testing process):</para>
  36. <screen><userinput>tar -xvf ../module-init-tools-testsuite-&module-init-tools-version;.tar.bz2 &amp;&amp;
  37. ./configure &amp;&amp;
  38. make check &amp;&amp;
  39. make distclean</userinput></screen>
  40. <para>Prepare Module-Init-Tools for compilation:</para>
  41. <screen><userinput>./configure --prefix="" --enable-zlib</userinput></screen>
  42. <para>The meaning of the configure options:</para>
  43. <variablelist>
  44. <varlistentry>
  45. <term><parameter>--enable-zlib</parameter></term>
  46. <listitem><para>This allows the Module-Init-Tools package to handle compressed
  47. kernel modules.</para></listitem>
  48. </varlistentry>
  49. </variablelist>
  50. <para>Compile the package:</para>
  51. <screen><userinput>make</userinput></screen>
  52. <para>Install the package:</para>
  53. <screen><userinput>make install</userinput></screen>
  54. </sect2>
  55. <sect2 id="contents-module-init-tools" role="content"><title>Contents of Module-Init-Tools</title>
  56. <segmentedlist>
  57. <segtitle>Installed programs</segtitle>
  58. <seglistitem><seg>depmod, insmod,
  59. insmod.static, lsmod (link to insmod), modinfo, modprobe (link to
  60. insmod), and rmmod (link to insmod)</seg></seglistitem>
  61. </segmentedlist>
  62. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  63. <?dbfo list-presentation="list"?>
  64. <?dbhtml list-presentation="table"?>
  65. <varlistentry id="depmod">
  66. <term><command>depmod</command></term>
  67. <listitem>
  68. <para>Creates a dependency file based on the symbols it finds in the
  69. existing set of modules; this dependency file is used by <command>modprobe</command> to
  70. automatically load the required modules</para>
  71. <indexterm zone="ch-system-module-init-tools depmod"><primary sortas="b-depmod">depmod</primary></indexterm>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry id="insmod">
  75. <term><command>insmod</command></term>
  76. <listitem>
  77. <para>Installs a loadable module in the running kernel</para>
  78. <indexterm zone="ch-system-module-init-tools insmod"><primary sortas="b-insmod">insmod</primary></indexterm>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry id="insmod.static">
  82. <term><command>insmod.static</command></term>
  83. <listitem>
  84. <para>A statically compiled version of <command>insmod</command></para>
  85. <indexterm zone="ch-system-module-init-tools insmod.static"><primary
  86. sortas="b-insmod.static">insmod.static</primary></indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="lsmod">
  90. <term><command>lsmod</command></term>
  91. <listitem>
  92. <para>Lists currently loaded modules</para>
  93. <indexterm zone="ch-system-module-init-tools lsmod"><primary sortas="b-lsmod">lsmod</primary></indexterm>
  94. </listitem>
  95. </varlistentry>
  96. <varlistentry id="modinfo">
  97. <term><command>modinfo</command></term>
  98. <listitem>
  99. <para>Examines an object file associated with a kernel module and
  100. displays any information that it can glean</para>
  101. <indexterm zone="ch-system-module-init-tools modinfo"><primary sortas="b-modinfo">modinfo</primary></indexterm>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry id="modprobe">
  105. <term><command>modprobe</command></term>
  106. <listitem>
  107. <para>Uses a dependency file, created by
  108. <command>depmod</command>, to automatically load relevant modules</para>
  109. <indexterm zone="ch-system-module-init-tools modprobe"><primary sortas="b-modprobe">modprobe</primary></indexterm>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="rmmod">
  113. <term><command>rmmod</command></term>
  114. <listitem>
  115. <para>Unloads modules from the running kernel</para>
  116. <indexterm zone="ch-system-module-init-tools rmmod"><primary sortas="b-rmmod">rmmod</primary></indexterm>
  117. </listitem>
  118. </varlistentry>
  119. </variablelist>
  120. </sect2>
  121. </sect1>