source: chapter08/eudev.xml@ e680022

multilib
Last change on this file since e680022 was 32f47b1, checked in by Thomas Trepl (Moody) <thomas@…>, 3 years ago

Merge branch 'trunk' into multilib

  • Property mode set to 100644
File size: 8.1 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-fin-sbu;</seg>
35 <seg>&eudev-fin-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
53 <para>Prepare Eudev for compilation:</para>
54
55<screen><userinput remap="configure">./configure --prefix=/usr \
56 --bindir=/usr/sbin \
57 --sysconfdir=/etc \
58 --enable-manpages \
59 --disable-static</userinput></screen>
60
61 <para>Compile the package:</para>
62
63<screen><userinput remap="make">make</userinput></screen>
64
65 <para>Create some directories now that are needed for tests, but
66 will also be used as a part of installation:</para>
67
68<screen><userinput remap="test">mkdir -pv /usr/lib/udev/rules.d
69mkdir -pv /etc/udev/rules.d</userinput></screen>
70
71 <para>To test the results, issue:</para>
72
73<screen><userinput remap="test">make check</userinput></screen>
74
75 <para>Install the package:</para>
76
77<screen><userinput remap="install">make install</userinput></screen>
78
79 <para>Install some custom rules and support files useful in an LFS
80 environment:</para>
81
82<screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.xz
83make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
84
85 </sect2>
86
87 <!-- - - - - - - - - - -->
88 <!-- Multilib - 32bit -->
89 <!-- - - - - - - - - - -->
90
91 <sect2 arch="ml_32,ml_all" role="installation">
92 <title>Installation of Eudev - 32bit</title>
93
94 <para>Clean previous build:</para>
95
96<screen><userinput remap="pre">make distclean</userinput></screen>
97
98 <para>Prepare Eudev for compilation:</para>
99
100<screen><userinput remap="configure">CC="gcc -m32" \
101./configure --host=i686-pc-linux-gnu \
102 --prefix=/usr \
103 --bindir=/usr/sbin \
104 --libdir=/usr/lib32 \
105 --sysconfdir=/etc \
106 --disable-manpages \
107 --disable-static \
108 --config-cache</userinput></screen>
109
110 <para>Compile the package:</para>
111
112<screen><userinput remap="make">make</userinput></screen>
113
114 <para>Install the package:</para>
115
116<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
117cp -Rv DESTDIR/usr/lib32/* /usr/lib32
118rm -rf DESTDIR</userinput></screen>
119
120 </sect2><!-- m32 -->
121
122 <!-- - - - - - - - - - -->
123 <!-- Multilib - x32bit -->
124 <!-- - - - - - - - - - -->
125
126 <sect2 arch="ml_x32,ml_all" role="installation">
127 <title>Installation of Eudev - x32bit</title>
128
129 <para>Clean previous build:</para>
130
131<screen><userinput remap="pre">make distclean</userinput></screen>
132
133 <para>Prepare Eudev for compilation:</para>
134
135<screen><userinput remap="configure">CC="gcc -mx32" \
136./configure --host=x86_64-lfs-linux-gnux32 \
137 --prefix=/usr \
138 --bindir=/usr/sbin \
139 --libdir=/usr/libx32 \
140 --sysconfdir=/etc \
141 --disable-manpages \
142 --disable-static \
143 --config-cache</userinput></screen>
144
145 <para>Compile the package:</para>
146
147<screen><userinput remap="make">make</userinput></screen>
148
149 <para>Install the package:</para>
150
151<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
152cp -Rv DESTDIR/usr/libx32/* /usr/libx32
153rm -rf DESTDIR</userinput></screen>
154
155 </sect2><!-- mx32 -->
156
157 <sect2 id="conf-eudev" role="configuration">
158 <title>Configuring Eudev</title>
159
160 <indexterm zone="conf-eudev">
161 <primary sortas="a-Eudev">Eudev</primary>
162 <secondary>configuring</secondary>
163 </indexterm>
164
165 <indexterm zone="conf-eudev">
166 <primary sortas="e-/etc/udev/hwdb.bin">/etc/udev/hwdb.bin</primary>
167 </indexterm>
168
169 <para>Information about hardware devices is maintained in the
170 <filename class="directory">/etc/udev/hwdb.d</filename> and
171 <filename class="directory">/usr/lib/udev/hwdb.d</filename> directories.
172 <application>Eudev</application> needs that information to be compiled
173 into a binary database <filename>/etc/udev/hwdb.bin</filename>. Create the
174 initial database:</para>
175
176<screen><userinput>udevadm hwdb --update</userinput></screen>
177
178 <para>This command needs to be run each time the hardware information is
179 updated.</para>
180
181 </sect2>
182
183 <sect2 id="contents-eudev" role="content">
184 <title>Contents of Eudev</title>
185
186 <segmentedlist>
187 <segtitle>Installed programs</segtitle>
188 <segtitle>Installed libraries</segtitle>
189 <segtitle>Installed directories</segtitle>
190
191 <seglistitem>
192 <seg><!-- These are in /usr/lib/udev and not to be called by the user:
193 accelerometer, ata_id, cdrom_id, collect, mtd_probe,
194 scsi_id, v4l_id,--> udevadm and udevd</seg>
195
196 <seg>libudev.so</seg>
197
198 <seg>/etc/udev, /usr/lib/udev, and /usr/share/doc/udev-&udev-lfs-version;</seg>
199 </seglistitem>
200 </segmentedlist>
201
202 <variablelist>
203 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
204 <?dbfo list-presentation="list"?>
205 <?dbhtml list-presentation="table"?>
206 <varlistentry id="udevadm" revision="sysv">
207 <term><command>udevadm</command></term>
208 <listitem>
209 <para>Generic udev administration tool: controls the udevd daemon,
210 provides info from the Udev database, monitors uevents, waits for
211 uevents to finish, tests Udev configuration, and triggers uevents
212 for a given device</para>
213 <indexterm zone="ch-system-eudev udevadm">
214 <primary sortas="b-udevadm">udevadm</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="udevd">
220 <term><command>udevd</command></term>
221 <listitem>
222 <para>A daemon that listens for uevents on the netlink socket,
223 creates devices and runs the configured external programs in
224 response to these uevents</para>
225 <indexterm zone="ch-system-eudev udevd">
226 <primary sortas="b-udevd">udevd</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="libudev">
232 <term><filename class="libraryfile">libudev</filename></term>
233 <listitem>
234 <para>A library interface to udev device information</para>
235 <indexterm zone="ch-system-eudev libudev">
236 <primary sortas="c-libudev">libudev</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="etc-udev">
242 <term><filename class="directory">/etc/udev</filename></term>
243 <listitem>
244 <para>Contains Udev configuration files,
245 device permissions, and rules for device naming</para>
246 <indexterm zone="ch-system-eudev etc-udev">
247 <primary sortas="e-/etc/udev">/etc/udev</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 </variablelist>
253
254 </sect2>
255
256</sect1>
Note: See TracBrowser for help on using the repository browser.