source: chapter08/eudev.xml@ 37e35d2

multilib-10.1
Last change on this file since 37e35d2 was 37e35d2, checked in by Thomas Trepl <thomas@…>, 4 years ago

Update to new lfs structure

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11986 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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