source: chapter06/udev.xml@ 41ddb3b

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 41ddb3b was fa21b3d, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Initial support of UTF-8. Thanks Alexander Patrakov.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7245 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<!-- Not for the LiveCD -->
82<!-- Edit Me -->
83<para>Run the <command>udevstart</command> program to create our full
84complement of device nodes.</para>
85
86<screen><userinput>/sbin/udevstart</userinput></screen>
87
88</sect2>
89
90<sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
91
92<segmentedlist>
93<segtitle>Installed programs</segtitle>
94<segtitle>Installed directory</segtitle>
95<seglistitem><seg>udev, udev_run_devd, udev_run_hotplugd, udevcontrol, udevd,
96udevinfo, udevmonitor, udevsend, udevstart, and udevtest</seg>
97<seg>/etc/udev</seg></seglistitem>
98</segmentedlist>
99
100<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
101<?dbfo list-presentation="list"?>
102<?dbhtml list-presentation="table"?>
103
104<varlistentry id="udev">
105<term><command>udev</command></term>
106<listitem>
107<para>Creates device nodes in <filename
108class="directory">/dev</filename> or renames network interfaces (not
109in LFS) in response to hotplug events</para>
110<indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
111</listitem></varlistentry>
112
113<varlistentry id="udev_run_devd">
114 <term><command>udev_run_devd</command></term>
115 <listitem>
116 <para>Executes programs and scripts in the
117 <filename class="directory">/etc/dev.d/</filename> directory in response
118 to hotplug events
119 </para>
120 <indexterm zone="ch-system-udev udev_run_devd">
121 <primary sortas="b-udev_run_devd">udev_run_devd</primary>
122 </indexterm>
123 </listitem>
124</varlistentry>
125
126<varlistentry id="udev_run_hotplugd">
127 <term><command>udev_run_hotplugd</command></term>
128 <listitem>
129 <para>Executes programs and scripts in the
130 <filename class="directory">/etc/hotplug.d/</filename> directory in
131 response to hotplug events
132 </para>
133 <indexterm zone="ch-system-udev udev_run_hotplugd">
134 <primary sortas="b-udev_run_hotplugd">udev_run_hotplugd</primary>
135 </indexterm>
136 </listitem>
137</varlistentry>
138
139<varlistentry id="udevcontrol">
140<term><command>udevcontrol</command></term>
141<listitem>
142<para>Configures a number of options for the running <command>udevd</command>
143daemon, such as the log level.</para>
144<indexterm zone="ch-system-udev udevcontrol"><primary sortas="b-udevcontrol">udevcontrol</primary>
145</indexterm>
146</listitem></varlistentry>
147
148<varlistentry id="udevd">
149<term><command>udevd</command></term>
150<listitem>
151<para>A daemon that reorders hotplug events before submitting them to
152<command>udev</command>,
153thus avoiding various race conditions</para>
154<indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
155</listitem></varlistentry>
156
157<varlistentry id="udevinfo">
158<term><command>udevinfo</command></term>
159<listitem>
160<para>Allows users to query the <command>udev</command> database for
161information on any device currently present on the system; it also
162provides a way to query any device in the <systemitem
163class="filesystem">sysfs</systemitem> tree to help create udev
164rules</para>
165<indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
166</listitem></varlistentry>
167
168<varlistentry id="udevmonitor">
169<term><command>udevmonitor</command></term>
170<listitem>
171<para>Prints the event received from the kernel and the event which
172<command>udev</command> sends out after rule processing</para>
173<indexterm zone="ch-system-udev udevmonitor"><primary sortas="b-udevmonitor">udevmonitor</primary>
174</indexterm>
175</listitem></varlistentry>
176
177<varlistentry id="udevsend">
178<term><command>udevsend</command></term>
179<listitem>
180<para>Delivers hotplug events to <command>udevd</command></para>
181<indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
182</listitem></varlistentry>
183
184<varlistentry id="udevstart">
185<term><command>udevstart</command></term>
186<listitem>
187<para>Creates device nodes in <filename
188class="directory">/dev</filename> that correspond to drivers compiled directly
189into the kernel; it performs that task by simulating hotplug events presumably
190dropped by the kernel before invocation of this program (e.g., because the root
191filesystem has not been mounted) and submitting such synthetic hotplug events
192to <command>udev</command></para>
193<indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
194</listitem>
195</varlistentry>
196
197<varlistentry id="udevtest">
198<term><command>udevtest</command></term>
199<listitem>
200<para>Simulates a <command>udev</command> run for the given device,
201and prints out the name of the node the real <command>udev</command> would
202have created or (not in LFS) the name of the renamed network interface</para>
203<indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
204</listitem></varlistentry>
205
206<varlistentry id="etc-udev">
207<term><filename class="directory">/etc/udev</filename></term>
208<listitem>
209<para>Contains <command>udev</command> configuation files,
210device permissions, and rules for device naming</para>
211<indexterm zone="ch-system-udev etc-udev"><primary sortas="e-/etc/udev">/etc/udev</primary></indexterm>
212</listitem></varlistentry>
213</variablelist>
214</sect2>
215
216</sect1>
217
Note: See TracBrowser for help on using the repository browser.