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

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

r3371@server (orig r1554): chris | 2006-05-10 14:03:44 -0700
Removed dependency info from individual package instructions

  • Property mode set to 100644
File size: 9.8 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 EXTRAS="extras/floppy extras/cdrom_id extras/firmware \
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>
33
34 <variablelist os="c">
35 <title>The meaning of the make parameter:</title>
36
37 <varlistentry>
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>
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>
51 program:</para>
52
53 <screen os="e"><userinput>sed -i 's@/usr/bin/test@/bin/test@' test/udev-test.pl</userinput></screen>
54
55 <para os="f">To test the results, issue:
56 <userinput>make test</userinput>.</para>
57
58 <para os="g">Install the package:</para>
59
60<screen os="h"><userinput>make DESTDIR=/ \
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>
64
65 <variablelist os="i">
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>
78
79 <para os="i">Install necessary helpers.</para>
80
81<screen os="j"><userinput>install -Dv extras/eventrecorder.sh /lib/udev</userinput></screen>
82
83 <para os="l">Install the documentation that explains how to create
84 Udev rules:</para>
85
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>
88
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
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>
104 <seg>udevcontrol, udevd, udevinfo, udevmonitor, udevsend,
105 udevtest, and udevtrigger</seg>
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
163 <varlistentry id="udevtest">
164 <term><command>udevtest</command></term>
165 <listitem>
166 <para>Simulates a <command>udev</command> run for the given device,
167 and prints out the name of the node the real <command>udev</command>
168 would have created or (not in LFS) the name of the renamed network
169 interface</para>
170 <indexterm zone="ch-system-udev udevtest">
171 <primary sortas="b-udevtest">udevtest</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="udevtrigger">
177 <term><command>udevtrigger</command></term>
178 <listitem>
179 <para>Walks the sysfs tree for devices that need to be added to the
180 system.</para>
181 <indexterm zone="ch-system-udev udevtrigger">
182 <primary sortas="b-udevtrigger">udevtrigger</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="cdrom_id">
188 <term><command>cdrom_id</command></term>
189 <listitem>
190 <para>To be written</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="firmware_helper">
198 <term><command>firmware_helper</command></term>
199 <listitem>
200 <para>To be written</para>
201 <indexterm zone="ch-system-udev firmware_helper">
202 <primary sortas="b-firmware_helper">firmware_helper</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="scsi_id">
208 <term><command>scsi_id</command></term>
209 <listitem>
210 <para>To be written</para>
211 <indexterm zone="ch-system-udev scsi_id">
212 <primary sortas="b-scsi_id">scsi_id</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="volume_id">
218 <term><command>volume_id</command></term>
219 <listitem>
220 <para>To be written</para>
221 <indexterm zone="ch-system-udev volume_id">
222 <primary sortas="b-volume_id">volume_id</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 <varlistentry id="ata_id">
228 <term><command>ata_id</command></term>
229 <listitem>
230 <para>To be written</para>
231 <indexterm zone="ch-system-udev ata_id">
232 <primary sortas="b-volume_id">ata_id</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="usb_id">
238 <term><command>usb_id</command></term>
239 <listitem>
240 <para>To be written</para>
241 <indexterm zone="ch-system-udev usb_id">
242 <primary sortas="b-usb_id">usb_id</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="edd_id">
248 <term><command>edd_id</command></term>
249 <listitem>
250 <para>To be written</para>
251 <indexterm zone="ch-system-udev edd_id">
252 <primary sortas="b-edd_id">edd_id</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="dasd_id">
258 <term><command>dasd_id</command></term>
259 <listitem>
260 <para>To be written</para>
261 <indexterm zone="ch-system-udev dasd_id">
262 <primary sortas="b-dasd_id">dasd_id</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry id="etc-udev">
268 <term><filename class="directory">/etc/udev</filename></term>
269 <listitem>
270 <para>Contains <command>udev</command> configuation files,
271 device permissions, and rules for device naming</para>
272 <indexterm zone="ch-system-udev etc-udev">
273 <primary sortas="e-/etc/udev">/etc/udev</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 <varlistentry id="lib-udev">
279 <term><filename class="directory">/lib/udev</filename></term>
280 <listitem>
281 <para>Contains <command>udev</command> helper programs
282 and static devices which get copied to /dev when booted.</para>
283 <indexterm zone="ch-system-udev lib-udev">
284 <primary sortas="e-/lib/udev">/lib/udev</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288 </variablelist>
289
290 </sect2>
291
292</sect1>
Note: See TracBrowser for help on using the repository browser.