source: chapter06/udev.xml@ b48b8c5

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

Removed beginpage tags.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4688 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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