source: final-system/common/udev.xml@ 7532741

Last change on this file since 7532741 was 6f2b63d, checked in by Chris Staub <chris@…>, 18 years ago

Text updates

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