source: chapter06/udev.xml@ 47860dc

6.0
Last change on this file since 47860dc was 47860dc, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Misc edits

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/6.0/BOOK@4272 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.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/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.permissions \
53 /etc/udev/permissions.d/25-lfs.permissions
54cp ../udev-config-1.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen>
55
56</sect2>
57
58<sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
59
60<segmentedlist>
61<segtitle>Installed programs</segtitle>
62<segtitle>Installed directory</segtitle>
63<seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, and udevtest</seg>
64<seg>/etc/udev</seg></seglistitem>
65</segmentedlist>
66
67<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
68<?dbfo list-presentation="list"?>
69
70<varlistentry id="udev">
71<term><command>udev</command></term>
72<listitem>
73<para>Creates device nodes in <filename
74class="directory">/dev</filename> or renames network interfaces (not
75in LFS) in response to hotplug events</para>
76<indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
77<beginpage/></listitem></varlistentry>
78
79<varlistentry id="udevd">
80<term><command>udevd</command></term>
81<listitem>
82<para>A daemon that reorders hotplug events before submitting them to
83<command>udev</command>,
84thus avoiding various race conditions</para>
85<indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
86</listitem></varlistentry>
87
88<varlistentry id="udevsend">
89<term><command>udevsend</command></term>
90<listitem>
91<para>Delivers hotplug events to <command>udevd</command></para>
92<indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
93</listitem></varlistentry>
94
95<varlistentry id="udevstart">
96<term><command>udevstart</command></term>
97<listitem>
98<para>Creates device nodes in <filename
99class="directory">/dev</filename> that correspond to drivers compiled directly
100into the kernel; it performs that task by simulating hotplug events presumably
101dropped by the kernel before invocation of this program (e.g., because the root
102filesystem has not been mounted) and submitting such synthetic hotplug events
103to <command>udev</command></para>
104<indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
105</listitem>
106</varlistentry>
107
108<varlistentry id="udevinfo">
109<term><command>udevinfo</command></term>
110<listitem>
111<para>Allows users to query the <command>udev</command> database for
112information on any device currently present on the system; it also
113provides a way to query any device in the <systemitem
114class="filesystem">sysfs</systemitem> tree to help create udev
115rules</para>
116<indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
117</listitem></varlistentry>
118
119<varlistentry id="udevtest">
120<term><command>udevtest</command></term>
121<listitem>
122<para>Simulates a <command>udev</command> run for the given device,
123and prints out the name of the node the real <command>udev</command> would
124have created or (not in LFS) the name of the renamed network interface</para>
125<indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
126</listitem></varlistentry>
127
128<varlistentry id="etc-udev">
129<term><filename class="directory">/etc/udev</filename></term>
130<listitem>
131<para>Contains <command>udev</command> configuation files,
132device permissions, and rules for device naming</para>
133<indexterm zone="ch-system-udev etc-udev"><primary sortas="e-etc-udev">/etc/udev</primary></indexterm>
134</listitem></varlistentry>
135</variablelist>
136</sect2>
137
138</sect1>
139
Note: See TracBrowser for help on using the repository browser.