[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 |
|
---|
| 8 | <sect1 id="ch-system-eudev" role="wrap">
|
---|
| 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 |
|
---|
| 43 | <para>First, clean up a few warnings and fix a test script:</para>
|
---|
| 44 |
|
---|
| 45 | <screen><userinput remap="pre">sed -i '/struct ucred/i struct ucred;' src/libudev/util.h
|
---|
| 46 | sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <para>Prepare Eudev for compilation:</para>
|
---|
| 49 |
|
---|
[15458da] | 50 | <screen><userinput remap="configure">BLKID_CFLAGS=-I/tools/include \
|
---|
| 51 | BLKID_LIBS='-L/tools/lib -lblkid' \
|
---|
| 52 | ./configure --prefix=/usr \
|
---|
[8a75933] | 53 | --bindir=/sbin \
|
---|
| 54 | --sbindir=/sbin \
|
---|
| 55 | --libdir=/usr/lib \
|
---|
| 56 | --sysconfdir=/etc \
|
---|
| 57 | --libexecdir=/lib \
|
---|
| 58 | --with-rootprefix= \
|
---|
| 59 | --with-rootlibdir=/lib \
|
---|
| 60 | --enable-split-usr \
|
---|
| 61 | --enable-libkmod \
|
---|
| 62 | --enable-rule_generator \
|
---|
[7559e334] | 63 | --enable-keymap \
|
---|
[8a75933] | 64 | --disable-introspection \
|
---|
| 65 | --disable-gudev \
|
---|
| 66 | --disable-gtk-doc-html \
|
---|
| 67 | --with-firmware-path=/lib/firmware </userinput></screen>
|
---|
| 68 |
|
---|
| 69 | <para>Compile the package:</para>
|
---|
| 70 |
|
---|
| 71 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 72 |
|
---|
| 73 | <para>Create some directories now that are needed for tests, but
|
---|
| 74 | will also be used as a part of installation:</para>
|
---|
| 75 |
|
---|
[523725c] | 76 | <screen><userinput remap="test">mkdir -pv /lib/{firmware,udev}
|
---|
[8a75933] | 77 | mkdir -pv /lib/udev/rules.d
|
---|
| 78 | mkdir -pv /etc/udev/rules.d</userinput></screen>
|
---|
| 79 |
|
---|
| 80 | <para>To test the results, run issue:</para>
|
---|
| 81 |
|
---|
| 82 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
| 83 |
|
---|
| 84 | <para>Install the package:</para>
|
---|
| 85 |
|
---|
| 86 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 87 |
|
---|
[111bb20] | 88 | <para>Now, install the man pages:</para>
|
---|
[8a75933] | 89 |
|
---|
[9c6887d] | 90 | <screen><userinput remap="install">tar -xvf ../eudev-&eudev-version;-manpages.tar.bz2 -C /usr/share</userinput></screen>
|
---|
[8a75933] | 91 |
|
---|
[8aa7fde] | 92 | <para>Finally, install some custom rules and support files useful in an LFS
|
---|
| 93 | environment:</para>
|
---|
[111bb20] | 94 |
|
---|
[8aa7fde] | 95 | <screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.bz2
|
---|
| 96 | make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
|
---|
[111bb20] | 97 |
|
---|
[8a75933] | 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 id="contents-eudev" role="content">
|
---|
| 101 | <title>Contents of Eudev</title>
|
---|
| 102 |
|
---|
| 103 | <segmentedlist>
|
---|
| 104 | <segtitle>Installed programs</segtitle>
|
---|
| 105 | <segtitle>Installed libraries</segtitle>
|
---|
| 106 | <segtitle>Installed directories</segtitle>
|
---|
| 107 |
|
---|
| 108 | <seglistitem>
|
---|
| 109 | <seg><!-- These are in /lib/udev and not to be called by the user:
|
---|
| 110 | accelerometer, ata_id, cdrom_id, collect, mtd_probe,
|
---|
| 111 | scsi_id, v4l_id,--> udevadm and udevd</seg>
|
---|
| 112 |
|
---|
| 113 | <seg>libudev.so</seg>
|
---|
| 114 |
|
---|
| 115 | <seg>/etc/udev, /lib/udev, and /lib/firmware</seg>
|
---|
| 116 | </seglistitem>
|
---|
| 117 | </segmentedlist>
|
---|
| 118 |
|
---|
| 119 | <variablelist>
|
---|
| 120 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 121 | <?dbfo list-presentation="list"?>
|
---|
| 122 | <?dbhtml list-presentation="table"?>
|
---|
| 123 | <!--
|
---|
| 124 | <varlistentry id="ata_id">
|
---|
| 125 | <term><command>ata_id</command></term>
|
---|
| 126 | <listitem>
|
---|
| 127 | <para>Provides Udev with a unique string and
|
---|
| 128 | additional information (uuid, label) for an ATA drive</para>
|
---|
| 129 | <indexterm zone="ch-system-eudev ata_id">
|
---|
| 130 | <primary sortas="b-ata_id">ata_id</primary>
|
---|
| 131 | </indexterm>
|
---|
| 132 | </listitem>
|
---|
| 133 | </varlistentry>
|
---|
| 134 |
|
---|
| 135 | <varlistentry id="cdrom_id">
|
---|
| 136 | <term><command>cdrom_id</command></term>
|
---|
| 137 | <listitem>
|
---|
| 138 | <para>Provides Udev with the capabilities of a
|
---|
| 139 | CD-ROM or DVD-ROM drive</para>
|
---|
| 140 | <indexterm zone="ch-system-eudev cdrom_id">
|
---|
| 141 | <primary sortas="b-cdrom_id">cdrom_id</primary>
|
---|
| 142 | </indexterm>
|
---|
| 143 | </listitem>
|
---|
| 144 | </varlistentry>
|
---|
| 145 |
|
---|
| 146 | <varlistentry id="collect">
|
---|
| 147 | <term><command>collect</command></term>
|
---|
| 148 | <listitem>
|
---|
| 149 | <para>Given an ID for the current uevent and a list of
|
---|
| 150 | IDs (for all target uevents), registers the current ID
|
---|
| 151 | and indicates whether all target IDs have been registered</para>
|
---|
| 152 | <indexterm zone="ch-system-eudev collect">
|
---|
| 153 | <primary sortas="b-collect">collect</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="scsi_id">
|
---|
| 159 | <term><command>scsi_id</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>Provides Udev with a unique SCSI identifier
|
---|
| 162 | based on the data returned from sending a SCSI INQUIRY command to
|
---|
| 163 | the specified device</para>
|
---|
| 164 | <indexterm zone="ch-system-eudev scsi_id">
|
---|
| 165 | <primary sortas="b-scsi_id">scsi_id</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 | -->
|
---|
| 170 | <varlistentry id="udevadm">
|
---|
| 171 | <term><command>udevadm</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>Generic udev administration tool: controls the udevd daemon,
|
---|
| 174 | provides info from the Udev database, monitors uevents, waits for
|
---|
| 175 | uevents to finish, tests Udev configuration, and triggers uevents
|
---|
| 176 | for a given device</para>
|
---|
| 177 | <indexterm zone="ch-system-eudev udevadm">
|
---|
| 178 | <primary sortas="b-udevadm">udevadm</primary>
|
---|
| 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
| 183 | <varlistentry id="udevd">
|
---|
| 184 | <term><command>udevd</command></term>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>A daemon that listens for uevents on the netlink socket,
|
---|
| 187 | creates devices and runs the configured external programs in
|
---|
| 188 | response to these uevents</para>
|
---|
| 189 | <indexterm zone="ch-system-eudev udevd">
|
---|
| 190 | <primary sortas="b-udevd">udevd</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | <varlistentry id="libudev">
|
---|
| 196 | <term><filename class="libraryfile">libudev</filename></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>A library interface to udev device information</para>
|
---|
| 199 | <indexterm zone="ch-system-eudev libudev">
|
---|
| 200 | <primary sortas="c-libudev">libudev</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | <varlistentry id="etc-udev">
|
---|
| 206 | <term><filename class="directory">/etc/udev</filename></term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>Contains Udev configuration files,
|
---|
| 209 | device permissions, and rules for device naming</para>
|
---|
| 210 | <indexterm zone="ch-system-eudev etc-udev">
|
---|
| 211 | <primary sortas="e-/etc/udev">/etc/udev</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | </variablelist>
|
---|
| 217 |
|
---|
| 218 | </sect2>
|
---|
| 219 |
|
---|
| 220 | </sect1>
|
---|