source: chapter06/udev.xml@ 37e62c3

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.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 37e62c3 was eb6d9eb, checked in by Archaic <archaic@…>, 19 years ago

Updated all chapter 6 build sizes (and chapter7 bootscripts).

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

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