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

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 4929f06 was 4929f06, checked in by Jim Gifford <clfs@…>, 18 years ago

r2680@server: jim | 2006-03-22 12:52:30 -0800
Added: text for udevtrigger

  • Property mode set to 100644
File size: 9.9 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        udevtest, and udevtrigger</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="udevtrigger">
182        <term><command>udevtrigger</command></term>
183        <listitem>
184          <para>Walks the sysfs tree for devices that need to be added to the
185          system.</para>
186          <indexterm zone="ch-system-udev udevtrigger">
187            <primary sortas="b-udevtrigger">udevtrigger</primary>
188          </indexterm>
189        </listitem>
190      </varlistentry>
191
192      <varlistentry id="cdrom_id">
193        <term><command>cdrom_id</command></term>
194        <listitem>
195          <para>To be written</para> 
196          <indexterm zone="ch-system-udev cdrom_id">
197            <primary sortas="b-cdrom_id">cdrom_id</primary>
198          </indexterm>
199        </listitem>
200      </varlistentry>
201
202      <varlistentry id="firmware_helper">
203        <term><command>firmware_helper</command></term>
204        <listitem>
205          <para>To be written</para> 
206          <indexterm zone="ch-system-udev firmware_helper">
207            <primary sortas="b-firmware_helper">firmware_helper</primary>
208          </indexterm>
209        </listitem>
210      </varlistentry>
211
212      <varlistentry id="scsi_id">
213        <term><command>scsi_id</command></term>
214        <listitem>
215          <para>To be written</para> 
216          <indexterm zone="ch-system-udev scsi_id">
217            <primary sortas="b-scsi_id">scsi_id</primary>
218          </indexterm>
219        </listitem>
220      </varlistentry>
221
222      <varlistentry id="volume_id">
223        <term><command>volume_id</command></term>
224        <listitem>
225          <para>To be written</para> 
226          <indexterm zone="ch-system-udev volume_id">
227            <primary sortas="b-volume_id">volume_id</primary>
228          </indexterm>
229        </listitem>
230      </varlistentry>
231
232      <varlistentry id="ata_id">
233        <term><command>ata_id</command></term>
234        <listitem>
235          <para>To be written</para> 
236          <indexterm zone="ch-system-udev ata_id">
237            <primary sortas="b-volume_id">ata_id</primary>
238          </indexterm>
239        </listitem>
240      </varlistentry>
241
242      <varlistentry id="usb_id">
243        <term><command>usb_id</command></term>
244        <listitem>
245          <para>To be written</para> 
246          <indexterm zone="ch-system-udev usb_id">
247            <primary sortas="b-usb_id">usb_id</primary>
248          </indexterm>
249        </listitem>
250      </varlistentry>
251
252      <varlistentry id="edd_id">
253        <term><command>edd_id</command></term>
254        <listitem>
255          <para>To be written</para> 
256          <indexterm zone="ch-system-udev edd_id">
257            <primary sortas="b-edd_id">edd_id</primary>
258          </indexterm>
259        </listitem>
260      </varlistentry>
261
262      <varlistentry id="dasd_id">
263        <term><command>dasd_id</command></term>
264        <listitem>
265          <para>To be written</para> 
266          <indexterm zone="ch-system-udev dasd_id">
267            <primary sortas="b-dasd_id">dasd_id</primary>
268          </indexterm>
269        </listitem>
270      </varlistentry>
271
272      <varlistentry id="etc-udev">
273        <term><filename class="directory">/etc/udev</filename></term>
274        <listitem>
275          <para>Contains <command>udev</command> configuation files,
276          device permissions, and rules for device naming</para>
277          <indexterm zone="ch-system-udev etc-udev">
278            <primary sortas="e-/etc/udev">/etc/udev</primary>
279          </indexterm>
280        </listitem>
281      </varlistentry>
282
283      <varlistentry id="lib-udev">
284        <term><filename class="directory">/lib/udev</filename></term>
285        <listitem>
286          <para>Contains <command>udev</command> helper programs
287          and static devices which get copied to /dev when booted.</para>
288          <indexterm zone="ch-system-udev lib-udev">
289            <primary sortas="e-/lib/udev">/lib/udev</primary>
290          </indexterm>
291        </listitem>
292      </varlistentry>
293    </variablelist>
294
295  </sect2>
296
297</sect1>
Note: See TracBrowser for help on using the repository browser.