source: chapter06/udev.xml@ 90bfa70

Last change on this file since 90bfa70 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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

  • Property mode set to 100644
File size: 5.1 KB
RevLine 
[9dfc02f]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1fe35e1]2<!DOCTYPE section [
[9dfc02f]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[1fe35e1]6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-udev" role="wrap">
[6a0e6f3]8<title>Udev-&udev-version;</title>
[9dfc02f]9<?dbhtml filename="udev.html"?>
10
[a001133]11<indexterm zone="ch-system-udev"><primary sortas="a-Udev">Udev</primary></indexterm>
[9dfc02f]12
[6a0e6f3]13<section role="package"><title/>
[32324418]14<para>The Udev package contains programs for dynamic creation of device nodes.</para>
[9dfc02f]15
[a001133]16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.2 SBU</seg><seg>5.2 MB</seg></seglistitem>
20</segmentedlist>
[9dfc02f]21
[1fe35e1]22</section>
[a001133]23
[1fe35e1]24<section role="installation">
[6a0e6f3]25<title>Installation of Udev</title>
[9dfc02f]26
[bd7538b]27<para>Compile Udev:</para>
[9dfc02f]28
29<screen><userinput>make udevdir=/dev</userinput></screen>
30
[a766a93]31<variablelist>
32<varlistentry>
33<term><parameter>udevdir=/dev</parameter></term>
34<listitem><para>This tells <command>udev</command> which directory it is to
35create device nodes in.</para></listitem>
36</varlistentry>
37</variablelist>
38
[18da154]39<para>Install it:</para>
[9dfc02f]40
[4b31e82]41<screen><userinput>make udevdir=/dev install</userinput></screen>
[9dfc02f]42
[18da154]43<para>Udev's configuration is far from ideal by default, so we install our own
44configuration files here:</para>
45
[4148d1a]46<screen><userinput>cp ../udev-config-2.permissions /etc/udev/permissions.d/25-lfs.permissions
47cp ../udev-config-1.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen>
[18da154]48
[6135b95]49<para>Finally, we'll allow udev to create the full compliment of device
50nodes, since earlier we only created a minimal set.</para>
51
52<screen><userinput>/sbin/udevstart</userinput></screen>
53
[1fe35e1]54</section>
[9dfc02f]55
56
[6a0e6f3]57<section xml:id="contents-udev" role="content"><title>Contents of Udev</title>
[9dfc02f]58
[32324418]59<segmentedlist>
60<segtitle>Installed programs</segtitle>
61<seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, udevtest</seg></seglistitem>
62</segmentedlist>
63
64<variablelist><title>Short descriptions</title>
65
[1fe35e1]66<varlistentry xml:id="udev">
[32324418]67<term><command>udev</command></term>
68<listitem><indexterm zone="ch-system-udev udev"><primary
69sortas="b-udev">udev</primary></indexterm>
70<para>is used to create device nodes in <filename
71class="directory">/dev</filename> or to rename network interfaces (not in LFS)
72in response to hotplug events.</para>
73</listitem></varlistentry>
74
[1fe35e1]75<varlistentry xml:id="udevd">
[32324418]76<term><command>udevd</command></term>
77<listitem> <indexterm zone="ch-system-udev udevd"><primary
78sortas="b-udevd">udevd</primary></indexterm>
79<para>is a daemon that reorders hotplug events before submitting them to
80<command>udev</command>,
81thus avoiding various race conditions.</para>
82</listitem></varlistentry>
83
[1fe35e1]84<varlistentry xml:id="udevsend">
[32324418]85<term><command>udevsend</command></term>
86<listitem> <indexterm zone="ch-system-udev udevsend"><primary
87sortas="b-udevsend">udevsend</primary></indexterm>
88<para>is used to deliver hotplug events to <command>udevd</command>.</para>
89</listitem></varlistentry>
90
[1fe35e1]91<varlistentry xml:id="udevstart">
[32324418]92<term><command>udevstart</command></term>
93<listitem> <indexterm zone="ch-system-udev udevstart"><primary
94sortas="b-udevstart">udevstart</primary></indexterm>
95<para>is used to create device nodes in <filename
96class="directory">/dev</filename> that correspond to drivers compiled directly
97into the kernel. It performs that task by simulating hotplug events presumably
98dropped by the kernel before invocation of this program (e.g. because the root
99filesystem has not been mounted) and submitting such synthetic hotplug events
100to <command>udev</command>.</para>
101</listitem>
102</varlistentry>
103
[1fe35e1]104<varlistentry xml:id="udevinfo">
[32324418]105<term><command>udevinfo</command></term>
106<listitem> <indexterm zone="ch-system-udev udevinfo"><primary
107sortas="b-udevinfo">udevinfo</primary></indexterm>
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 sysfs tree to help creating udev
111rules.</para>
112</listitem></varlistentry>
113
[1fe35e1]114<varlistentry xml:id="udevtest">
[32324418]115<term><command>udevtest</command></term>
116<listitem> <indexterm zone="ch-system-udev udevtest"><primary
117sortas="b-udevtest">udevtest</primary></indexterm>
118<para>simulates a <command>udev</command> run for the given device,
119and prints out the name of the node the real <command>udev</command> would
120have created, or (not in LFS) the name of the renamed network interface.</para>
121</listitem></varlistentry>
122
[1fe35e1]123<varlistentry xml:id="etc-dev-d">
[32324418]124<term><filename class="directory">/etc/dev.d</filename></term>
125<listitem> <indexterm zone="ch-system-udev etc-dev-d"><primary
[811be305]126sortas="e-etc-dev-d">/etc/dev.d</primary></indexterm>
[32324418]127<para>directory is supposed to contain user-written handlers for device
128creation hotplug events.</para>
129</listitem></varlistentry>
130
[1fe35e1]131<varlistentry xml:id="etc-udev">
[32324418]132<term><filename class="directory">/etc/udev</filename></term>
133<listitem> <indexterm zone="ch-system-udev etc-udev"><primary
[811be305]134sortas="e-etc-udev">/etc/udev</primary></indexterm>
[e5f5241]135<para>directory contains <command>udev</command> configuration files,
[32324418]136device permissions and rules for device naming.</para>
137</listitem></varlistentry>
138</variablelist>
[1fe35e1]139</section>
[9dfc02f]140
[1fe35e1]141</section>
Note: See TracBrowser for help on using the repository browser.