source: chapter06/udev.xml@ be7082f

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 be7082f was 1846700, checked in by Matthew Burgess <matthew@…>, 19 years ago

Update the Udev rules file

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

  • Property mode set to 100644
File size: 5.8 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>3.8 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</userinput></screen>
36
37<para>To test the results, issue:
38<userinput>make test</userinput>.</para>
39
40<para>Install the package:</para>
41
42<screen><userinput>make install</userinput></screen>
43
44<para>Udev's configuration is far from ideal by default, so install
45the configuration files here:</para>
46
47<screen><userinput>cp -v ../udev-config-4.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen>
48
49<para>Install the documentation that explains how to create Udev rules:</para>
50
51<screen><userinput>install -m644 -D -v docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
52
53<!-- Edit Me -->
54<para>Run the <command>udevstart</command> program to create our full
55complement of device nodes.</para>
56
57<screen><userinput>/sbin/udevstart</userinput></screen>
58
59</sect2>
60
61<sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
62
63<segmentedlist>
64<segtitle>Installed programs</segtitle>
65<segtitle>Installed directory</segtitle>
66<seglistitem><seg>udev, udevcontrol, udevd, udevinfo, udevmonitor, udevsend, udevstart and udevtest</seg>
67<seg>/etc/udev</seg></seglistitem>
68</segmentedlist>
69
70<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
71<?dbfo list-presentation="list"?>
72<?dbhtml list-presentation="table"?>
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="udevcontrol">
84<term><command>udevcontrol</command></term>
85<listitem>
86<para>Configures a number of options for the running <command>udevd</command>
87daemon, such as the log level.</para>
88<indexterm zone="ch-system-udev udevcontrol"><primary sortas="b-udevcontrol">udevcontrol</primary>
89</indexterm>
90</listitem></varlistentry>
91
92<varlistentry id="udevd">
93<term><command>udevd</command></term>
94<listitem>
95<para>A daemon that reorders hotplug events before submitting them to
96<command>udev</command>,
97thus avoiding various race conditions</para>
98<indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
99</listitem></varlistentry>
100
101<varlistentry id="udevinfo">
102<term><command>udevinfo</command></term>
103<listitem>
104<para>Allows users to query the <command>udev</command> database for
105information on any device currently present on the system; it also
106provides a way to query any device in the <systemitem
107class="filesystem">sysfs</systemitem> tree to help create udev
108rules</para>
109<indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
110</listitem></varlistentry>
111
112<varlistentry id="udevmonitor">
113<term><command>udevmonitor</command></term>
114<listitem>
115<para>Prints the event received from the kernel and the event which
116<command>udev</command> sends out after rule processing</para>
117<indexterm zone="ch-system-udev udevmonitor"><primary sortas="b-udevmonitor">udevmonitor</primary>
118</indexterm>
119</listitem></varlistentry>
120
121<varlistentry id="udevsend">
122<term><command>udevsend</command></term>
123<listitem>
124<para>Delivers hotplug events to <command>udevd</command></para>
125<indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
126</listitem></varlistentry>
127
128<varlistentry id="udevstart">
129<term><command>udevstart</command></term>
130<listitem>
131<para>Creates device nodes in <filename
132class="directory">/dev</filename> that correspond to drivers compiled directly
133into the kernel; it performs that task by simulating hotplug events presumably
134dropped by the kernel before invocation of this program (e.g., because the root
135filesystem has not been mounted) and submitting such synthetic hotplug events
136to <command>udev</command></para>
137<indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
138</listitem>
139</varlistentry>
140
141<varlistentry id="udevtest">
142<term><command>udevtest</command></term>
143<listitem>
144<para>Simulates a <command>udev</command> run for the given device,
145and prints out the name of the node the real <command>udev</command> would
146have created or (not in LFS) the name of the renamed network interface</para>
147<indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
148</listitem></varlistentry>
149
150<varlistentry id="etc-udev">
151<term><filename class="directory">/etc/udev</filename></term>
152<listitem>
153<para>Contains <command>udev</command> configuation files,
154device permissions, and rules for device naming</para>
155<indexterm zone="ch-system-udev etc-udev"><primary sortas="e-/etc/udev">/etc/udev</primary></indexterm>
156</listitem></varlistentry>
157</variablelist>
158</sect2>
159
160</sect1>
161
Note: See TracBrowser for help on using the repository browser.