source: clfs-sysroot/BOOK/final-system/common/udev.xml@ 827693b

Last change on this file since 827693b was f1583d4, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Removed obsolete udevdir parameter from udev installation in boot section

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