source: BOOK/final-system/common/udev.xml@ 23aca50

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 23aca50 was e0e40d3, checked in by Jim Gifford <clfs@…>, 19 years ago

r781@server (orig r779): jim | 2005-11-30 22:14:06 -0800

r836@server: jim | 2005-11-30 22:13:02 -0800
Text updates to final-system


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