source: chapter06/eudev.xml@ 73b2841

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 7.8 7.9 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 73b2841 was 73b2841, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Remove non-essential static libraries from the installation. Added a new
section in Chapter 6 Introduction, supressed many static libraries in different
packages, and removed the remaining in the Cleaning Up section.

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

  • Property mode set to 100644
File size: 8.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-eudev" role="wrap">
9 <?dbhtml filename="eudev.html"?>
10
11 <sect1info condition="script">
12 <productname>eudev</productname>
13 <productnumber>&eudev-version;</productnumber>
14 <address>&eudev-url;</address>
15 </sect1info>
16
17 <title>Eudev-&eudev-version;</title>
18
19 <indexterm zone="ch-system-eudev">
20 <primary sortas="a-Eudev">Eudev</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Eudev package contains programs for dynamic creation of device
27 nodes.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&eudev-ch6-sbu;</seg>
35 <seg>&eudev-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Eudev</title>
42
43 <para>First, fix a test script:</para>
44
45<screen><userinput remap="pre">sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen>
46
47<para>Prepare Eudev for compilation:</para>
48
49<screen><userinput remap="configure">BLKID_CFLAGS=-I/tools/include \
50BLKID_LIBS='-L/tools/lib -lblkid' \
51./configure --prefix=/usr \
52 --bindir=/sbin \
53 --sbindir=/sbin \
54 --libdir=/usr/lib \
55 --sysconfdir=/etc \
56 --libexecdir=/lib \
57 --with-rootprefix= \
58 --with-rootlibdir=/lib \
59 --enable-split-usr \
60 --enable-libkmod \
61 --enable-rule_generator \
62 --enable-keymap \
63 --disable-introspection \
64 --disable-gudev \
65 --disable-static \
66 --disable-gtk-doc-html</userinput></screen>
67
68<para>Compile the package:</para>
69
70<screen><userinput remap="make">make</userinput></screen>
71
72<para>Create some directories now that are needed for tests, but
73will also be used as a part of installation:</para>
74
75<screen><userinput remap="test">mkdir -pv /lib/udev/rules.d
76mkdir -pv /etc/udev/rules.d</userinput></screen>
77
78<para>To test the results, issue:</para>
79
80<screen><userinput remap="test">make check</userinput></screen>
81
82 <para>Install the package:</para>
83
84<screen><userinput remap="install">make install</userinput></screen>
85
86 <para>Now, install the man pages:</para>
87
88<screen><userinput remap="install">tar -xvf ../eudev-&eudev-version;-manpages.tar.bz2 -C /usr/share</userinput></screen>
89
90 <para>Finally, install some custom rules and support files useful in an LFS
91 environment:</para>
92
93<screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.bz2
94make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
95
96 </sect2>
97
98 <sect2 id="conf-eudev" role="configuration">
99 <title>Configuring Eudev</title>
100
101 <indexterm zone="conf-eudev">
102 <primary sortas="a-Eudev">Eudev</primary>
103 <secondary>configuring</secondary>
104 </indexterm>
105
106 <indexterm zone="conf-eudev">
107 <primary sortas="e-/etc/udev/hwdb.bin">/etc/udev/hwdb.bin</primary>
108 </indexterm>
109
110 <para>Information about hardware devices is maintained in the
111 <filename class="directory">/etc/udev/hwdb.d</filename> and
112 <filename class="directory">/usr/lib/udev/hwdb.d</filename> directories.
113 <application>Eudev</application> needs that information to be compiled
114 into a binary database <filename>/etc/udev/hwdb.bin</filename>. Create the
115 initial database:</para>
116
117<screen><userinput>udevadm hwdb --update</userinput></screen>
118
119 <para>This command needs to be run each time the hardware information is
120 updated.</para>
121
122 </sect2>
123
124 <sect2 id="contents-eudev" role="content">
125 <title>Contents of Eudev</title>
126
127 <segmentedlist>
128 <segtitle>Installed programs</segtitle>
129 <segtitle>Installed libraries</segtitle>
130 <segtitle>Installed directories</segtitle>
131
132 <seglistitem>
133 <seg><!-- These are in /lib/udev and not to be called by the user:
134 accelerometer, ata_id, cdrom_id, collect, mtd_probe,
135 scsi_id, v4l_id,--> udevadm and udevd</seg>
136
137 <seg>libudev.so</seg>
138
139 <seg>/etc/udev, /lib/udev, and /lib/firmware</seg>
140 </seglistitem>
141 </segmentedlist>
142
143 <variablelist>
144 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
145 <?dbfo list-presentation="list"?>
146 <?dbhtml list-presentation="table"?>
147<!--
148 <varlistentry id="ata_id">
149 <term><command>ata_id</command></term>
150 <listitem>
151 <para>Provides Udev with a unique string and
152 additional information (uuid, label) for an ATA drive</para>
153 <indexterm zone="ch-system-eudev ata_id">
154 <primary sortas="b-ata_id">ata_id</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry id="cdrom_id">
160 <term><command>cdrom_id</command></term>
161 <listitem>
162 <para>Provides Udev with the capabilities of a
163 CD-ROM or DVD-ROM drive</para>
164 <indexterm zone="ch-system-eudev cdrom_id">
165 <primary sortas="b-cdrom_id">cdrom_id</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="collect">
171 <term><command>collect</command></term>
172 <listitem>
173 <para>Given an ID for the current uevent and a list of
174 IDs (for all target uevents), registers the current ID
175 and indicates whether all target IDs have been registered</para>
176 <indexterm zone="ch-system-eudev collect">
177 <primary sortas="b-collect">collect</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 <varlistentry id="scsi_id">
183 <term><command>scsi_id</command></term>
184 <listitem>
185 <para>Provides Udev with a unique SCSI identifier
186 based on the data returned from sending a SCSI INQUIRY command to
187 the specified device</para>
188 <indexterm zone="ch-system-eudev scsi_id">
189 <primary sortas="b-scsi_id">scsi_id</primary>
190 </indexterm>
191 </listitem>
192 </varlistentry>
193-->
194 <varlistentry id="udevadm">
195 <term><command>udevadm</command></term>
196 <listitem>
197 <para>Generic udev administration tool: controls the udevd daemon,
198 provides info from the Udev database, monitors uevents, waits for
199 uevents to finish, tests Udev configuration, and triggers uevents
200 for a given device</para>
201 <indexterm zone="ch-system-eudev udevadm">
202 <primary sortas="b-udevadm">udevadm</primary>
203 </indexterm>
204 </listitem>
205 </varlistentry>
206
207 <varlistentry id="udevd">
208 <term><command>udevd</command></term>
209 <listitem>
210 <para>A daemon that listens for uevents on the netlink socket,
211 creates devices and runs the configured external programs in
212 response to these uevents</para>
213 <indexterm zone="ch-system-eudev udevd">
214 <primary sortas="b-udevd">udevd</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="libudev">
220 <term><filename class="libraryfile">libudev</filename></term>
221 <listitem>
222 <para>A library interface to udev device information</para>
223 <indexterm zone="ch-system-eudev libudev">
224 <primary sortas="c-libudev">libudev</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="etc-udev">
230 <term><filename class="directory">/etc/udev</filename></term>
231 <listitem>
232 <para>Contains Udev configuration files,
233 device permissions, and rules for device naming</para>
234 <indexterm zone="ch-system-eudev etc-udev">
235 <primary sortas="e-/etc/udev">/etc/udev</primary>
236 </indexterm>
237 </listitem>
238 </varlistentry>
239
240 </variablelist>
241
242 </sect2>
243
244</sect1>
Note: See TracBrowser for help on using the repository browser.