source: final-system/common/udev.xml @ 9090bd7

Last change on this file since 9090bd7 was 9090bd7, checked in by Jim Gifford <clfs@…>, 18 years ago

r672@server (orig r670): manuel | 2005-11-09 03:15:53 -0800
Stop Udev from killing udevd processes on the system and removed udevdir=/dev.

  • Property mode set to 100644
File size: 7.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4  <!ENTITY % general-entities SYSTEM "../../general.ent">
5  <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6  %general-entities;
7  %patches-entities;
8]>
9
10<sect1 id="ch-system-udev" role="wrap">
11  <?dbhtml filename="udev.html"?>
12
13  <title>Udev-&udev-version;</title>
14
15  <indexterm zone="ch-system-udev">
16    <primary sortas="a-Udev">Udev</primary>
17  </indexterm>
18
19  <sect2 role="package">
20    <title/>
21
22    <para>The Udev package contains programs for dynamic creation of device
23    nodes.</para>
24
25    <segmentedlist>
26      <segtitle>&dependencies;</segtitle>
27
28      <seglistitem>
29        <seg>Coreutils and Make</seg>
30      </seglistitem>
31    </segmentedlist>
32
33  </sect2>
34
35  <sect2 role="installation">
36    <title>Installation of Udev</title>
37
38    <para os="c">Compile the package:</para>
39
40<screen><userinput>make EXTRAS="extras/firmware extras/run_directory"</userinput></screen>
41
42    <variablelist os="d">
43      <title>The meaning of the make parameter:</title>
44
45      <varlistentry>
46      <term><parameter>EXTRAS="extras/firmware extras/run_directory"</parameter></term>
47        <listitem>
48          <para>This builds the <command>udev_run_devd</command> and
49          <command>udev_run_hotplugd</command> binaries, which are required for
50          correct handling of hotpluggable devices.</para>
51        </listitem>
52      </varlistentry>
53
54    </variablelist>
55
56    <para os="e">To test the results, issue:
57    <userinput>make test</userinput>.</para>
58
59    <para os="f">Install the package:</para>
60
61<screen os="g"><userinput>make DESTDIR=/ EXTRAS="extras/firmware extras/run_directory" install</userinput></screen>
62
63    <variablelist os="g1">
64      <title>The meaning of the make parameter:</title>
65
66      <varlistentry>
67      <term><parameter>DESTDIR=/</parameter></term>
68        <listitem>
69          <para>This prevents the Udev build process from killing any
70          <command>udevd</command> processes that may be running on the
71          system.</para>
72        </listitem>
73      </varlistentry>
74
75    </variablelist>
76    <para os="h">Udev's configuration is far from ideal by default, so install
77    the configuration files here:</para>
78
79<screen os="i"><userinput>cp ../&udev-config-file; /etc/udev/rules.d/25-lfs.rules</userinput></screen>
80
81    <para os="a">Install the documentation that explains how to create
82    Udev rules:</para>
83
84<screen os="b"><userinput>install -m644 -D docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
85
86    <para os="j">Run the <command>udevstart</command> program to create our full
87    complement of device nodes.</para>
88
89<screen os="k"><userinput>/sbin/udevstart</userinput></screen>
90
91  </sect2>
92
93  <sect2 id="contents-udev" role="content">
94    <title>Contents of Udev</title>
95
96    <segmentedlist>
97      <segtitle>Installed programs</segtitle>
98      <segtitle>Installed directory</segtitle>
99
100      <seglistitem>
101        <seg>udev, udevcontrol, udevd, udevinfo, udevmonitor, udevsend,
102        udevstart and udevtest</seg>
103        <seg>/etc/udev</seg>
104      </seglistitem>
105    </segmentedlist>
106
107    <variablelist>
108      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
109      <?dbfo list-presentation="list"?>
110      <?dbhtml list-presentation="table"?>
111
112      <varlistentry id="udev">
113        <term><command>udev</command></term>
114        <listitem>
115          <para>Creates device nodes in <filename
116          class="directory">/dev</filename> or renames network interfaces (not
117          in LFS) in response to hotplug events</para>
118          <indexterm zone="ch-system-udev udev">
119            <primary sortas="b-udev">udev</primary>
120          </indexterm>
121        </listitem>
122      </varlistentry>
123
124      <varlistentry id="udevcontrol">
125        <term><command>udevcontrol</command></term>
126        <listitem>
127          <para>Configures a number of options for the running
128          <command>udevd</command> daemon, such as the log level.</para>
129          <indexterm zone="ch-system-udev udevcontrol">
130            <primary sortas="b-udevcontrol">udevcontrol</primary>
131          </indexterm>
132        </listitem>
133      </varlistentry>
134
135      <varlistentry id="udevd">
136        <term><command>udevd</command></term>
137        <listitem>
138          <para>A daemon that reorders hotplug events before submitting them to
139          <command>udev</command>,
140          thus avoiding various race conditions</para>
141          <indexterm zone="ch-system-udev udevd">
142            <primary sortas="b-udevd">udevd</primary>
143          </indexterm>
144        </listitem>
145      </varlistentry>
146
147      <varlistentry id="udevinfo">
148        <term><command>udevinfo</command></term>
149        <listitem>
150          <para>Allows users to query the <command>udev</command> database for
151          information on any device currently present on the system; it also
152          provides a way to query any device in the <systemitem
153          class="filesystem">sysfs</systemitem> tree to help create udev
154          rules</para>
155          <indexterm zone="ch-system-udev udevinfo">
156            <primary sortas="b-udevinfo">udevinfo</primary>
157          </indexterm>
158        </listitem>
159      </varlistentry>
160
161      <varlistentry id="udevmonitor">
162        <term><command>udevmonitor</command></term>
163        <listitem>
164          <para>Prints the event received from the kernel and the event which
165          <command>udev</command> sends out after rule processing</para>
166          <indexterm zone="ch-system-udev udevmonitor">
167            <primary sortas="b-udevmonitor">udevmonitor</primary>
168          </indexterm>
169        </listitem>
170      </varlistentry>
171
172      <varlistentry id="udevsend">
173        <term><command>udevsend</command></term>
174        <listitem>
175          <para>Delivers hotplug events to <command>udevd</command></para>
176          <indexterm zone="ch-system-udev udevsend">
177            <primary sortas="b-udevsend">udevsend</primary>
178          </indexterm>
179        </listitem>
180      </varlistentry>
181
182      <varlistentry id="udevstart">
183        <term><command>udevstart</command></term>
184        <listitem>
185          <para>Creates device nodes in <filename class="directory">/dev</filename>
186          that correspond to drivers compiled directly into the kernel; it
187          performs that task by simulating hotplug events presumably dropped by
188          the kernel before invocation of this program (e.g., because the root
189          filesystem has not been mounted) and submitting such synthetic hotplug
190          events to <command>udev</command></para>
191          <indexterm zone="ch-system-udev udevstart">
192            <primary sortas="b-udevstart">udevstart</primary>
193          </indexterm>
194        </listitem>
195      </varlistentry>
196
197      <varlistentry id="udevtest">
198        <term><command>udevtest</command></term>
199        <listitem>
200          <para>Simulates a <command>udev</command> run for the given device,
201          and prints out the name of the node the real <command>udev</command>
202          would have created or (not in LFS) the name of the renamed network
203          interface</para>
204          <indexterm zone="ch-system-udev udevtest">
205            <primary sortas="b-udevtest">udevtest</primary>
206          </indexterm>
207        </listitem>
208      </varlistentry>
209
210      <varlistentry id="etc-udev">
211        <term><filename class="directory">/etc/udev</filename></term>
212        <listitem>
213          <para>Contains <command>udev</command> configuation files,
214          device permissions, and rules for device naming</para>
215          <indexterm zone="ch-system-udev etc-udev">
216            <primary sortas="e-/etc/udev">/etc/udev</primary>
217          </indexterm>
218        </listitem>
219      </varlistentry>
220
221    </variablelist>
222
223  </sect2>
224
225</sect1>
Note: See TracBrowser for help on using the repository browser.