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

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

r2640@server (orig r1296): chris | 2006-03-18 04:03:14 -0800
Corrected and added to text for the new udev installation

  • Property mode set to 100644
File size: 9.5 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 <segmentedlist>
24 <segtitle>&dependencies;</segtitle>
25
26 <seglistitem>
27 <seg>Coreutils, GCC, Make, Perl, and Tree</seg>
28 </seglistitem>
29 </segmentedlist>
30
31 </sect2>
32
33 <sect2 role="installation">
34 <title>Installation of Udev</title>
35
36 <para os="a">Compile the package:</para>
37
38<screen os="b"><userinput>make EXTRAS="extras/cdrom_id extras/firmware extras/scsi_id extras/volume_id \
39 extras/ata_id extras/usb_id extras/edd_id extras/dasd_id" udevdir=/dev</userinput></screen>
40
41 <variablelist os="c">
42 <title>The meaning of the make parameter:</title>
43
44 <varlistentry>
45 <term><parameter>EXTRAS="extras/cdrom_id extras/firmware extras/scsi_id extras/volume_id \
46 extras/ata_id extras/usb_id extras/edd_id extras/dasd_id"</parameter></term>
47 <listitem>
48 <para>This builds the helper applications that are used with
49 udev. The helper programs assist in correct handling of devices.</para>
50 </listitem>
51 </varlistentry>
52
53 </variablelist>
54
55 <para os="d">If you want to run the testsuite, you need to change
56 a hardcoded reference to the <command>test</command>
57 program:</para>
58
59 <screen os="e"><userinput>sed -i 's@/usr/bin/test@/bin/test@' test/udev-test.pl</userinput></screen>
60
61 <para os="f">To test the results, issue:
62 <userinput>make test</userinput>.</para>
63
64 <para os="g">Install the package:</para>
65
66<screen os="h"><userinput>make DESTDIR=/ \
67 EXTRAS="extras/cdrom_id extras/firmware extras/scsi_id extras/volume_id \
68 extras/ata_id extras/usb_id extras/edd_id extras/dasd_id" udevdir=/dev install</userinput></screen>
69
70 <variablelist os="i">
71 <title>The meaning of the make parameter:</title>
72
73 <varlistentry>
74 <term><parameter>DESTDIR=/</parameter></term>
75 <listitem>
76 <para>This prevents the Udev build process from killing any
77 <command>udevd</command> processes that may be running on the
78 system.</para>
79 </listitem>
80 </varlistentry>
81
82 </variablelist>
83
84 <para os="i">Install necessary helpers.</para>
85
86<screen os="j"><userinput>install -D extras/path_id /sbin/path_id
87install -D extras/eventrecorder.sh /lib/udev/eventrecorder.sh</userinput></screen>
88
89 <para os="l">Install the documentation that explains how to create
90 Udev rules:</para>
91
92<screen os="m"><userinput>install -v -m644 -D docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
93
94 <para os="n">Create a directory for storing firmware that can be
95 loaded by <command>udev</command>:</para>
96
97<screen os="o"><userinput>install -dv /lib/firmware</userinput></screen>
98
99 </sect2>
100
101 <sect2 id="contents-udev" role="content">
102 <title>Contents of Udev</title>
103
104 <segmentedlist>
105 <segtitle>Installed programs</segtitle>
106 <segtitle>Installed directory</segtitle>
107
108 <seglistitem>
109 <seg>udevcontrol, udevd, udevinfo, udevmonitor, udevsend,
110 and udevtest</seg>
111 <seg>/etc/udev</seg>
112 </seglistitem>
113 </segmentedlist>
114
115 <variablelist>
116 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
117 <?dbfo list-presentation="list"?>
118 <?dbhtml list-presentation="table"?>
119
120 <varlistentry id="udevcontrol">
121 <term><command>udevcontrol</command></term>
122 <listitem>
123 <para>Configures a number of options for the running
124 <command>udevd</command> daemon, such as the log level.</para>
125 <indexterm zone="ch-system-udev udevcontrol">
126 <primary sortas="b-udevcontrol">udevcontrol</primary>
127 </indexterm>
128 </listitem>
129 </varlistentry>
130
131 <varlistentry id="udevd">
132 <term><command>udevd</command></term>
133 <listitem>
134 <para>A daemon that reorders hotplug events before submitting them to
135 <command>udev</command>,
136 thus avoiding various race conditions</para>
137 <indexterm zone="ch-system-udev udevd">
138 <primary sortas="b-udevd">udevd</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 <varlistentry id="udevinfo">
144 <term><command>udevinfo</command></term>
145 <listitem>
146 <para>Allows users to query the <command>udev</command> database for
147 information on any device currently present on the system; it also
148 provides a way to query any device in the <systemitem
149 class="filesystem">sysfs</systemitem> tree to help create udev
150 rules</para>
151 <indexterm zone="ch-system-udev udevinfo">
152 <primary sortas="b-udevinfo">udevinfo</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="udevmonitor">
158 <term><command>udevmonitor</command></term>
159 <listitem>
160 <para>Prints the event received from the kernel and the event which
161 <command>udev</command> sends out after rule processing</para>
162 <indexterm zone="ch-system-udev udevmonitor">
163 <primary sortas="b-udevmonitor">udevmonitor</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="udevtest">
169 <term><command>udevtest</command></term>
170 <listitem>
171 <para>Simulates a <command>udev</command> run for the given device,
172 and prints out the name of the node the real <command>udev</command>
173 would have created or (not in LFS) the name of the renamed network
174 interface</para>
175 <indexterm zone="ch-system-udev udevtest">
176 <primary sortas="b-udevtest">udevtest</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="cdrom_id">
182 <term><command>cdrom_id</command></term>
183 <listitem>
184 <para>To be written</para>
185 <indexterm zone="ch-system-udev cdrom_id">
186 <primary sortas="b-cdrom_id">cdrom_id</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="firmware_helper">
192 <term><command>firmware_helper</command></term>
193 <listitem>
194 <para>To be written</para>
195 <indexterm zone="ch-system-udev firmware_helper">
196 <primary sortas="b-firmware_helper">firmware_helper</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="scsi_id">
202 <term><command>scsi_id</command></term>
203 <listitem>
204 <para>To be written</para>
205 <indexterm zone="ch-system-udev scsi_id">
206 <primary sortas="b-scsi_id">scsi_id</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="volume_id">
212 <term><command>volume_id</command></term>
213 <listitem>
214 <para>To be written</para>
215 <indexterm zone="ch-system-udev volume_id">
216 <primary sortas="b-volume_id">volume_id</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="ata_id">
222 <term><command>ata_id</command></term>
223 <listitem>
224 <para>To be written</para>
225 <indexterm zone="ch-system-udev ata_id">
226 <primary sortas="b-volume_id">ata_id</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="usb_id">
232 <term><command>usb_id</command></term>
233 <listitem>
234 <para>To be written</para>
235 <indexterm zone="ch-system-udev usb_id">
236 <primary sortas="b-usb_id">usb_id</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="edd_id">
242 <term><command>edd_id</command></term>
243 <listitem>
244 <para>To be written</para>
245 <indexterm zone="ch-system-udev edd_id">
246 <primary sortas="b-edd_id">edd_id</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="dasd_id">
252 <term><command>dasd_id</command></term>
253 <listitem>
254 <para>To be written</para>
255 <indexterm zone="ch-system-udev dasd_id">
256 <primary sortas="b-dasd_id">dasd_id</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="etc-udev">
262 <term><filename class="directory">/etc/udev</filename></term>
263 <listitem>
264 <para>Contains <command>udev</command> configuation files,
265 device permissions, and rules for device naming</para>
266 <indexterm zone="ch-system-udev etc-udev">
267 <primary sortas="e-/etc/udev">/etc/udev</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="lib-udev">
273 <term><filename class="directory">/lib/udev</filename></term>
274 <listitem>
275 <para>Contains <command>udev</command> helper programs
276 and static devices which get copied to /dev when booted.</para>
277 <indexterm zone="ch-system-udev lib-udev">
278 <primary sortas="e-/lib/udev">/lib/udev</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
282 </variablelist>
283
284 </sect2>
285
286</sect1>
Note: See TracBrowser for help on using the repository browser.