source: chapter06/udev.xml@ 307348a

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.1 6.1.1 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 307348a was a52dc7e, checked in by Matthew Burgess <matthew@…>, 19 years ago
  • Upgrade to udev-054

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

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