source: chapter06/udev.xml@ 48553c1

Last change on this file since 48553c1 was ca17032, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Including patches.ent from general.ent

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7137 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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