source: final-system/common/udev.xml@ db63ccc

Last change on this file since db63ccc was eac7362, checked in by Jim Gifford <clfs@…>, 19 years ago

r668@server (orig r666): manuel | 2005-11-08 15:25:13 -0800
Removing SBUs and DUs. Chapter final-system, round 6.

  • Property mode set to 100644
File size: 7.2 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 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-system-udev" role="wrap">
11 <?dbhtml filename="udev.html"?>
12
13 <title>Udev-&udev-version;</title>
14
15 <indexterm zone="ch-system-udev">
16 <primary sortas="a-Udev">Udev</primary>
17 </indexterm>
18
19 <sect2 role="package">
20 <title/>
21
22 <para>The Udev package contains programs for dynamic creation of device
23 nodes.</para>
24
25 <segmentedlist>
26 <segtitle>&dependencies;</segtitle>
27
28 <seglistitem>
29 <seg>Coreutils and Make</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Udev</title>
37
38 <para os="c">Compile the package:</para>
39
40<screen><userinput>make EXTRAS="extras/firmware extras/run_directory" udevdir=/dev</userinput></screen>
41
42 <variablelist os="d">
43 <title>The meaning of the make parameter:</title>
44
45 <varlistentry>
46 <term><parameter>udevdir=/dev</parameter></term>
47 <listitem>
48 <para>This tells <command>udev</command> in which directory
49 devices nodes are to be created.</para>
50 </listitem>
51 </varlistentry>
52
53 </variablelist>
54
55 <para os="e">To test the results, issue:
56 <userinput>make test</userinput>.</para>
57
58 <para os="f">Install the package:</para>
59
60<screen os="g"><userinput>make EXTRAS="extras/firmware extras/run_directory" udevdir=/dev install</userinput></screen>
61
62 <para os="h">Udev's configuration is far from ideal by default, so install
63 the configuration files here:</para>
64
65<screen os="i"><userinput>cp ../&udev-config-file; /etc/udev/rules.d/25-lfs.rules</userinput></screen>
66
67 <para os="a">Install the documentation that explains how to create
68 Udev rules:</para>
69
70<screen os="b"><userinput>install -m644 -D docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
71
72 <para os="j">Run the <command>udevstart</command> program to create our full
73 complement of device nodes.</para>
74
75<screen os="k"><userinput>/sbin/udevstart</userinput></screen>
76
77 </sect2>
78
79 <sect2 id="contents-udev" role="content">
80 <title>Contents of Udev</title>
81
82 <segmentedlist>
83 <segtitle>Installed programs</segtitle>
84 <segtitle>Installed directory</segtitle>
85
86 <seglistitem>
87 <seg>udev, udevcontrol, udevd, udevinfo, udevmonitor, udevsend,
88 udevstart and udevtest</seg>
89 <seg>/etc/udev</seg>
90 </seglistitem>
91 </segmentedlist>
92
93 <variablelist>
94 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
95 <?dbfo list-presentation="list"?>
96 <?dbhtml list-presentation="table"?>
97
98 <varlistentry id="udev">
99 <term><command>udev</command></term>
100 <listitem>
101 <para>Creates device nodes in <filename
102 class="directory">/dev</filename> or renames network interfaces (not
103 in LFS) in response to hotplug events</para>
104 <indexterm zone="ch-system-udev udev">
105 <primary sortas="b-udev">udev</primary>
106 </indexterm>
107 </listitem>
108 </varlistentry>
109
110 <varlistentry id="udevcontrol">
111 <term><command>udevcontrol</command></term>
112 <listitem>
113 <para>Configures a number of options for the running
114 <command>udevd</command> daemon, such as the log level.</para>
115 <indexterm zone="ch-system-udev udevcontrol">
116 <primary sortas="b-udevcontrol">udevcontrol</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry id="udevd">
122 <term><command>udevd</command></term>
123 <listitem>
124 <para>A daemon that reorders hotplug events before submitting them to
125 <command>udev</command>,
126 thus avoiding various race conditions</para>
127 <indexterm zone="ch-system-udev udevd">
128 <primary sortas="b-udevd">udevd</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="udevinfo">
134 <term><command>udevinfo</command></term>
135 <listitem>
136 <para>Allows users to query the <command>udev</command> database for
137 information on any device currently present on the system; it also
138 provides a way to query any device in the <systemitem
139 class="filesystem">sysfs</systemitem> tree to help create udev
140 rules</para>
141 <indexterm zone="ch-system-udev udevinfo">
142 <primary sortas="b-udevinfo">udevinfo</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="udevmonitor">
148 <term><command>udevmonitor</command></term>
149 <listitem>
150 <para>Prints the event received from the kernel and the event which
151 <command>udev</command> sends out after rule processing</para>
152 <indexterm zone="ch-system-udev udevmonitor">
153 <primary sortas="b-udevmonitor">udevmonitor</primary>
154 </indexterm>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry id="udevsend">
159 <term><command>udevsend</command></term>
160 <listitem>
161 <para>Delivers hotplug events to <command>udevd</command></para>
162 <indexterm zone="ch-system-udev udevsend">
163 <primary sortas="b-udevsend">udevsend</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 <varlistentry id="udevstart">
169 <term><command>udevstart</command></term>
170 <listitem>
171 <para>Creates device nodes in <filename class="directory">/dev</filename>
172 that correspond to drivers compiled directly into the kernel; it
173 performs that task by simulating hotplug events presumably dropped by
174 the kernel before invocation of this program (e.g., because the root
175 filesystem has not been mounted) and submitting such synthetic hotplug
176 events to <command>udev</command></para>
177 <indexterm zone="ch-system-udev udevstart">
178 <primary sortas="b-udevstart">udevstart</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="udevtest">
184 <term><command>udevtest</command></term>
185 <listitem>
186 <para>Simulates a <command>udev</command> run for the given device,
187 and prints out the name of the node the real <command>udev</command>
188 would have created or (not in LFS) the name of the renamed network
189 interface</para>
190 <indexterm zone="ch-system-udev udevtest">
191 <primary sortas="b-udevtest">udevtest</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="etc-udev">
197 <term><filename class="directory">/etc/udev</filename></term>
198 <listitem>
199 <para>Contains <command>udev</command> configuation files,
200 device permissions, and rules for device naming</para>
201 <indexterm zone="ch-system-udev etc-udev">
202 <primary sortas="e-/etc/udev">/etc/udev</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 </variablelist>
208
209 </sect2>
210
211</sect1>
Note: See TracBrowser for help on using the repository browser.