source: chapter06/eudev.xml@ e074bae

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.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 e074bae was 040ecb6, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to man-db-2.7.4.
Update to linux-4.2.3.
Update to tzdata2015g.
Many updates to installed files and directories. Huge thanks to Fernando.

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

  • Property mode set to 100644
File size: 6.5 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 /usr/share/doc/udev-20140408</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 <varlistentry id="udevadm">
151 <term><command>udevadm</command></term>
152 <listitem>
153 <para>Generic udev administration tool: controls the udevd daemon,
154 provides info from the Udev database, monitors uevents, waits for
155 uevents to finish, tests Udev configuration, and triggers uevents
156 for a given device</para>
157 <indexterm zone="ch-system-eudev udevadm">
158 <primary sortas="b-udevadm">udevadm</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="udevd">
164 <term><command>udevd</command></term>
165 <listitem>
166 <para>A daemon that listens for uevents on the netlink socket,
167 creates devices and runs the configured external programs in
168 response to these uevents</para>
169 <indexterm zone="ch-system-eudev udevd">
170 <primary sortas="b-udevd">udevd</primary>
171 </indexterm>
172 </listitem>
173 </varlistentry>
174
175 <varlistentry id="libudev">
176 <term><filename class="libraryfile">libudev</filename></term>
177 <listitem>
178 <para>A library interface to udev device information</para>
179 <indexterm zone="ch-system-eudev libudev">
180 <primary sortas="c-libudev">libudev</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184
185 <varlistentry id="etc-udev">
186 <term><filename class="directory">/etc/udev</filename></term>
187 <listitem>
188 <para>Contains Udev configuration files,
189 device permissions, and rules for device naming</para>
190 <indexterm zone="ch-system-eudev etc-udev">
191 <primary sortas="e-/etc/udev">/etc/udev</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 </variablelist>
197
198 </sect2>
199
200</sect1>
Note: See TracBrowser for help on using the repository browser.