source: chapter06/udev.xml@ a766a93

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.1 6.1.1 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 a766a93 was a766a93, checked in by Matthew Burgess <matthew@…>, 20 years ago

Explained the udevdir parameter

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3937 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</sect2>
22
23<sect2 role="installation">
24<title>Installation of Udev</title>
25
26<para>First compile Udev:</para>
27
28<screen><userinput>make udevdir=/dev</userinput></screen>
29
30<variablelist>
31<varlistentry>
32<term><parameter>udevdir=/dev</parameter></term>
33<listitem><para>This tells <command>udev</command> which directory it is to
34create device nodes in.</para></listitem>
35</varlistentry>
36</variablelist>
37
38<para>Install it:</para>
39
40<screen><userinput>make udevdir=/dev install</userinput></screen>
41
42<para>Udev's configuration is far from ideal by default, so we install our own
43configuration files here:</para>
44
45<screen><userinput>cp ../udev-config-2.permissions /etc/udev/permissions.d/00-lfs.permissions
46cp ../udev-config-1.rules /etc/udev/rules.d/00-lfs.rules</userinput></screen>
47
48</sect2>
49
50
51<sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
52
53<segmentedlist>
54<segtitle>Installed programs</segtitle>
55<seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, udevtest</seg></seglistitem>
56</segmentedlist>
57
58<variablelist><title>Short descriptions</title>
59
60<varlistentry id="udev">
61<term><command>udev</command></term>
62<listitem><indexterm zone="ch-system-udev udev"><primary
63sortas="b-udev">udev</primary></indexterm>
64<para>is used to create device nodes in <filename
65class="directory">/dev</filename> or to rename network interfaces (not in LFS)
66in response to hotplug events.</para>
67</listitem></varlistentry>
68
69<varlistentry id="udevd">
70<term><command>udevd</command></term>
71<listitem> <indexterm zone="ch-system-udev udevd"><primary
72sortas="b-udevd">udevd</primary></indexterm>
73<para>is a daemon that reorders hotplug events before submitting them to
74<command>udev</command>,
75thus avoiding various race conditions.</para>
76</listitem></varlistentry>
77
78<varlistentry id="udevsend">
79<term><command>udevsend</command></term>
80<listitem> <indexterm zone="ch-system-udev udevsend"><primary
81sortas="b-udevsend">udevsend</primary></indexterm>
82<para>is used to deliver hotplug events to <command>udevd</command>.</para>
83</listitem></varlistentry>
84
85<varlistentry id="udevstart">
86<term><command>udevstart</command></term>
87<listitem> <indexterm zone="ch-system-udev udevstart"><primary
88sortas="b-udevstart">udevstart</primary></indexterm>
89<para>is used to create device nodes in <filename
90class="directory">/dev</filename> that correspond to drivers compiled directly
91into the kernel. It performs that task by simulating hotplug events presumably
92dropped by the kernel before invocation of this program (e.g. because the root
93filesystem has not been mounted) and submitting such synthetic hotplug events
94to <command>udev</command>.</para>
95</listitem>
96</varlistentry>
97
98<varlistentry id="udevinfo">
99<term><command>udevinfo</command></term>
100<listitem> <indexterm zone="ch-system-udev udevinfo"><primary
101sortas="b-udevinfo">udevinfo</primary></indexterm>
102<para>allows users to query the <command>udev</command> database for
103information on any device currently present on the system. It also
104provides a way to query any device in the sysfs tree to help creating udev
105rules.</para>
106</listitem></varlistentry>
107
108<varlistentry id="udevtest">
109<term><command>udevtest</command></term>
110<listitem> <indexterm zone="ch-system-udev udevtest"><primary
111sortas="b-udevtest">udevtest</primary></indexterm>
112<para>simulates a <command>udev</command> run for the given device,
113and prints out the name of the node the real <command>udev</command> would
114have created, or (not in LFS) the name of the renamed network interface.</para>
115</listitem></varlistentry>
116
117<varlistentry id="etc-dev-d">
118<term><filename class="directory">/etc/dev.d</filename></term>
119<listitem> <indexterm zone="ch-system-udev etc-dev-d"><primary
120sortas="e-etc-dev-d">/etc/dev.d</primary></indexterm>
121<para>directory is supposed to contain user-written handlers for device
122creation hotplug events.</para>
123</listitem></varlistentry>
124
125<varlistentry id="etc-udev">
126<term><filename class="directory">/etc/udev</filename></term>
127<listitem> <indexterm zone="ch-system-udev etc-udev"><primary
128sortas="e-etc-udev">/etc/udev</primary></indexterm>
129<para>directory contains <command>udev</command> configuation files,
130device permissions and rules for device naming.</para>
131</listitem></varlistentry>
132</variablelist>
133</sect2>
134
135</sect1>
Note: See TracBrowser for help on using the repository browser.