udev.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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-udev" role="wrap">
  7. <title>Udev-&udev-version;</title>
  8. <?dbhtml filename="udev.html"?>
  9. <indexterm zone="ch-system-udev"><primary sortas="a-Udev">Udev</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Udev package contains programs for dynamic creation of device nodes.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.1 SBU</seg><seg>6.7 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>&dependencies;</segtitle>
  19. <seglistitem><seg>Coreutils and Make</seg></seglistitem>
  20. </segmentedlist>
  21. </sect2>
  22. <sect2 role="installation">
  23. <title>Installation of Udev</title>
  24. <para>Compile the package:</para>
  25. <screen><userinput>make udevdir=/dev</userinput></screen>
  26. <variablelist>
  27. <varlistentry>
  28. <term><parameter>udevdir=/dev</parameter></term>
  29. <listitem><para>This tells <command>udev</command> in which directory
  30. devices nodes are to be created.</para></listitem>
  31. </varlistentry>
  32. </variablelist>
  33. <para>To test the results, issue:
  34. <userinput>make test</userinput>.</para>
  35. <para>Install the package:</para>
  36. <screen><userinput>make DESTDIR=/ udevdir=/dev install</userinput></screen>
  37. <para>The meaning of the make option:</para>
  38. <variablelist>
  39. <varlistentry>
  40. <term><parameter>DESTDIR=/</parameter>
  41. </term>
  42. <listitem>
  43. <para>This prevents the Udev build process from killing any
  44. <command>udevd</command> processes that may be running on the host
  45. system.
  46. </para>
  47. </listitem>
  48. </varlistentry>
  49. </variablelist>
  50. <para>Udev's configuration is far from ideal by default, so install
  51. the configuration files here:</para>
  52. <screen><userinput>cp -v ../&udev-config-file; /etc/udev/rules.d/25-lfs.rules</userinput></screen>
  53. <!-- Edit Me -->
  54. <para>Run the <command>udevstart</command> program to create our full
  55. complement of device nodes.</para>
  56. <screen><userinput>/sbin/udevstart</userinput></screen>
  57. </sect2>
  58. <sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
  59. <segmentedlist>
  60. <segtitle>Installed programs</segtitle>
  61. <segtitle>Installed directory</segtitle>
  62. <seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, and udevtest</seg>
  63. <seg>/etc/udev</seg></seglistitem>
  64. </segmentedlist>
  65. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  66. <?dbfo list-presentation="list"?>
  67. <?dbhtml list-presentation="table"?>
  68. <varlistentry id="udev">
  69. <term><command>udev</command></term>
  70. <listitem>
  71. <para>Creates device nodes in <filename
  72. class="directory">/dev</filename> or renames network interfaces (not
  73. in LFS) in response to hotplug events</para>
  74. <indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
  75. <beginpage/></listitem></varlistentry>
  76. <varlistentry id="udevd">
  77. <term><command>udevd</command></term>
  78. <listitem>
  79. <para>A daemon that reorders hotplug events before submitting them to
  80. <command>udev</command>,
  81. thus avoiding various race conditions</para>
  82. <indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
  83. </listitem></varlistentry>
  84. <varlistentry id="udevsend">
  85. <term><command>udevsend</command></term>
  86. <listitem>
  87. <para>Delivers hotplug events to <command>udevd</command></para>
  88. <indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
  89. </listitem></varlistentry>
  90. <varlistentry id="udevstart">
  91. <term><command>udevstart</command></term>
  92. <listitem>
  93. <para>Creates device nodes in <filename
  94. class="directory">/dev</filename> that correspond to drivers compiled directly
  95. into the kernel; it performs that task by simulating hotplug events presumably
  96. dropped by the kernel before invocation of this program (e.g., because the root
  97. filesystem has not been mounted) and submitting such synthetic hotplug events
  98. to <command>udev</command></para>
  99. <indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="udevinfo">
  103. <term><command>udevinfo</command></term>
  104. <listitem>
  105. <para>Allows users to query the <command>udev</command> database for
  106. information on any device currently present on the system; it also
  107. provides a way to query any device in the <systemitem
  108. class="filesystem">sysfs</systemitem> tree to help create udev
  109. rules</para>
  110. <indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
  111. </listitem></varlistentry>
  112. <varlistentry id="udevtest">
  113. <term><command>udevtest</command></term>
  114. <listitem>
  115. <para>Simulates a <command>udev</command> run for the given device,
  116. and prints out the name of the node the real <command>udev</command> would
  117. have created or (not in LFS) the name of the renamed network interface</para>
  118. <indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
  119. </listitem></varlistentry>
  120. <varlistentry id="etc-udev">
  121. <term><filename class="directory">/etc/udev</filename></term>
  122. <listitem>
  123. <para>Contains <command>udev</command> configuation files,
  124. device permissions, and rules for device naming</para>
  125. <indexterm zone="ch-system-udev etc-udev"><primary sortas="e-/etc/udev">/etc/udev</primary></indexterm>
  126. </listitem></varlistentry>
  127. </variablelist>
  128. </sect2>
  129. </sect1>