source: chapter06/eudev.xml@ cfebf189

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 cfebf189 was 54dfb280, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to eudev-3.1

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