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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 599623d3 was fcdaf47, checked in by Chris Staub <chris@…>, 18 years ago

Text updates

  • Property mode set to 100644
File size: 11.2 KB
RevLine 
[3f8be484]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
[e0e40d3]28 <para os="a">Compile the package:</para>
[3f8be484]29
[a40edab]30<screen os="b"><userinput>make EXTRAS="extras/floppy extras/cdrom_id extras/firmware \
[2b244a4]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>
[3f8be484]33
[e0e40d3]34 <variablelist os="c">
[3f8be484]35 <title>The meaning of the make parameter:</title>
36
37 <varlistentry>
[a40edab]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>
[3f8be484]41 <listitem>
[07e9936]42 <para>This builds the helper applications that are used with
43 udev. The helper programs assist in correct handling of devices.</para>
[3f8be484]44 </listitem>
45 </varlistentry>
46
47 </variablelist>
48
[4faecfa]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
[773bf1ea]53 <screen os="e"><userinput>sed -i 's@/usr/bin/test@/bin/test@' test/udev-test.pl</userinput></screen>
[4faecfa]54
55 <para os="f">To test the results, issue:
[3f8be484]56 <userinput>make test</userinput>.</para>
57
[4faecfa]58 <para os="g">Install the package:</para>
[3f8be484]59
[6e8f798]60<screen os="h"><userinput>make DESTDIR=/ \
[2b244a4]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>
[3f8be484]64
[4faecfa]65 <variablelist os="i">
[de3d632]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>
[e0e40d3]78
[fcdaf47]79 <para os="i">Install a necessary helper script:</para>
[3f8be484]80
[a553a49]81<screen os="j"><userinput>install -v extras/eventrecorder.sh /lib/udev</userinput></screen>
[3f8be484]82
[4faecfa]83 <para os="l">Install the documentation that explains how to create
[3f8be484]84 Udev rules:</para>
85
[a40edab]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>
[3f8be484]88
[07e9936]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
[3f8be484]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>
[6e8f798]104 <seg>udevcontrol, udevd, udevinfo, udevmonitor, udevsend,
[4929f06]105 udevtest, and udevtrigger</seg>
[3f8be484]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
[a68b59e]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
[6e8f798]174 <varlistentry id="udevtest">
175 <term><command>udevtest</command></term>
[3f8be484]176 <listitem>
[6e8f798]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>
[fb40919]179 would have created or (not in CLFS) the name of the renamed network
[6e8f798]180 interface</para>
181 <indexterm zone="ch-system-udev udevtest">
182 <primary sortas="b-udevtest">udevtest</primary>
[3f8be484]183 </indexterm>
184 </listitem>
185 </varlistentry>
186
[4929f06]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
[4ce2d9d]198 <!-- helpers start here -->
[a68b59e]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
[6e8f798]210 <varlistentry id="cdrom_id">
211 <term><command>cdrom_id</command></term>
[3f8be484]212 <listitem>
[4ce2d9d]213 <para>Print the capabilities of a cdrom or dvdrom drive.</para>
[6e8f798]214 <indexterm zone="ch-system-udev cdrom_id">
215 <primary sortas="b-cdrom_id">cdrom_id</primary>
[3f8be484]216 </indexterm>
217 </listitem>
218 </varlistentry>
219
[a68b59e]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
[4ce2d9d]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
[a68b59e]250 <varlistentry id="firmware.sh">
[9e18eea]251 <term><command>firmware.sh</command></term>
[3f8be484]252 <listitem>
[4ce2d9d]253 <para>Script to load firmware for a device</para>
[a68b59e]254 <indexterm zone="ch-system-udev firmware.sh">
255 <primary sortas="b-firmware.sh">firmware.sh</primary>
[6e8f798]256 </indexterm>
257 </listitem>
258 </varlistentry>
259
[a68b59e]260 <varlistentry id="path_id">
261 <term><command>path_id</command></term>
[6e8f798]262 <listitem>
[a68b59e]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>
[6e8f798]267 </indexterm>
268 </listitem>
269 </varlistentry>
270
[a68b59e]271 <varlistentry id="scsi_id">
272 <term><command>scsi_id</command></term>
[6e8f798]273 <listitem>
[4ce2d9d]274 <para>Retrieve or generate a unique SCSI identifier.</para>
[a68b59e]275 <indexterm zone="ch-system-udev scsi_id">
276 <primary sortas="b-scsi_id">scsi_id</primary>
[6e8f798]277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="usb_id">
282 <term><command>usb_id</command></term>
283 <listitem>
[4ce2d9d]284 <para>Identify a usb block device.</para>
[6e8f798]285 <indexterm zone="ch-system-udev usb_id">
286 <primary sortas="b-usb_id">usb_id</primary>
287 </indexterm>
288 </listitem>
289 </varlistentry>
290
[4ce2d9d]291 <varlistentry id="vol_id">
292 <term><command>vol_id</command></term>
[6e8f798]293 <listitem>
[4ce2d9d]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>
[3f8be484]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
[6e8f798]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>
[3f8be484]322 </variablelist>
323
324 </sect2>
325
326</sect1>
Note: See TracBrowser for help on using the repository browser.