source: chapter06/udev.xml@ 1609da8

Last change on this file since 1609da8 was 1609da8, checked in by Matthew Burgess <matthew@…>, 20 years ago

Upgraded to DocBook 4.4 DTD

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4604 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"?>
[1609da8]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[9dfc02f]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[a001133]6<sect1 id="ch-system-udev" role="wrap">
[9dfc02f]7<title>Udev-&udev-version;</title>
8<?dbhtml filename="udev.html"?>
9
[a001133]10<indexterm zone="ch-system-udev"><primary sortas="a-Udev">Udev</primary></indexterm>
[9dfc02f]11
[a001133]12<sect2 role="package"><title/>
[32324418]13<para>The Udev package contains programs for dynamic creation of device nodes.</para>
[9dfc02f]14
[a001133]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>
[9dfc02f]20
[ef13657]21<segmentedlist>
22<segtitle>Udev installation depends on</segtitle>
[69993f4]23<seglistitem><seg>Coreutils and Make</seg></seglistitem>
[ef13657]24</segmentedlist>
25
[a001133]26</sect2>
27
28<sect2 role="installation">
[9dfc02f]29<title>Installation of Udev</title>
30
[2256873]31<para>Compile the package:</para>
[9dfc02f]32
33<screen><userinput>make udevdir=/dev</userinput></screen>
34
[15afe874]35<variablelist>
36<varlistentry>
37<term><parameter>udevdir=/dev</parameter></term>
[ef13657]38<listitem><para>This tells <command>udev</command> in which directory
39devices nodes are to be created.</para></listitem>
[15afe874]40</varlistentry>
41</variablelist>
42
[0cb7f8b]43<para>This package does not come with a test suite.</para>
44
[ef13657]45<para>Install the package:</para>
[9dfc02f]46
47<screen><userinput>make udevdir=/dev install</userinput></screen>
48
[69993f4]49<para>Udev's configuration is far from ideal by default, so install
50the configuration files here:</para>
[18da154]51
[00cc7ce]52<screen><userinput>cp ../udev-config-2.permissions \
53 /etc/udev/permissions.d/25-lfs.permissions
[3d17ed6]54cp ../udev-config-1.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen>
[18da154]55
[c9214d5]56<!-- Edit Me -->
57<para>Run the <command>udevstart</command> program to create our full
58compliment of device nodes.</para>
59
60<screen><userinput>/sbin/udevstart</userinput></screen>
61
[9dfc02f]62</sect2>
63
[c6cb3aa]64<sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
[9dfc02f]65
[32324418]66<segmentedlist>
67<segtitle>Installed programs</segtitle>
[2256873]68<segtitle>Installed directory</segtitle>
69<seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, and udevtest</seg>
70<seg>/etc/udev</seg></seglistitem>
[32324418]71</segmentedlist>
72
[2256873]73<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
[3ed279f]74<?dbfo list-presentation="list"?>
[32324418]75
76<varlistentry id="udev">
77<term><command>udev</command></term>
[3ed279f]78<listitem>
[853917c]79<para>Creates device nodes in <filename
[69993f4]80class="directory">/dev</filename> or renames network interfaces (not
[2256873]81in LFS) in response to hotplug events</para>
[3ed279f]82<indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
[8eeb6bc]83<beginpage/></listitem></varlistentry>
[32324418]84
85<varlistentry id="udevd">
86<term><command>udevd</command></term>
[3ed279f]87<listitem>
[853917c]88<para>A daemon that reorders hotplug events before submitting them to
[32324418]89<command>udev</command>,
[2256873]90thus avoiding various race conditions</para>
[3ed279f]91<indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
[32324418]92</listitem></varlistentry>
93
94<varlistentry id="udevsend">
95<term><command>udevsend</command></term>
[3ed279f]96<listitem>
[853917c]97<para>Delivers hotplug events to <command>udevd</command></para>
[3ed279f]98<indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
[32324418]99</listitem></varlistentry>
100
101<varlistentry id="udevstart">
102<term><command>udevstart</command></term>
[3ed279f]103<listitem>
[853917c]104<para>Creates device nodes in <filename
[32324418]105class="directory">/dev</filename> that correspond to drivers compiled directly
[2256873]106into the kernel; it performs that task by simulating hotplug events presumably
[69993f4]107dropped by the kernel before invocation of this program (e.g., because the root
[32324418]108filesystem has not been mounted) and submitting such synthetic hotplug events
[2256873]109to <command>udev</command></para>
[3ed279f]110<indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
[32324418]111</listitem>
112</varlistentry>
113
114<varlistentry id="udevinfo">
115<term><command>udevinfo</command></term>
[3ed279f]116<listitem>
[853917c]117<para>Allows users to query the <command>udev</command> database for
[2256873]118information on any device currently present on the system; it also
[ef13657]119provides a way to query any device in the <systemitem
[69993f4]120class="filesystem">sysfs</systemitem> tree to help create udev
[2256873]121rules</para>
[3ed279f]122<indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
[32324418]123</listitem></varlistentry>
124
125<varlistentry id="udevtest">
126<term><command>udevtest</command></term>
[3ed279f]127<listitem>
[853917c]128<para>Simulates a <command>udev</command> run for the given device,
[32324418]129and prints out the name of the node the real <command>udev</command> would
[2256873]130have created or (not in LFS) the name of the renamed network interface</para>
[3ed279f]131<indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
[32324418]132</listitem></varlistentry>
133
134<varlistentry id="etc-udev">
135<term><filename class="directory">/etc/udev</filename></term>
[3ed279f]136<listitem>
[853917c]137<para>Contains <command>udev</command> configuation files,
[2256873]138device permissions, and rules for device naming</para>
[3ed279f]139<indexterm zone="ch-system-udev etc-udev"><primary sortas="e-etc-udev">/etc/udev</primary></indexterm>
[32324418]140</listitem></varlistentry>
141</variablelist>
142</sect2>
[9dfc02f]143
144</sect1>
[ef13657]145
Note: See TracBrowser for help on using the repository browser.