udev.xml 5.2 KB

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