[8a75933] | 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 |
|
---|
[35a5259] | 8 | <sect1 id="ch-system-eudev" role="wrap" revision="sysv">
|
---|
[8a75933] | 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-ch6-sbu;</seg>
|
---|
| 35 | <seg>&eudev-ch6-du;</seg>
|
---|
| 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
| 38 | </sect2>
|
---|
| 39 |
|
---|
| 40 | <sect2 role="installation">
|
---|
| 41 | <title>Installation of Eudev</title>
|
---|
| 42 |
|
---|
[3aee2ac2] | 43 | <para>First, fix a test script:</para>
|
---|
[8a75933] | 44 |
|
---|
[3aee2ac2] | 45 | <screen><userinput remap="pre">sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen>
|
---|
[8a75933] | 46 |
|
---|
[99dd957] | 47 | <para>Next, add a workaround to prevent the /tools directory from being
|
---|
| 48 | hard coded into Eudev binary files library locations:</para>
|
---|
| 49 |
|
---|
| 50 | <screen><userinput remap="pre">cat > config.cache << "EOF"
|
---|
| 51 | HAVE_BLKID=1
|
---|
| 52 | BLKID_LIBS="-lblkid"
|
---|
| 53 | BLKID_CFLAGS="-I/tools/include"
|
---|
| 54 | EOF</userinput></screen>
|
---|
| 55 |
|
---|
[8a75933] | 56 | <para>Prepare Eudev for compilation:</para>
|
---|
| 57 |
|
---|
[99dd957] | 58 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
[8a75933] | 59 | --bindir=/sbin \
|
---|
| 60 | --sbindir=/sbin \
|
---|
| 61 | --libdir=/usr/lib \
|
---|
| 62 | --sysconfdir=/etc \
|
---|
| 63 | --libexecdir=/lib \
|
---|
| 64 | --with-rootprefix= \
|
---|
| 65 | --with-rootlibdir=/lib \
|
---|
[54dfb280] | 66 | --enable-manpages \
|
---|
[73b2841] | 67 | --disable-static \
|
---|
[53366411] | 68 | --config-cache</userinput></screen>
|
---|
| 69 |
|
---|
| 70 | <!-- Seems to be unneeded - but leave as a comment for a while
|
---|
| 71 |
|
---|
| 72 | - -disable-gudev \
|
---|
| 73 | - -enable-split-usr \
|
---|
| 74 | - -enable-hwdb \
|
---|
| 75 | - -disable-introspection \
|
---|
| 76 | - -disable-gtk-doc-html</userinput></screen>
|
---|
| 77 |
|
---|
| 78 | -->
|
---|
[8a75933] | 79 |
|
---|
| 80 | <para>Compile the package:</para>
|
---|
| 81 |
|
---|
[99dd957] | 82 | <screen><userinput remap="make">LIBRARY_PATH=/tools/lib make</userinput></screen>
|
---|
[8a75933] | 83 |
|
---|
| 84 | <para>Create some directories now that are needed for tests, but
|
---|
| 85 | will also be used as a part of installation:</para>
|
---|
| 86 |
|
---|
[1a96a4ed] | 87 | <screen><userinput remap="test">mkdir -pv /lib/udev/rules.d
|
---|
[8a75933] | 88 | mkdir -pv /etc/udev/rules.d</userinput></screen>
|
---|
| 89 |
|
---|
[1a96a4ed] | 90 | <para>To test the results, issue:</para>
|
---|
[8a75933] | 91 |
|
---|
[99dd957] | 92 | <screen><userinput remap="test">make LD_LIBRARY_PATH=/tools/lib check</userinput></screen>
|
---|
[8a75933] | 93 |
|
---|
[1a96a4ed] | 94 | <para>Install the package:</para>
|
---|
[8a75933] | 95 |
|
---|
[99dd957] | 96 | <screen><userinput remap="install">make LD_LIBRARY_PATH=/tools/lib install</userinput></screen>
|
---|
[8a75933] | 97 |
|
---|
[99dd957] | 98 | <para>Install some custom rules and support files useful in an LFS
|
---|
[8aa7fde] | 99 | environment:</para>
|
---|
[111bb20] | 100 |
|
---|
[8aa7fde] | 101 | <screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.bz2
|
---|
| 102 | make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
|
---|
[111bb20] | 103 |
|
---|
[8a75933] | 104 | </sect2>
|
---|
| 105 |
|
---|
[1a96a4ed] | 106 | <sect2 id="conf-eudev" role="configuration">
|
---|
| 107 | <title>Configuring Eudev</title>
|
---|
| 108 |
|
---|
| 109 | <indexterm zone="conf-eudev">
|
---|
| 110 | <primary sortas="a-Eudev">Eudev</primary>
|
---|
| 111 | <secondary>configuring</secondary>
|
---|
| 112 | </indexterm>
|
---|
| 113 |
|
---|
| 114 | <indexterm zone="conf-eudev">
|
---|
| 115 | <primary sortas="e-/etc/udev/hwdb.bin">/etc/udev/hwdb.bin</primary>
|
---|
| 116 | </indexterm>
|
---|
| 117 |
|
---|
| 118 | <para>Information about hardware devices is maintained in the
|
---|
| 119 | <filename class="directory">/etc/udev/hwdb.d</filename> and
|
---|
| 120 | <filename class="directory">/usr/lib/udev/hwdb.d</filename> directories.
|
---|
| 121 | <application>Eudev</application> needs that information to be compiled
|
---|
| 122 | into a binary database <filename>/etc/udev/hwdb.bin</filename>. Create the
|
---|
| 123 | initial database:</para>
|
---|
| 124 |
|
---|
[99dd957] | 125 | <screen><userinput>LD_LIBRARY_PATH=/tools/lib udevadm hwdb --update</userinput></screen>
|
---|
[1a96a4ed] | 126 |
|
---|
| 127 | <para>This command needs to be run each time the hardware information is
|
---|
| 128 | updated.</para>
|
---|
| 129 |
|
---|
| 130 | </sect2>
|
---|
| 131 |
|
---|
[8a75933] | 132 | <sect2 id="contents-eudev" role="content">
|
---|
| 133 | <title>Contents of Eudev</title>
|
---|
| 134 |
|
---|
| 135 | <segmentedlist>
|
---|
| 136 | <segtitle>Installed programs</segtitle>
|
---|
| 137 | <segtitle>Installed libraries</segtitle>
|
---|
| 138 | <segtitle>Installed directories</segtitle>
|
---|
| 139 |
|
---|
| 140 | <seglistitem>
|
---|
| 141 | <seg><!-- These are in /lib/udev and not to be called by the user:
|
---|
| 142 | accelerometer, ata_id, cdrom_id, collect, mtd_probe,
|
---|
| 143 | scsi_id, v4l_id,--> udevadm and udevd</seg>
|
---|
| 144 |
|
---|
| 145 | <seg>libudev.so</seg>
|
---|
| 146 |
|
---|
[040ecb6] | 147 | <seg>/etc/udev, /lib/udev, and /usr/share/doc/udev-20140408</seg>
|
---|
[8a75933] | 148 | </seglistitem>
|
---|
| 149 | </segmentedlist>
|
---|
| 150 |
|
---|
| 151 | <variablelist>
|
---|
| 152 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 153 | <?dbfo list-presentation="list"?>
|
---|
| 154 | <?dbhtml list-presentation="table"?>
|
---|
[35a5259] | 155 | <varlistentry id="udevadm" revision="sysv">
|
---|
[8a75933] | 156 | <term><command>udevadm</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>Generic udev administration tool: controls the udevd daemon,
|
---|
| 159 | provides info from the Udev database, monitors uevents, waits for
|
---|
| 160 | uevents to finish, tests Udev configuration, and triggers uevents
|
---|
| 161 | for a given device</para>
|
---|
| 162 | <indexterm zone="ch-system-eudev udevadm">
|
---|
| 163 | <primary sortas="b-udevadm">udevadm</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="udevd">
|
---|
| 169 | <term><command>udevd</command></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>A daemon that listens for uevents on the netlink socket,
|
---|
| 172 | creates devices and runs the configured external programs in
|
---|
| 173 | response to these uevents</para>
|
---|
| 174 | <indexterm zone="ch-system-eudev udevd">
|
---|
| 175 | <primary sortas="b-udevd">udevd</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="libudev">
|
---|
| 181 | <term><filename class="libraryfile">libudev</filename></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>A library interface to udev device information</para>
|
---|
| 184 | <indexterm zone="ch-system-eudev libudev">
|
---|
| 185 | <primary sortas="c-libudev">libudev</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
| 190 | <varlistentry id="etc-udev">
|
---|
| 191 | <term><filename class="directory">/etc/udev</filename></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>Contains Udev configuration files,
|
---|
| 194 | device permissions, and rules for device naming</para>
|
---|
| 195 | <indexterm zone="ch-system-eudev etc-udev">
|
---|
| 196 | <primary sortas="e-/etc/udev">/etc/udev</primary>
|
---|
| 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
| 201 | </variablelist>
|
---|
| 202 |
|
---|
| 203 | </sect2>
|
---|
| 204 |
|
---|
| 205 | </sect1>
|
---|