source: chapter06/eudev.xml@ de6905d

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 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 de6905d was de6905d, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Update to util-linux 2.32.1.
Update to binutils-2.31.1.
Update to meson-0.47.1.
Update to linux-4.17.8.
Update to e2fsprogs-1.44.3.
Document some new regression test failures.

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

  • Property mode set to 100644
File size: 6.9 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" revision="sysv">
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<!--
48 <para>Next, remove an unneeded line that causes a build failure:</para>
49
50<screen><userinput remap="pre">sed -i '/keyboard_lookup_key/d' src/udev/udev-builtin-keyboard.c</userinput></screen>
51-->
52 <para>Next, add a workaround to prevent the /tools directory from being
53 hard coded into Eudev binary files library locations:</para>
54
55<screen><userinput remap="pre">cat &gt; config.cache &lt;&lt; "EOF"
56HAVE_BLKID=1
57BLKID_LIBS="-lblkid"
58BLKID_CFLAGS="-I/tools/include"
59EOF</userinput></screen>
60
61<para>Prepare Eudev for compilation:</para>
62
63<screen><userinput remap="configure">./configure --prefix=/usr \
64 --bindir=/sbin \
65 --sbindir=/sbin \
66 --libdir=/usr/lib \
67 --sysconfdir=/etc \
68 --libexecdir=/lib \
69 --with-rootprefix= \
70 --with-rootlibdir=/lib \
71 --enable-manpages \
72 --disable-static \
73 --config-cache</userinput></screen>
74
75<para>Compile the package:</para>
76
77<screen><userinput remap="make">LIBRARY_PATH=/tools/lib make</userinput></screen>
78
79<note><para>The LIBRARY_PATH variable here and the LD_LIBRARY_PATH variable
80below are needed to allow the use of libraries that were installed in /tools,
81but have not yet been installed in the main system. LIBRARY_PATH is
82used to find libraries during the linking process. LD_LIBRARY_PATH is
83used to find libraries during program execution.</para></note>
84
85<para>Create some directories now that are needed for tests, but
86will also be used as a part of installation:</para>
87
88<screen><userinput remap="test">mkdir -pv /lib/udev/rules.d
89mkdir -pv /etc/udev/rules.d</userinput></screen>
90
91<para>To test the results, issue:</para>
92
93<screen><userinput remap="test">make LD_LIBRARY_PATH=/tools/lib check</userinput></screen>
94
95 <para>Install the package:</para>
96
97<screen><userinput remap="install">make LD_LIBRARY_PATH=/tools/lib install</userinput></screen>
98
99 <para>Install some custom rules and support files useful in an LFS
100 environment:</para>
101
102<screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.bz2
103make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
104
105 </sect2>
106
107 <sect2 id="conf-eudev" role="configuration">
108 <title>Configuring Eudev</title>
109
110 <indexterm zone="conf-eudev">
111 <primary sortas="a-Eudev">Eudev</primary>
112 <secondary>configuring</secondary>
113 </indexterm>
114
115 <indexterm zone="conf-eudev">
116 <primary sortas="e-/etc/udev/hwdb.bin">/etc/udev/hwdb.bin</primary>
117 </indexterm>
118
119 <para>Information about hardware devices is maintained in the
120 <filename class="directory">/etc/udev/hwdb.d</filename> and
121 <filename class="directory">/lib/udev/hwdb.d</filename> directories.
122 <application>Eudev</application> needs that information to be compiled
123 into a binary database <filename>/etc/udev/hwdb.bin</filename>. Create the
124 initial database:</para>
125
126<screen><userinput>LD_LIBRARY_PATH=/tools/lib udevadm hwdb --update</userinput></screen>
127
128 <para>This command needs to be run each time the hardware information is
129 updated.</para>
130
131 </sect2>
132
133 <sect2 id="contents-eudev" role="content">
134 <title>Contents of Eudev</title>
135
136 <segmentedlist>
137 <segtitle>Installed programs</segtitle>
138 <segtitle>Installed libraries</segtitle>
139 <segtitle>Installed directories</segtitle>
140
141 <seglistitem>
142 <seg><!-- These are in /lib/udev and not to be called by the user:
143 accelerometer, ata_id, cdrom_id, collect, mtd_probe,
144 scsi_id, v4l_id,--> udevadm and udevd</seg>
145
146 <seg>libudev.so</seg>
147
148 <seg>/etc/udev, /lib/udev, and /usr/share/doc/udev-&udev-lfs-version;</seg>
149 </seglistitem>
150 </segmentedlist>
151
152 <variablelist>
153 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
154 <?dbfo list-presentation="list"?>
155 <?dbhtml list-presentation="table"?>
156 <varlistentry id="udevadm" revision="sysv">
157 <term><command>udevadm</command></term>
158 <listitem>
159 <para>Generic udev administration tool: controls the udevd daemon,
160 provides info from the Udev database, monitors uevents, waits for
161 uevents to finish, tests Udev configuration, and triggers uevents
162 for a given device</para>
163 <indexterm zone="ch-system-eudev udevadm">
164 <primary sortas="b-udevadm">udevadm</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169 <varlistentry id="udevd">
170 <term><command>udevd</command></term>
171 <listitem>
172 <para>A daemon that listens for uevents on the netlink socket,
173 creates devices and runs the configured external programs in
174 response to these uevents</para>
175 <indexterm zone="ch-system-eudev udevd">
176 <primary sortas="b-udevd">udevd</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 <varlistentry id="libudev">
182 <term><filename class="libraryfile">libudev</filename></term>
183 <listitem>
184 <para>A library interface to udev device information</para>
185 <indexterm zone="ch-system-eudev libudev">
186 <primary sortas="c-libudev">libudev</primary>
187 </indexterm>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry id="etc-udev">
192 <term><filename class="directory">/etc/udev</filename></term>
193 <listitem>
194 <para>Contains Udev configuration files,
195 device permissions, and rules for device naming</para>
196 <indexterm zone="ch-system-eudev etc-udev">
197 <primary sortas="e-/etc/udev">/etc/udev</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 </variablelist>
203
204 </sect2>
205
206</sect1>
Note: See TracBrowser for help on using the repository browser.