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">
8 <sect1 id="ch-system-eudev" role="wrap" revision="sysv">
9 <?dbhtml filename="eudev.html"?>
11 <sect1info condition="script">
12 <productname>eudev</productname>
13 <productnumber>&eudev-version;</productnumber>
14 <address>&eudev-url;</address>
17 <title>Eudev-&eudev-version;</title>
19 <indexterm zone="ch-system-eudev">
20 <primary sortas="a-Eudev">Eudev</primary>
23 <sect2 role="package">
26 <para>The Eudev package contains programs for dynamic creation of device
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
34 <seg>&eudev-ch6-sbu;</seg>
35 <seg>&eudev-ch6-du;</seg>
40 <sect2 role="installation">
41 <title>Installation of Eudev</title>
43 <para>First, fix a test script:</para>
45 <screen><userinput remap="pre">sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen>
48 <para>Next, remove an unneeded line that causes a build failure:</para>
50 <screen><userinput remap="pre">sed -i '/keyboard_lookup_key/d' src/udev/udev-builtin-keyboard.c</userinput></screen>
52 <para>Next, add a workaround to prevent the /tools directory from being
53 hard coded into Eudev binary files library locations:</para>
55 <screen><userinput remap="pre">cat > config.cache << "EOF"
58 BLKID_CFLAGS="-I/tools/include"
59 EOF</userinput></screen>
61 <para>Prepare Eudev for compilation:</para>
63 <screen><userinput remap="configure">./configure --prefix=/usr \
70 --with-rootlibdir=/lib \
73 --config-cache</userinput></screen>
75 <para>Compile the package:</para>
77 <screen><userinput remap="make">LIBRARY_PATH=/tools/lib make</userinput></screen>
79 <note><para>The LIBRARY_PATH variable here and the LD_LIBRARY_PATH variable
80 below are needed to allow the use of libraries that were installed in /tools,
81 but have not yet been installed in the main system. LIBRARY_PATH is
82 used to find libraries during the linking process. LD_LIBRARY_PATH is
83 used to find libraries during program execution.</para></note>
85 <para>Create some directories now that are needed for tests, but
86 will also be used as a part of installation:</para>
88 <screen><userinput remap="test">mkdir -pv /lib/udev/rules.d
89 mkdir -pv /etc/udev/rules.d</userinput></screen>
91 <para>To test the results, issue:</para>
93 <screen><userinput remap="test">make LD_LIBRARY_PATH=/tools/lib check</userinput></screen>
95 <para>Install the package:</para>
97 <screen><userinput remap="install">make LD_LIBRARY_PATH=/tools/lib install</userinput></screen>
99 <para>Install some custom rules and support files useful in an LFS
102 <screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.bz2
103 make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
107 <sect2 id="conf-eudev" role="configuration">
108 <title>Configuring Eudev</title>
110 <indexterm zone="conf-eudev">
111 <primary sortas="a-Eudev">Eudev</primary>
112 <secondary>configuring</secondary>
115 <indexterm zone="conf-eudev">
116 <primary sortas="e-/etc/udev/hwdb.bin">/etc/udev/hwdb.bin</primary>
119 <para>Information about hardware devices is maintained in the
120 <filename class="directory">/etc/udev/hwdb.d</filename> and
121 <filename class="directory">/lib/udev/hwdb.d</filename> directories.
122 <application>Eudev</application> needs that information to be compiled
123 into a binary database <filename>/etc/udev/hwdb.bin</filename>. Create the
124 initial database:</para>
126 <screen><userinput>LD_LIBRARY_PATH=/tools/lib udevadm hwdb --update</userinput></screen>
128 <para>This command needs to be run each time the hardware information is
133 <sect2 id="contents-eudev" role="content">
134 <title>Contents of Eudev</title>
137 <segtitle>Installed programs</segtitle>
138 <segtitle>Installed libraries</segtitle>
139 <segtitle>Installed directories</segtitle>
142 <seg><!-- These are in /lib/udev and not to be called by the user:
143 accelerometer, ata_id, cdrom_id, collect, mtd_probe,
144 scsi_id, v4l_id,--> udevadm and udevd</seg>
146 <seg>libudev.so</seg>
148 <seg>/etc/udev, /lib/udev, and /usr/share/doc/udev-&udev-lfs-version;</seg>
153 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
154 <?dbfo list-presentation="list"?>
155 <?dbhtml list-presentation="table"?>
156 <varlistentry id="udevadm" revision="sysv">
157 <term><command>udevadm</command></term>
159 <para>Generic udev administration tool: controls the udevd daemon,
160 provides info from the Udev database, monitors uevents, waits for
161 uevents to finish, tests Udev configuration, and triggers uevents
162 for a given device</para>
163 <indexterm zone="ch-system-eudev udevadm">
164 <primary sortas="b-udevadm">udevadm</primary>
169 <varlistentry id="udevd">
170 <term><command>udevd</command></term>
172 <para>A daemon that listens for uevents on the netlink socket,
173 creates devices and runs the configured external programs in
174 response to these uevents</para>
175 <indexterm zone="ch-system-eudev udevd">
176 <primary sortas="b-udevd">udevd</primary>
181 <varlistentry id="libudev">
182 <term><filename class="libraryfile">libudev</filename></term>
184 <para>A library interface to udev device information</para>
185 <indexterm zone="ch-system-eudev libudev">
186 <primary sortas="c-libudev">libudev</primary>
191 <varlistentry id="etc-udev">
192 <term><filename class="directory">/etc/udev</filename></term>
194 <para>Contains Udev configuration files,
195 device permissions, and rules for device naming</para>
196 <indexterm zone="ch-system-eudev etc-udev">
197 <primary sortas="e-/etc/udev">/etc/udev</primary>