eudev.xml 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-eudev" role="wrap">
  8. <?dbhtml filename="eudev.html"?>
  9. <sect1info condition="script">
  10. <productname>eudev</productname>
  11. <productnumber>&eudev-version;</productnumber>
  12. <address>&eudev-url;</address>
  13. </sect1info>
  14. <title>Eudev-&eudev-version;</title>
  15. <indexterm zone="ch-system-eudev">
  16. <primary sortas="a-Eudev">Eudev</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Eudev package contains programs for dynamic creation of device
  21. nodes.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&eudev-ch6-sbu;</seg>
  27. <seg>&eudev-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Eudev</title>
  33. <para>First, fix a test script:</para>
  34. <screen><userinput remap="pre">sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen>
  35. <para>Next, add a workaround to prevent the /tools directory from being
  36. hard coded into Eudev binary files library locations:</para>
  37. <screen><userinput remap="pre">cat &gt; config.cache &lt;&lt; "EOF"
  38. HAVE_BLKID=1
  39. BLKID_LIBS="-lblkid"
  40. BLKID_CFLAGS="-I/tools/include"
  41. EOF</userinput></screen>
  42. <para>Prepare Eudev for compilation:</para>
  43. <screen><userinput remap="configure">./configure --prefix=/usr \
  44. --bindir=/sbin \
  45. --sbindir=/sbin \
  46. --libdir=/usr/lib \
  47. --sysconfdir=/etc \
  48. --libexecdir=/lib \
  49. --with-rootprefix= \
  50. --with-rootlibdir=/lib \
  51. --enable-split-usr \
  52. --enable-manpages \
  53. --enable-hwdb \
  54. --disable-introspection \
  55. --disable-gudev \
  56. --disable-static \
  57. --config-cache \
  58. --disable-gtk-doc-html</userinput></screen>
  59. <para>Compile the package:</para>
  60. <screen><userinput remap="make">LIBRARY_PATH=/tools/lib make</userinput></screen>
  61. <para>Create some directories now that are needed for tests, but
  62. will also be used as a part of installation:</para>
  63. <screen><userinput remap="test">mkdir -pv /lib/udev/rules.d
  64. mkdir -pv /etc/udev/rules.d</userinput></screen>
  65. <para>To test the results, issue:</para>
  66. <screen><userinput remap="test">make LD_LIBRARY_PATH=/tools/lib check</userinput></screen>
  67. <para>Install the package:</para>
  68. <screen><userinput remap="install">make LD_LIBRARY_PATH=/tools/lib install</userinput></screen>
  69. <para>Install some custom rules and support files useful in an LFS
  70. environment:</para>
  71. <screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.bz2
  72. make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
  73. </sect2>
  74. <sect2 id="conf-eudev" role="configuration">
  75. <title>Configuring Eudev</title>
  76. <indexterm zone="conf-eudev">
  77. <primary sortas="a-Eudev">Eudev</primary>
  78. <secondary>configuring</secondary>
  79. </indexterm>
  80. <indexterm zone="conf-eudev">
  81. <primary sortas="e-/etc/udev/hwdb.bin">/etc/udev/hwdb.bin</primary>
  82. </indexterm>
  83. <para>Information about hardware devices is maintained in the
  84. <filename class="directory">/etc/udev/hwdb.d</filename> and
  85. <filename class="directory">/usr/lib/udev/hwdb.d</filename> directories.
  86. <application>Eudev</application> needs that information to be compiled
  87. into a binary database <filename>/etc/udev/hwdb.bin</filename>. Create the
  88. initial database:</para>
  89. <screen><userinput>LD_LIBRARY_PATH=/tools/lib udevadm hwdb --update</userinput></screen>
  90. <para>This command needs to be run each time the hardware information is
  91. updated.</para>
  92. </sect2>
  93. <sect2 id="contents-eudev" role="content">
  94. <title>Contents of Eudev</title>
  95. <segmentedlist>
  96. <segtitle>Installed programs</segtitle>
  97. <segtitle>Installed libraries</segtitle>
  98. <segtitle>Installed directories</segtitle>
  99. <seglistitem>
  100. <seg><!-- These are in /lib/udev and not to be called by the user:
  101. accelerometer, ata_id, cdrom_id, collect, mtd_probe,
  102. scsi_id, v4l_id,--> udevadm and udevd</seg>
  103. <seg>libudev.so</seg>
  104. <seg>/etc/udev, /lib/udev, and /lib/firmware</seg>
  105. </seglistitem>
  106. </segmentedlist>
  107. <variablelist>
  108. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  109. <?dbfo list-presentation="list"?>
  110. <?dbhtml list-presentation="table"?>
  111. <!--
  112. <varlistentry id="ata_id">
  113. <term><command>ata_id</command></term>
  114. <listitem>
  115. <para>Provides Udev with a unique string and
  116. additional information (uuid, label) for an ATA drive</para>
  117. <indexterm zone="ch-system-eudev ata_id">
  118. <primary sortas="b-ata_id">ata_id</primary>
  119. </indexterm>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="cdrom_id">
  123. <term><command>cdrom_id</command></term>
  124. <listitem>
  125. <para>Provides Udev with the capabilities of a
  126. CD-ROM or DVD-ROM drive</para>
  127. <indexterm zone="ch-system-eudev cdrom_id">
  128. <primary sortas="b-cdrom_id">cdrom_id</primary>
  129. </indexterm>
  130. </listitem>
  131. </varlistentry>
  132. <varlistentry id="collect">
  133. <term><command>collect</command></term>
  134. <listitem>
  135. <para>Given an ID for the current uevent and a list of
  136. IDs (for all target uevents), registers the current ID
  137. and indicates whether all target IDs have been registered</para>
  138. <indexterm zone="ch-system-eudev collect">
  139. <primary sortas="b-collect">collect</primary>
  140. </indexterm>
  141. </listitem>
  142. </varlistentry>
  143. <varlistentry id="scsi_id">
  144. <term><command>scsi_id</command></term>
  145. <listitem>
  146. <para>Provides Udev with a unique SCSI identifier
  147. based on the data returned from sending a SCSI INQUIRY command to
  148. the specified device</para>
  149. <indexterm zone="ch-system-eudev scsi_id">
  150. <primary sortas="b-scsi_id">scsi_id</primary>
  151. </indexterm>
  152. </listitem>
  153. </varlistentry>
  154. -->
  155. <varlistentry id="udevadm">
  156. <term><command>udevadm</command></term>
  157. <listitem>
  158. <para>Generic udev administration tool: controls the udevd daemon,
  159. provides info from the Udev database, monitors uevents, waits for
  160. uevents to finish, tests Udev configuration, and triggers uevents
  161. for a given device</para>
  162. <indexterm zone="ch-system-eudev udevadm">
  163. <primary sortas="b-udevadm">udevadm</primary>
  164. </indexterm>
  165. </listitem>
  166. </varlistentry>
  167. <varlistentry id="udevd">
  168. <term><command>udevd</command></term>
  169. <listitem>
  170. <para>A daemon that listens for uevents on the netlink socket,
  171. creates devices and runs the configured external programs in
  172. response to these uevents</para>
  173. <indexterm zone="ch-system-eudev udevd">
  174. <primary sortas="b-udevd">udevd</primary>
  175. </indexterm>
  176. </listitem>
  177. </varlistentry>
  178. <varlistentry id="libudev">
  179. <term><filename class="libraryfile">libudev</filename></term>
  180. <listitem>
  181. <para>A library interface to udev device information</para>
  182. <indexterm zone="ch-system-eudev libudev">
  183. <primary sortas="c-libudev">libudev</primary>
  184. </indexterm>
  185. </listitem>
  186. </varlistentry>
  187. <varlistentry id="etc-udev">
  188. <term><filename class="directory">/etc/udev</filename></term>
  189. <listitem>
  190. <para>Contains Udev configuration files,
  191. device permissions, and rules for device naming</para>
  192. <indexterm zone="ch-system-eudev etc-udev">
  193. <primary sortas="e-/etc/udev">/etc/udev</primary>
  194. </indexterm>
  195. </listitem>
  196. </varlistentry>
  197. </variablelist>
  198. </sect2>
  199. </sect1>