source: chapter06/udev.xml@ e43868f

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 e43868f was b2c8a77, checked in by Matthew Burgess <matthew@…>, 19 years ago

Don't move so many coreutils binaries to /bin

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

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