source: chapter08/eudev.xml@ 76531f2

ml-11.0 multilib
Last change on this file since 76531f2 was 76531f2, checked in by Thomas Trepl (Moody) <thomas@…>, 3 years ago

Cleanup instructions

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