[bf8c11f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-udev" role="wrap">
|
---|
| 9 | <?dbhtml filename="udev.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Udev-&udev-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-udev">
|
---|
| 14 | <primary sortas="a-Udev">Udev</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Udev package contains programs for dynamic creation of device
|
---|
| 21 | nodes.</para>
|
---|
| 22 |
|
---|
| 23 | <segmentedlist>
|
---|
| 24 | <segtitle>&dependencies;</segtitle>
|
---|
| 25 |
|
---|
| 26 | <seglistitem>
|
---|
[0636f6c] | 27 | <seg>Coreutils, GCC, Make, Perl, and Tree</seg>
|
---|
[bf8c11f] | 28 | </seglistitem>
|
---|
| 29 | </segmentedlist>
|
---|
| 30 |
|
---|
| 31 | </sect2>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="installation">
|
---|
| 34 | <title>Installation of Udev</title>
|
---|
| 35 |
|
---|
[e6423a01] | 36 | <para os="a">Compile the package:</para>
|
---|
[bf8c11f] | 37 |
|
---|
[c4efa05] | 38 | <screen os="b"><userinput>make EXTRAS="extra/cdrom_id extras/firmware extras/scsi_id extras/volume_id
|
---|
| 39 | extras/ata_id extras/usb_id extras/edd_id extras/dasd_id" udevdir=/dev</userinput></screen>
|
---|
[bf8c11f] | 40 |
|
---|
[e6423a01] | 41 | <variablelist os="c">
|
---|
[bf8c11f] | 42 | <title>The meaning of the make parameter:</title>
|
---|
| 43 |
|
---|
| 44 | <varlistentry>
|
---|
[c4efa05] | 45 | <term><parameter>EXTRAS="extra/cdrom_id extras/firmware extras/scsi_id extras/volume_id
|
---|
| 46 | extras/ata_id extras/usb_id extras/edd_id extras/dasd_id"</parameter></term>
|
---|
[bf8c11f] | 47 | <listitem>
|
---|
[4e61e29] | 48 | <para>This builds the help applications that are used with udev. This
|
---|
| 49 | helper program assist in correct handling of devices.</para>
|
---|
[bf8c11f] | 50 | </listitem>
|
---|
| 51 | </varlistentry>
|
---|
| 52 |
|
---|
| 53 | </variablelist>
|
---|
| 54 |
|
---|
[2f551f6] | 55 | <para os="d">If you want to run the testsuite, you need to change
|
---|
| 56 | a hardcoded reference to the <command>test</command>
|
---|
| 57 | program:</para>
|
---|
| 58 |
|
---|
[6eb4900] | 59 | <screen os="e"><userinput>sed -i 's@/usr/bin/test@/bin/test@' test/udev-test.pl</userinput></screen>
|
---|
[2f551f6] | 60 |
|
---|
| 61 | <para os="f">To test the results, issue:
|
---|
[bf8c11f] | 62 | <userinput>make test</userinput>.</para>
|
---|
| 63 |
|
---|
[2f551f6] | 64 | <para os="g">Install the package:</para>
|
---|
[bf8c11f] | 65 |
|
---|
[c4efa05] | 66 | <screen os="h"><userinput>make DESTDIR=/ \
|
---|
| 67 | EXTRAS="extra/cdrom_id extras/firmware extras/scsi_id extras/volume_id
|
---|
| 68 | extras/ata_id extras/usb_id extras/edd_id extras/dasd_id" udevdir=/dev install</userinput></screen>
|
---|
[bf8c11f] | 69 |
|
---|
[2f551f6] | 70 | <variablelist os="i">
|
---|
[9090bd7] | 71 | <title>The meaning of the make parameter:</title>
|
---|
| 72 |
|
---|
| 73 | <varlistentry>
|
---|
| 74 | <term><parameter>DESTDIR=/</parameter></term>
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>This prevents the Udev build process from killing any
|
---|
| 77 | <command>udevd</command> processes that may be running on the
|
---|
| 78 | system.</para>
|
---|
| 79 | </listitem>
|
---|
| 80 | </varlistentry>
|
---|
| 81 |
|
---|
| 82 | </variablelist>
|
---|
[e6423a01] | 83 |
|
---|
[c4efa05] | 84 | <para os="i">Install necessary helpers.</para>
|
---|
[bf8c11f] | 85 |
|
---|
[c4efa05] | 86 | <screen os="j"><userinput>install -D extras/path_id /sbin/path_id
|
---|
| 87 | install -D extras/eventrecorder.sh /lib/udev/eventrecorder.sh</userinput></screen>
|
---|
[bf8c11f] | 88 |
|
---|
[2f551f6] | 89 | <para os="l">Install the documentation that explains how to create
|
---|
[bf8c11f] | 90 | Udev rules:</para>
|
---|
| 91 |
|
---|
[dd9906e] | 92 | <screen os="m"><userinput>install -v -m644 -D docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
|
---|
[bf8c11f] | 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 id="contents-udev" role="content">
|
---|
| 97 | <title>Contents of Udev</title>
|
---|
| 98 |
|
---|
| 99 | <segmentedlist>
|
---|
| 100 | <segtitle>Installed programs</segtitle>
|
---|
| 101 | <segtitle>Installed directory</segtitle>
|
---|
| 102 |
|
---|
| 103 | <seglistitem>
|
---|
[c4efa05] | 104 | <seg>udevcontrol, udevd, udevinfo, udevmonitor, udevsend,
|
---|
| 105 | and udevtest</seg>
|
---|
[bf8c11f] | 106 | <seg>/etc/udev</seg>
|
---|
| 107 | </seglistitem>
|
---|
| 108 | </segmentedlist>
|
---|
| 109 |
|
---|
| 110 | <variablelist>
|
---|
| 111 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 112 | <?dbfo list-presentation="list"?>
|
---|
| 113 | <?dbhtml list-presentation="table"?>
|
---|
| 114 |
|
---|
| 115 | <varlistentry id="udevcontrol">
|
---|
| 116 | <term><command>udevcontrol</command></term>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para>Configures a number of options for the running
|
---|
| 119 | <command>udevd</command> daemon, such as the log level.</para>
|
---|
| 120 | <indexterm zone="ch-system-udev udevcontrol">
|
---|
| 121 | <primary sortas="b-udevcontrol">udevcontrol</primary>
|
---|
| 122 | </indexterm>
|
---|
| 123 | </listitem>
|
---|
| 124 | </varlistentry>
|
---|
| 125 |
|
---|
| 126 | <varlistentry id="udevd">
|
---|
| 127 | <term><command>udevd</command></term>
|
---|
| 128 | <listitem>
|
---|
| 129 | <para>A daemon that reorders hotplug events before submitting them to
|
---|
| 130 | <command>udev</command>,
|
---|
| 131 | thus avoiding various race conditions</para>
|
---|
| 132 | <indexterm zone="ch-system-udev udevd">
|
---|
| 133 | <primary sortas="b-udevd">udevd</primary>
|
---|
| 134 | </indexterm>
|
---|
| 135 | </listitem>
|
---|
| 136 | </varlistentry>
|
---|
| 137 |
|
---|
| 138 | <varlistentry id="udevinfo">
|
---|
| 139 | <term><command>udevinfo</command></term>
|
---|
| 140 | <listitem>
|
---|
| 141 | <para>Allows users to query the <command>udev</command> database for
|
---|
| 142 | information on any device currently present on the system; it also
|
---|
| 143 | provides a way to query any device in the <systemitem
|
---|
| 144 | class="filesystem">sysfs</systemitem> tree to help create udev
|
---|
| 145 | rules</para>
|
---|
| 146 | <indexterm zone="ch-system-udev udevinfo">
|
---|
| 147 | <primary sortas="b-udevinfo">udevinfo</primary>
|
---|
| 148 | </indexterm>
|
---|
| 149 | </listitem>
|
---|
| 150 | </varlistentry>
|
---|
| 151 |
|
---|
| 152 | <varlistentry id="udevmonitor">
|
---|
| 153 | <term><command>udevmonitor</command></term>
|
---|
| 154 | <listitem>
|
---|
| 155 | <para>Prints the event received from the kernel and the event which
|
---|
| 156 | <command>udev</command> sends out after rule processing</para>
|
---|
| 157 | <indexterm zone="ch-system-udev udevmonitor">
|
---|
| 158 | <primary sortas="b-udevmonitor">udevmonitor</primary>
|
---|
| 159 | </indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 |
|
---|
[c4efa05] | 163 | <varlistentry id="udevtest">
|
---|
| 164 | <term><command>udevtest</command></term>
|
---|
[bf8c11f] | 165 | <listitem>
|
---|
[c4efa05] | 166 | <para>Simulates a <command>udev</command> run for the given device,
|
---|
| 167 | and prints out the name of the node the real <command>udev</command>
|
---|
| 168 | would have created or (not in LFS) the name of the renamed network
|
---|
| 169 | interface</para>
|
---|
| 170 | <indexterm zone="ch-system-udev udevtest">
|
---|
| 171 | <primary sortas="b-udevtest">udevtest</primary>
|
---|
[bf8c11f] | 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
| 175 |
|
---|
[c4efa05] | 176 | <varlistentry id="cdrom_id">
|
---|
| 177 | <term><command>cdrom_id</command></term>
|
---|
[bf8c11f] | 178 | <listitem>
|
---|
[c4efa05] | 179 | <para>To be written</para>
|
---|
| 180 | <indexterm zone="ch-system-udev cdrom_id">
|
---|
| 181 | <primary sortas="b-cdrom_id">cdrom_id</primary>
|
---|
[bf8c11f] | 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
[c4efa05] | 186 | <varlistentry id="firmware_helper">
|
---|
| 187 | <term><command>firmware_helper</command></term>
|
---|
[bf8c11f] | 188 | <listitem>
|
---|
[c4efa05] | 189 | <para>To be written</para>
|
---|
| 190 | <indexterm zone="ch-system-udev firmware_helper">
|
---|
| 191 | <primary sortas="b-firmware_helper">firmware_helper</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | <varlistentry id="scsi_id">
|
---|
| 197 | <term><command>scsi_id</command></term>
|
---|
| 198 | <listitem>
|
---|
| 199 | <para>To be written</para>
|
---|
| 200 | <indexterm zone="ch-system-udev scsi_id">
|
---|
| 201 | <primary sortas="b-scsi_id">scsi_id</primary>
|
---|
| 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 |
|
---|
| 206 | <varlistentry id="volume_id">
|
---|
| 207 | <term><command>volume_id</command></term>
|
---|
| 208 | <listitem>
|
---|
| 209 | <para>To be written</para>
|
---|
| 210 | <indexterm zone="ch-system-udev volume_id">
|
---|
| 211 | <primary sortas="b-volume_id">volume_id</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | <varlistentry id="ata_id">
|
---|
| 217 | <term><command>ata_id</command></term>
|
---|
| 218 | <listitem>
|
---|
| 219 | <para>To be written</para>
|
---|
| 220 | <indexterm zone="ch-system-udev ata_id">
|
---|
| 221 | <primary sortas="b-volume_id">ata_id</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
| 226 | <varlistentry id="usb_id">
|
---|
| 227 | <term><command>usb_id</command></term>
|
---|
| 228 | <listitem>
|
---|
| 229 | <para>To be written</para>
|
---|
| 230 | <indexterm zone="ch-system-udev usb_id">
|
---|
| 231 | <primary sortas="b-usb_id">usb_id</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="edd_id">
|
---|
| 237 | <term><command>edd_id</command></term>
|
---|
| 238 | <listitem>
|
---|
| 239 | <para>To be written</para>
|
---|
| 240 | <indexterm zone="ch-system-udev edd_id">
|
---|
| 241 | <primary sortas="b-edd_id">edd_id</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
| 246 | <varlistentry id="dasd_id">
|
---|
| 247 | <term><command>dasd_id</command></term>
|
---|
| 248 | <listitem>
|
---|
| 249 | <para>To be written</para>
|
---|
| 250 | <indexterm zone="ch-system-udev dasd_id">
|
---|
| 251 | <primary sortas="b-dasd_id">dasd_id</primary>
|
---|
[bf8c11f] | 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="etc-udev">
|
---|
| 257 | <term><filename class="directory">/etc/udev</filename></term>
|
---|
| 258 | <listitem>
|
---|
| 259 | <para>Contains <command>udev</command> configuation files,
|
---|
| 260 | device permissions, and rules for device naming</para>
|
---|
| 261 | <indexterm zone="ch-system-udev etc-udev">
|
---|
| 262 | <primary sortas="e-/etc/udev">/etc/udev</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
[c4efa05] | 267 | <varlistentry id="lib-udev">
|
---|
| 268 | <term><filename class="directory">/lib/udev</filename></term>
|
---|
| 269 | <listitem>
|
---|
| 270 | <para>Contains <command>udev</command> helper programs
|
---|
| 271 | and static devices which get copied to /dev when booted.</para>
|
---|
| 272 | <indexterm zone="ch-system-udev lib-udev">
|
---|
| 273 | <primary sortas="e-/lib/udev">/lib/udev</primary>
|
---|
| 274 | </indexterm>
|
---|
| 275 | </listitem>
|
---|
| 276 | </varlistentry>
|
---|
[bf8c11f] | 277 | </variablelist>
|
---|
| 278 |
|
---|
| 279 | </sect2>
|
---|
| 280 |
|
---|
| 281 | </sect1>
|
---|