source: chapter06/eudev.xml@ 41727289

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 41727289 was 99dd957, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Prevent /tools from being hard coded into eudev binaries.
Update to man-pages-3.8.3.
Suppress duplicate installation of attr man pages.

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

  • Property mode set to 100644
File size: 8.2 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>Next, add a workaround to prevent the /tools directory from being
48 hard coded into Eudev binary files library locations:</para>
49
50<screen><userinput remap="pre">cat &gt; config.cache &lt;&lt; "EOF"
51HAVE_BLKID=1
52BLKID_LIBS="-lblkid"
53BLKID_CFLAGS="-I/tools/include"
54EOF</userinput></screen>
55
56<para>Prepare Eudev for compilation:</para>
57
58<screen><userinput remap="configure">./configure --prefix=/usr \
59 --bindir=/sbin \
60 --sbindir=/sbin \
61 --libdir=/usr/lib \
62 --sysconfdir=/etc \
63 --libexecdir=/lib \
64 --with-rootprefix= \
65 --with-rootlibdir=/lib \
66 --enable-split-usr \
67 --disable-introspection \
68 --disable-gudev \
69 --disable-static \
70 --config-cache \
71 --disable-gtk-doc-html</userinput></screen>
72
73<para>Compile the package:</para>
74
75<screen><userinput remap="make">LIBRARY_PATH=/tools/lib make</userinput></screen>
76
77<para>Create some directories now that are needed for tests, but
78will also be used as a part of installation:</para>
79
80<screen><userinput remap="test">mkdir -pv /lib/udev/rules.d
81mkdir -pv /etc/udev/rules.d</userinput></screen>
82
83<para>To test the results, issue:</para>
84
85<screen><userinput remap="test">make LD_LIBRARY_PATH=/tools/lib check</userinput></screen>
86
87 <para>Install the package:</para>
88
89<screen><userinput remap="install">make LD_LIBRARY_PATH=/tools/lib install</userinput></screen>
90
91 <para>Now, install the man pages:</para>
92
93<screen><userinput remap="install">pushd man
94make install-man7 install-man8
95popd</userinput></screen>
96
97 <para>Install some custom rules and support files useful in an LFS
98 environment:</para>
99
100<screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.bz2
101make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
102
103 </sect2>
104
105 <sect2 id="conf-eudev" role="configuration">
106 <title>Configuring Eudev</title>
107
108 <indexterm zone="conf-eudev">
109 <primary sortas="a-Eudev">Eudev</primary>
110 <secondary>configuring</secondary>
111 </indexterm>
112
113 <indexterm zone="conf-eudev">
114 <primary sortas="e-/etc/udev/hwdb.bin">/etc/udev/hwdb.bin</primary>
115 </indexterm>
116
117 <para>Information about hardware devices is maintained in the
118 <filename class="directory">/etc/udev/hwdb.d</filename> and
119 <filename class="directory">/usr/lib/udev/hwdb.d</filename> directories.
120 <application>Eudev</application> needs that information to be compiled
121 into a binary database <filename>/etc/udev/hwdb.bin</filename>. Create the
122 initial database:</para>
123
124<screen><userinput>LD_LIBRARY_PATH=/tools/lib udevadm hwdb --update</userinput></screen>
125
126 <para>This command needs to be run each time the hardware information is
127 updated.</para>
128
129 </sect2>
130
131 <sect2 id="contents-eudev" role="content">
132 <title>Contents of Eudev</title>
133
134 <segmentedlist>
135 <segtitle>Installed programs</segtitle>
136 <segtitle>Installed libraries</segtitle>
137 <segtitle>Installed directories</segtitle>
138
139 <seglistitem>
140 <seg><!-- These are in /lib/udev and not to be called by the user:
141 accelerometer, ata_id, cdrom_id, collect, mtd_probe,
142 scsi_id, v4l_id,--> udevadm and udevd</seg>
143
144 <seg>libudev.so</seg>
145
146 <seg>/etc/udev, /lib/udev, and /lib/firmware</seg>
147 </seglistitem>
148 </segmentedlist>
149
150 <variablelist>
151 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
152 <?dbfo list-presentation="list"?>
153 <?dbhtml list-presentation="table"?>
154<!--
155 <varlistentry id="ata_id">
156 <term><command>ata_id</command></term>
157 <listitem>
158 <para>Provides Udev with a unique string and
159 additional information (uuid, label) for an ATA drive</para>
160 <indexterm zone="ch-system-eudev ata_id">
161 <primary sortas="b-ata_id">ata_id</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="cdrom_id">
167 <term><command>cdrom_id</command></term>
168 <listitem>
169 <para>Provides Udev with the capabilities of a
170 CD-ROM or DVD-ROM drive</para>
171 <indexterm zone="ch-system-eudev cdrom_id">
172 <primary sortas="b-cdrom_id">cdrom_id</primary>
173 </indexterm>
174 </listitem>
175 </varlistentry>
176
177 <varlistentry id="collect">
178 <term><command>collect</command></term>
179 <listitem>
180 <para>Given an ID for the current uevent and a list of
181 IDs (for all target uevents), registers the current ID
182 and indicates whether all target IDs have been registered</para>
183 <indexterm zone="ch-system-eudev collect">
184 <primary sortas="b-collect">collect</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="scsi_id">
190 <term><command>scsi_id</command></term>
191 <listitem>
192 <para>Provides Udev with a unique SCSI identifier
193 based on the data returned from sending a SCSI INQUIRY command to
194 the specified device</para>
195 <indexterm zone="ch-system-eudev scsi_id">
196 <primary sortas="b-scsi_id">scsi_id</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200-->
201 <varlistentry id="udevadm">
202 <term><command>udevadm</command></term>
203 <listitem>
204 <para>Generic udev administration tool: controls the udevd daemon,
205 provides info from the Udev database, monitors uevents, waits for
206 uevents to finish, tests Udev configuration, and triggers uevents
207 for a given device</para>
208 <indexterm zone="ch-system-eudev udevadm">
209 <primary sortas="b-udevadm">udevadm</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry id="udevd">
215 <term><command>udevd</command></term>
216 <listitem>
217 <para>A daemon that listens for uevents on the netlink socket,
218 creates devices and runs the configured external programs in
219 response to these uevents</para>
220 <indexterm zone="ch-system-eudev udevd">
221 <primary sortas="b-udevd">udevd</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="libudev">
227 <term><filename class="libraryfile">libudev</filename></term>
228 <listitem>
229 <para>A library interface to udev device information</para>
230 <indexterm zone="ch-system-eudev libudev">
231 <primary sortas="c-libudev">libudev</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="etc-udev">
237 <term><filename class="directory">/etc/udev</filename></term>
238 <listitem>
239 <para>Contains Udev configuration files,
240 device permissions, and rules for device naming</para>
241 <indexterm zone="ch-system-eudev etc-udev">
242 <primary sortas="e-/etc/udev">/etc/udev</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 </variablelist>
248
249 </sect2>
250
251</sect1>
Note: See TracBrowser for help on using the repository browser.