source: chapter06/udev.xml@ 6c511d85

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 12.2 12.2-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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 6c511d85 was 6c511d85, checked in by Matthew Burgess <matthew@…>, 19 years ago

Upgrade to Udev-068

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

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