source: chapter08/eudev.xml@ 219e404

multilib
Last change on this file since 219e404 was f29824e, checked in by Thomas Trepl (Moody) <thomas@…>, 20 months ago

Automatic merge of trunk into multilib

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