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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d7c9f58 was fab693d, checked in by Jim Gifford <clfs@…>, 17 years ago

Updated to udev 115.

  • Property mode set to 100644
File size: 11.1 KB
Line 
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
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 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Udev</title>
27
28 <para os="a">Compile the package:</para>
29
30<screen os="b"><userinput>make EXTRAS="extras/ata_id extras/cdrom_id extras/collect
31 extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator
32 extras/scsi_id extras/usb_id extras/volume_id" udevdir=/dev</userinput></screen>
33
34 <variablelist os="c">
35 <title>The meaning of the make parameter:</title>
36
37 <varlistentry>
38 <term><parameter>EXTRAS="extras/ata_id extras/cdrom_id extras/collect
39 extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator
40 extras/scsi_id extras/usb_id extras/volume_id"</parameter></term>
41 <listitem>
42 <para>This builds the helper applications that are used with
43 udev. The helper programs assist in correct handling of devices.</para>
44 </listitem>
45 </varlistentry>
46
47 </variablelist>
48
49 <para os="d">If you want to run the testsuite, you need to change
50 a hardcoded reference to the <command>test</command> program:</para>
51
52 <screen os="e"><userinput>sed -i 's@/usr/bin/test@/bin/test@' test/udev-test.pl</userinput></screen>
53
54 <para os="f">To test the results, issue:
55 <userinput>make test</userinput>.</para>
56
57 <para os="g">Install the package:</para>
58
59<screen os="h"><userinput>make EXTRAS="extras/ata_id extras/cdrom_id extras/collect
60 extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator
61 extras/scsi_id extras/usb_id extras/volume_id" DESTDIR=/ udevdir=/dev" install</userinput></screen>
62
63 <variablelist os="i">
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
77 <para os="j">Install documentation:</para>
78
79<screen os="k"><userinput>install -v -m644 -D docs/writing_udev_rules/index.html \
80 /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
81
82 <para os="l">Create a directory for storing firmware that can be
83 loaded by <command>udev</command>:</para>
84
85<screen os="m"><userinput>install -dv /lib/firmware</userinput></screen>
86
87 </sect2>
88
89 <sect2 id="contents-udev" role="content">
90 <title>Contents of Udev</title>
91
92 <segmentedlist>
93 <segtitle>Installed programs</segtitle>
94 <segtitle>Installed directory</segtitle>
95
96 <seglistitem>
97 <seg>udevcontrol, udevd, udevinfo, udevmonitor, udevsend,
98 udevtest, and udevtrigger</seg>
99 <seg>/etc/udev</seg>
100 </seglistitem>
101 </segmentedlist>
102
103 <variablelist>
104 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
105 <?dbfo list-presentation="list"?>
106 <?dbhtml list-presentation="table"?>
107
108 <varlistentry id="udevcontrol">
109 <term><command>udevcontrol</command></term>
110 <listitem>
111 <para>Configures a number of options for the running
112 <command>udevd</command> daemon, such as the log level.</para>
113 <indexterm zone="ch-system-udev udevcontrol">
114 <primary sortas="b-udevcontrol">udevcontrol</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="udevd">
120 <term><command>udevd</command></term>
121 <listitem>
122 <para>A daemon that reorders hotplug events before submitting them to
123 <command>udev</command>,
124 thus avoiding various race conditions</para>
125 <indexterm zone="ch-system-udev udevd">
126 <primary sortas="b-udevd">udevd</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
131 <varlistentry id="udevinfo">
132 <term><command>udevinfo</command></term>
133 <listitem>
134 <para>Allows users to query the <command>udev</command> database for
135 information on any device currently present on the system; it also
136 provides a way to query any device in the <systemitem
137 class="filesystem">sysfs</systemitem> tree to help create udev
138 rules</para>
139 <indexterm zone="ch-system-udev udevinfo">
140 <primary sortas="b-udevinfo">udevinfo</primary>
141 </indexterm>
142 </listitem>
143 </varlistentry>
144
145 <varlistentry id="udevmonitor">
146 <term><command>udevmonitor</command></term>
147 <listitem>
148 <para>Prints the event received from the kernel and the event which
149 <command>udev</command> sends out after rule processing</para>
150 <indexterm zone="ch-system-udev udevmonitor">
151 <primary sortas="b-udevmonitor">udevmonitor</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="udevsettle">
157 <term><command>udevsettle</command></term>
158 <listitem>
159 <para>Watches the Udev event queue and exits if all current uevents
160 have been handled</para>
161 <indexterm zone="ch-system-udev udevsettle">
162 <primary sortas="b-udevsettle">udevsettle</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="udevtest">
168 <term><command>udevtest</command></term>
169 <listitem>
170 <para>Simulates a <command>udev</command> run for the given device,
171 and prints out the name of the node the real <command>udev</command>
172 would have created or the name of the renamed network interface</para>
173 <indexterm zone="ch-system-udev udevtest">
174 <primary sortas="b-udevtest">udevtest</primary>
175 </indexterm>
176 </listitem>
177 </varlistentry>
178
179 <varlistentry id="udevtrigger">
180 <term><command>udevtrigger</command></term>
181 <listitem>
182 <para>Walks the sysfs tree for devices that need to be added to the
183 system.</para>
184 <indexterm zone="ch-system-udev udevtrigger">
185 <primary sortas="b-udevtrigger">udevtrigger</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189
190 <!-- helpers start here -->
191 <varlistentry id="ata_id">
192 <term><command>ata_id</command></term>
193 <listitem>
194 <para>Provides Udev with a unique string and additional
195 information (uuid, label) for an ATA drive</para>
196 <indexterm zone="ch-system-udev ata_id">
197 <primary sortas="b-ata_id">ata_id</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="cdrom_id">
203 <term><command>cdrom_id</command></term>
204 <listitem>
205 <para>Print the capabilities of a CDROM or DVDROM drive.</para>
206 <indexterm zone="ch-system-udev cdrom_id">
207 <primary sortas="b-cdrom_id">cdrom_id</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="create_floppy_devices">
213 <term><command>create_floppy_devices</command></term>
214 <listitem>
215 <para>Creates all possible floppy devices based on the CMOS type</para>
216 <indexterm zone="ch-system-udev create_floppy_devices">
217 <primary sortas="b-create_floppy_devices">create_floppy_devices</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="dasd_id">
223 <term><command>dasd_id</command></term>
224 <listitem>
225 <para>Read the label from an s390 block device.</para>
226 <indexterm zone="ch-system-udev dasd_id">
227 <primary sortas="b-dasd_id">dasd_id</primary>
228 </indexterm>
229 </listitem>
230 </varlistentry>
231
232 <varlistentry id="edd_id">
233 <term><command>edd_id</command></term>
234 <listitem>
235 <para>Identify x86 disk drives from Enhanced Disk Drive calls.</para>
236 <indexterm zone="ch-system-udev edd_id">
237 <primary sortas="b-edd_id">edd_id</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="firmware.sh">
243 <term><command>firmware.sh</command></term>
244 <listitem>
245 <para>Script to load firmware for a device</para>
246 <indexterm zone="ch-system-udev firmware.sh">
247 <primary sortas="b-firmware.sh">firmware.sh</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="path_id">
253 <term><command>path_id</command></term>
254 <listitem>
255 <para>Provide the shortest possible unique hardware path to a
256 device</para>
257 <indexterm zone="ch-system-udev path_id">
258 <primary sortas="b-path_id">path_id</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="scsi_id">
264 <term><command>scsi_id</command></term>
265 <listitem>
266 <para>Retrieve or generate a unique SCSI identifier.</para>
267 <indexterm zone="ch-system-udev scsi_id">
268 <primary sortas="b-scsi_id">scsi_id</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="usb_id">
274 <term><command>usb_id</command></term>
275 <listitem>
276 <para>Identify a USB block device.</para>
277 <indexterm zone="ch-system-udev usb_id">
278 <primary sortas="b-usb_id">usb_id</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282
283 <varlistentry id="vol_id">
284 <term><command>vol_id</command></term>
285 <listitem>
286 <para>Probe filesystem type and read label and uuid.</para>
287 <indexterm zone="ch-system-udev vol_id">
288 <primary sortas="b-vol_id">vol_id</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="etc-udev">
294 <term><filename class="directory">/etc/udev</filename></term>
295 <listitem>
296 <para>Contains <command>udev</command> configuration files,
297 device permissions, and rules for device naming</para>
298 <indexterm zone="ch-system-udev etc-udev">
299 <primary sortas="e-/etc/udev">/etc/udev</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="lib-udev">
305 <term><filename class="directory">/lib/udev</filename></term>
306 <listitem>
307 <para>Contains <command>udev</command> helper programs
308 and static devices which get copied to /dev when booted.</para>
309 <indexterm zone="ch-system-udev lib-udev">
310 <primary sortas="e-/lib/udev">/lib/udev</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314 </variablelist>
315
316 </sect2>
317
318</sect1>
Note: See TracBrowser for help on using the repository browser.