eudev.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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, clean up a few warnings and fix a test script:</para>
  34. <screen><userinput remap="pre">sed -i '/struct ucred/i struct ucred;' src/libudev/util.h
  35. sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen>
  36. <para>Prepare Eudev for compilation:</para>
  37. <screen><userinput remap="configure">BLKID_CFLAGS=-I/tools/include \
  38. BLKID_LIBS='-L/tools/lib -lblkid' \
  39. ./configure --prefix=/usr \
  40. --bindir=/sbin \
  41. --sbindir=/sbin \
  42. --libdir=/usr/lib \
  43. --sysconfdir=/etc \
  44. --libexecdir=/lib \
  45. --with-rootprefix= \
  46. --with-rootlibdir=/lib \
  47. --enable-split-usr \
  48. --enable-libkmod \
  49. --enable-rule_generator \
  50. --disable-introspection \
  51. --disable-keymap \
  52. --disable-gudev \
  53. --disable-gtk-doc-html \
  54. --with-firmware-path=/lib/firmware </userinput></screen>
  55. <para>Compile the package:</para>
  56. <screen><userinput remap="make">make</userinput></screen>
  57. <para>Create some directories now that are needed for tests, but
  58. will also be used as a part of installation:</para>
  59. <screen><userinput remap="install">mkdir -pv /lib/{firmware,udev/devices/pts}
  60. mkdir -pv /lib/udev/rules.d
  61. mkdir -pv /etc/udev/rules.d</userinput></screen>
  62. <para>To test the results, run issue:</para>
  63. <screen><userinput remap="test">make check</userinput></screen>
  64. <para>Install the package:</para>
  65. <screen><userinput remap="install">make install</userinput></screen>
  66. <para>Now, install the man pages:</para>
  67. <screen><userinput remap="install">tar -xvf ../eudev-&eudev-version;-manpages.tar.bz2 -C /usr/share</userinput></screen>
  68. <para>Finally, create some custom rules that are not covered as a part of the
  69. defaults:</para>
  70. <screen><userinput remap="install">cat &gt; /etc/udev/rules.d/55-lfs.rules &lt;&lt; "EOF"
  71. # /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.
  72. # Core kernel devices
  73. # This causes the system clock to be set as soon as /dev/rtc becomes available.
  74. SUBSYSTEM=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
  75. KERNEL=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
  76. # Comms devices
  77. KERNEL=="ippp[0-9]*", GROUP="dialout"
  78. KERNEL=="isdn[0-9]*", GROUP="dialout"
  79. KERNEL=="isdnctrl[0-9]*", GROUP="dialout"
  80. KERNEL=="dcbri[0-9]*", GROUP="dialout"
  81. EOF</userinput></screen>
  82. </sect2>
  83. <sect2 id="contents-eudev" role="content">
  84. <title>Contents of Eudev</title>
  85. <segmentedlist>
  86. <segtitle>Installed programs</segtitle>
  87. <segtitle>Installed libraries</segtitle>
  88. <segtitle>Installed directories</segtitle>
  89. <seglistitem>
  90. <seg><!-- These are in /lib/udev and not to be called by the user:
  91. accelerometer, ata_id, cdrom_id, collect, mtd_probe,
  92. scsi_id, v4l_id,--> udevadm and udevd</seg>
  93. <seg>libudev.so</seg>
  94. <seg>/etc/udev, /lib/udev, and /lib/firmware</seg>
  95. </seglistitem>
  96. </segmentedlist>
  97. <variablelist>
  98. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  99. <?dbfo list-presentation="list"?>
  100. <?dbhtml list-presentation="table"?>
  101. <!--
  102. <varlistentry id="ata_id">
  103. <term><command>ata_id</command></term>
  104. <listitem>
  105. <para>Provides Udev with a unique string and
  106. additional information (uuid, label) for an ATA drive</para>
  107. <indexterm zone="ch-system-eudev ata_id">
  108. <primary sortas="b-ata_id">ata_id</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="cdrom_id">
  113. <term><command>cdrom_id</command></term>
  114. <listitem>
  115. <para>Provides Udev with the capabilities of a
  116. CD-ROM or DVD-ROM drive</para>
  117. <indexterm zone="ch-system-eudev cdrom_id">
  118. <primary sortas="b-cdrom_id">cdrom_id</primary>
  119. </indexterm>
  120. </listitem>
  121. </varlistentry>
  122. <varlistentry id="collect">
  123. <term><command>collect</command></term>
  124. <listitem>
  125. <para>Given an ID for the current uevent and a list of
  126. IDs (for all target uevents), registers the current ID
  127. and indicates whether all target IDs have been registered</para>
  128. <indexterm zone="ch-system-eudev collect">
  129. <primary sortas="b-collect">collect</primary>
  130. </indexterm>
  131. </listitem>
  132. </varlistentry>
  133. <varlistentry id="scsi_id">
  134. <term><command>scsi_id</command></term>
  135. <listitem>
  136. <para>Provides Udev with a unique SCSI identifier
  137. based on the data returned from sending a SCSI INQUIRY command to
  138. the specified device</para>
  139. <indexterm zone="ch-system-eudev scsi_id">
  140. <primary sortas="b-scsi_id">scsi_id</primary>
  141. </indexterm>
  142. </listitem>
  143. </varlistentry>
  144. -->
  145. <varlistentry id="udevadm">
  146. <term><command>udevadm</command></term>
  147. <listitem>
  148. <para>Generic udev administration tool: controls the udevd daemon,
  149. provides info from the Udev database, monitors uevents, waits for
  150. uevents to finish, tests Udev configuration, and triggers uevents
  151. for a given device</para>
  152. <indexterm zone="ch-system-eudev udevadm">
  153. <primary sortas="b-udevadm">udevadm</primary>
  154. </indexterm>
  155. </listitem>
  156. </varlistentry>
  157. <varlistentry id="udevd">
  158. <term><command>udevd</command></term>
  159. <listitem>
  160. <para>A daemon that listens for uevents on the netlink socket,
  161. creates devices and runs the configured external programs in
  162. response to these uevents</para>
  163. <indexterm zone="ch-system-eudev udevd">
  164. <primary sortas="b-udevd">udevd</primary>
  165. </indexterm>
  166. </listitem>
  167. </varlistentry>
  168. <varlistentry id="libudev">
  169. <term><filename class="libraryfile">libudev</filename></term>
  170. <listitem>
  171. <para>A library interface to udev device information</para>
  172. <indexterm zone="ch-system-eudev libudev">
  173. <primary sortas="c-libudev">libudev</primary>
  174. </indexterm>
  175. </listitem>
  176. </varlistentry>
  177. <varlistentry id="etc-udev">
  178. <term><filename class="directory">/etc/udev</filename></term>
  179. <listitem>
  180. <para>Contains Udev configuration files,
  181. device permissions, and rules for device naming</para>
  182. <indexterm zone="ch-system-eudev etc-udev">
  183. <primary sortas="e-/etc/udev">/etc/udev</primary>
  184. </indexterm>
  185. </listitem>
  186. </varlistentry>
  187. </variablelist>
  188. </sect2>
  189. </sect1>