[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 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 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Udev</title>
|
---|
| 27 |
|
---|
[e0e40d3] | 28 | <para os="a">Compile the package:</para>
|
---|
[3f8be484] | 29 |
|
---|
[b5e3757] | 30 | <screen os="b"><userinput>make EXTRAS="extras/ata_id extras/cdrom_id extras/collect \
|
---|
| 31 | extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator \
|
---|
[fab693d] | 32 | extras/scsi_id extras/usb_id extras/volume_id" udevdir=/dev</userinput></screen>
|
---|
[3f8be484] | 33 |
|
---|
[e0e40d3] | 34 | <variablelist os="c">
|
---|
[3f8be484] | 35 | <title>The meaning of the make parameter:</title>
|
---|
| 36 |
|
---|
| 37 | <varlistentry>
|
---|
[fab693d] | 38 | <term><parameter>EXTRAS="extras/ata_id extras/cdrom_id extras/collect
|
---|
| 39 | extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator
|
---|
| 40 | extras/scsi_id extras/usb_id extras/volume_id"</parameter></term>
|
---|
[3f8be484] | 41 | <listitem>
|
---|
[07e9936] | 42 | <para>This builds the helper applications that are used with
|
---|
| 43 | udev. The helper programs assist in correct handling of devices.</para>
|
---|
[3f8be484] | 44 | </listitem>
|
---|
| 45 | </varlistentry>
|
---|
| 46 |
|
---|
| 47 | </variablelist>
|
---|
| 48 |
|
---|
[4faecfa] | 49 | <para os="d">If you want to run the testsuite, you need to change
|
---|
[fab693d] | 50 | a hardcoded reference to the <command>test</command> program:</para>
|
---|
[4faecfa] | 51 |
|
---|
[773bf1ea] | 52 | <screen os="e"><userinput>sed -i 's@/usr/bin/test@/bin/test@' test/udev-test.pl</userinput></screen>
|
---|
[4faecfa] | 53 |
|
---|
| 54 | <para os="f">To test the results, issue:
|
---|
[3f8be484] | 55 | <userinput>make test</userinput>.</para>
|
---|
| 56 |
|
---|
[4faecfa] | 57 | <para os="g">Install the package:</para>
|
---|
[3f8be484] | 58 |
|
---|
[b5e3757] | 59 | <screen os="h"><userinput>make EXTRAS="extras/ata_id extras/cdrom_id extras/collect \
|
---|
| 60 | extras/edd_id extras/firmware extras/floppy extras/path_id extras/rule_generator \
|
---|
| 61 | extras/scsi_id extras/usb_id extras/volume_id" DESTDIR=/ udevdir=/dev install</userinput></screen>
|
---|
[3f8be484] | 62 |
|
---|
[4faecfa] | 63 | <variablelist os="i">
|
---|
[de3d632] | 64 | <title>The meaning of the make parameter:</title>
|
---|
| 65 |
|
---|
| 66 | <varlistentry>
|
---|
| 67 | <term><parameter>DESTDIR=/</parameter></term>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>This prevents the Udev build process from killing any
|
---|
| 70 | <command>udevd</command> processes that may be running on the
|
---|
| 71 | system.</para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </varlistentry>
|
---|
| 74 |
|
---|
| 75 | </variablelist>
|
---|
[e0e40d3] | 76 |
|
---|
[fab693d] | 77 | <para os="j">Install documentation:</para>
|
---|
[3f8be484] | 78 |
|
---|
[fab693d] | 79 | <screen os="k"><userinput>install -v -m644 -D docs/writing_udev_rules/index.html \
|
---|
[a40edab] | 80 | /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
|
---|
[3f8be484] | 81 |
|
---|
[fab693d] | 82 | <para os="l">Create a directory for storing firmware that can be
|
---|
[07e9936] | 83 | loaded by <command>udev</command>:</para>
|
---|
| 84 |
|
---|
[fab693d] | 85 | <screen os="m"><userinput>install -dv /lib/firmware</userinput></screen>
|
---|
[9aba4a0] | 86 |
|
---|
[3f8be484] | 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 id="contents-udev" role="content">
|
---|
| 90 | <title>Contents of Udev</title>
|
---|
| 91 |
|
---|
| 92 | <segmentedlist>
|
---|
| 93 | <segtitle>Installed programs</segtitle>
|
---|
[f65d2a0] | 94 | <segtitle>Installed library</segtitle>
|
---|
[3f8be484] | 95 | <segtitle>Installed directory</segtitle>
|
---|
| 96 |
|
---|
| 97 | <seglistitem>
|
---|
[f65d2a0] | 98 | <seg>udevcontrol, udevd, udevinfo, udevmonitor, udevsettle,
|
---|
[4929f06] | 99 | udevtest, and udevtrigger</seg>
|
---|
[f65d2a0] | 100 | <seg>libvolume_id</seg>
|
---|
[3f8be484] | 101 | <seg>/etc/udev</seg>
|
---|
| 102 | </seglistitem>
|
---|
| 103 | </segmentedlist>
|
---|
| 104 |
|
---|
| 105 | <variablelist>
|
---|
| 106 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 107 | <?dbfo list-presentation="list"?>
|
---|
| 108 | <?dbhtml list-presentation="table"?>
|
---|
| 109 |
|
---|
| 110 | <varlistentry id="udevcontrol">
|
---|
| 111 | <term><command>udevcontrol</command></term>
|
---|
| 112 | <listitem>
|
---|
| 113 | <para>Configures a number of options for the running
|
---|
| 114 | <command>udevd</command> daemon, such as the log level.</para>
|
---|
| 115 | <indexterm zone="ch-system-udev udevcontrol">
|
---|
| 116 | <primary sortas="b-udevcontrol">udevcontrol</primary>
|
---|
| 117 | </indexterm>
|
---|
| 118 | </listitem>
|
---|
| 119 | </varlistentry>
|
---|
| 120 |
|
---|
| 121 | <varlistentry id="udevd">
|
---|
| 122 | <term><command>udevd</command></term>
|
---|
| 123 | <listitem>
|
---|
| 124 | <para>A daemon that reorders hotplug events before submitting them to
|
---|
| 125 | <command>udev</command>,
|
---|
| 126 | thus avoiding various race conditions</para>
|
---|
| 127 | <indexterm zone="ch-system-udev udevd">
|
---|
| 128 | <primary sortas="b-udevd">udevd</primary>
|
---|
| 129 | </indexterm>
|
---|
| 130 | </listitem>
|
---|
| 131 | </varlistentry>
|
---|
| 132 |
|
---|
| 133 | <varlistentry id="udevinfo">
|
---|
| 134 | <term><command>udevinfo</command></term>
|
---|
| 135 | <listitem>
|
---|
| 136 | <para>Allows users to query the <command>udev</command> database for
|
---|
| 137 | information on any device currently present on the system; it also
|
---|
| 138 | provides a way to query any device in the <systemitem
|
---|
| 139 | class="filesystem">sysfs</systemitem> tree to help create udev
|
---|
| 140 | rules</para>
|
---|
| 141 | <indexterm zone="ch-system-udev udevinfo">
|
---|
| 142 | <primary sortas="b-udevinfo">udevinfo</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
| 147 | <varlistentry id="udevmonitor">
|
---|
| 148 | <term><command>udevmonitor</command></term>
|
---|
| 149 | <listitem>
|
---|
| 150 | <para>Prints the event received from the kernel and the event which
|
---|
| 151 | <command>udev</command> sends out after rule processing</para>
|
---|
| 152 | <indexterm zone="ch-system-udev udevmonitor">
|
---|
| 153 | <primary sortas="b-udevmonitor">udevmonitor</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
[a68b59e] | 158 | <varlistentry id="udevsettle">
|
---|
| 159 | <term><command>udevsettle</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>Watches the Udev event queue and exits if all current uevents
|
---|
| 162 | have been handled</para>
|
---|
| 163 | <indexterm zone="ch-system-udev udevsettle">
|
---|
| 164 | <primary sortas="b-udevsettle">udevsettle</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
| 168 |
|
---|
[6e8f798] | 169 | <varlistentry id="udevtest">
|
---|
| 170 | <term><command>udevtest</command></term>
|
---|
[3f8be484] | 171 | <listitem>
|
---|
[6e8f798] | 172 | <para>Simulates a <command>udev</command> run for the given device,
|
---|
| 173 | and prints out the name of the node the real <command>udev</command>
|
---|
[8fd11cd] | 174 | would have created or the name of the renamed network interface</para>
|
---|
[6e8f798] | 175 | <indexterm zone="ch-system-udev udevtest">
|
---|
| 176 | <primary sortas="b-udevtest">udevtest</primary>
|
---|
[3f8be484] | 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
[4929f06] | 181 | <varlistentry id="udevtrigger">
|
---|
| 182 | <term><command>udevtrigger</command></term>
|
---|
| 183 | <listitem>
|
---|
| 184 | <para>Walks the sysfs tree for devices that need to be added to the
|
---|
| 185 | system.</para>
|
---|
| 186 | <indexterm zone="ch-system-udev udevtrigger">
|
---|
| 187 | <primary sortas="b-udevtrigger">udevtrigger</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
[4ce2d9d] | 192 | <!-- helpers start here -->
|
---|
[a68b59e] | 193 | <varlistentry id="ata_id">
|
---|
| 194 | <term><command>ata_id</command></term>
|
---|
| 195 | <listitem>
|
---|
| 196 | <para>Provides Udev with a unique string and additional
|
---|
| 197 | information (uuid, label) for an ATA drive</para>
|
---|
| 198 | <indexterm zone="ch-system-udev ata_id">
|
---|
| 199 | <primary sortas="b-ata_id">ata_id</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
[6e8f798] | 204 | <varlistentry id="cdrom_id">
|
---|
| 205 | <term><command>cdrom_id</command></term>
|
---|
[3f8be484] | 206 | <listitem>
|
---|
[8fd11cd] | 207 | <para>Print the capabilities of a CDROM or DVDROM drive.</para>
|
---|
[6e8f798] | 208 | <indexterm zone="ch-system-udev cdrom_id">
|
---|
| 209 | <primary sortas="b-cdrom_id">cdrom_id</primary>
|
---|
[3f8be484] | 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
[a68b59e] | 214 | <varlistentry id="create_floppy_devices">
|
---|
| 215 | <term><command>create_floppy_devices</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>Creates all possible floppy devices based on the CMOS type</para>
|
---|
| 218 | <indexterm zone="ch-system-udev create_floppy_devices">
|
---|
| 219 | <primary sortas="b-create_floppy_devices">create_floppy_devices</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
[4ce2d9d] | 224 | <varlistentry id="dasd_id">
|
---|
| 225 | <term><command>dasd_id</command></term>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>Read the label from an s390 block device.</para>
|
---|
| 228 | <indexterm zone="ch-system-udev dasd_id">
|
---|
| 229 | <primary sortas="b-dasd_id">dasd_id</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="edd_id">
|
---|
| 235 | <term><command>edd_id</command></term>
|
---|
| 236 | <listitem>
|
---|
| 237 | <para>Identify x86 disk drives from Enhanced Disk Drive calls.</para>
|
---|
| 238 | <indexterm zone="ch-system-udev edd_id">
|
---|
| 239 | <primary sortas="b-edd_id">edd_id</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
[a68b59e] | 244 | <varlistentry id="firmware.sh">
|
---|
[9e18eea] | 245 | <term><command>firmware.sh</command></term>
|
---|
[3f8be484] | 246 | <listitem>
|
---|
[4ce2d9d] | 247 | <para>Script to load firmware for a device</para>
|
---|
[a68b59e] | 248 | <indexterm zone="ch-system-udev firmware.sh">
|
---|
| 249 | <primary sortas="b-firmware.sh">firmware.sh</primary>
|
---|
[6e8f798] | 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 |
|
---|
[a68b59e] | 254 | <varlistentry id="path_id">
|
---|
| 255 | <term><command>path_id</command></term>
|
---|
[6e8f798] | 256 | <listitem>
|
---|
[a68b59e] | 257 | <para>Provide the shortest possible unique hardware path to a
|
---|
| 258 | device</para>
|
---|
| 259 | <indexterm zone="ch-system-udev path_id">
|
---|
| 260 | <primary sortas="b-path_id">path_id</primary>
|
---|
[6e8f798] | 261 | </indexterm>
|
---|
| 262 | </listitem>
|
---|
| 263 | </varlistentry>
|
---|
| 264 |
|
---|
[a68b59e] | 265 | <varlistentry id="scsi_id">
|
---|
| 266 | <term><command>scsi_id</command></term>
|
---|
[6e8f798] | 267 | <listitem>
|
---|
[4ce2d9d] | 268 | <para>Retrieve or generate a unique SCSI identifier.</para>
|
---|
[a68b59e] | 269 | <indexterm zone="ch-system-udev scsi_id">
|
---|
| 270 | <primary sortas="b-scsi_id">scsi_id</primary>
|
---|
[6e8f798] | 271 | </indexterm>
|
---|
| 272 | </listitem>
|
---|
| 273 | </varlistentry>
|
---|
| 274 |
|
---|
| 275 | <varlistentry id="usb_id">
|
---|
| 276 | <term><command>usb_id</command></term>
|
---|
| 277 | <listitem>
|
---|
[8fd11cd] | 278 | <para>Identify a USB block device.</para>
|
---|
[6e8f798] | 279 | <indexterm zone="ch-system-udev usb_id">
|
---|
| 280 | <primary sortas="b-usb_id">usb_id</primary>
|
---|
| 281 | </indexterm>
|
---|
| 282 | </listitem>
|
---|
| 283 | </varlistentry>
|
---|
| 284 |
|
---|
[4ce2d9d] | 285 | <varlistentry id="vol_id">
|
---|
| 286 | <term><command>vol_id</command></term>
|
---|
[6e8f798] | 287 | <listitem>
|
---|
[4ce2d9d] | 288 | <para>Probe filesystem type and read label and uuid.</para>
|
---|
| 289 | <indexterm zone="ch-system-udev vol_id">
|
---|
| 290 | <primary sortas="b-vol_id">vol_id</primary>
|
---|
[3f8be484] | 291 | </indexterm>
|
---|
| 292 | </listitem>
|
---|
| 293 | </varlistentry>
|
---|
| 294 |
|
---|
[f65d2a0] | 295 | <varlistentry id="libvolume_id">
|
---|
| 296 | <term><filename class="libraryfile">libvolume_id</filename></term>
|
---|
| 297 | <listitem>
|
---|
| 298 | <para>Description needed.</para>
|
---|
| 299 | <indexterm zone="ch-system-udev libvolume_id">
|
---|
| 300 | <primary sortas="b-libvolume_id">libvolume_id</primary>
|
---|
| 301 | </indexterm>
|
---|
| 302 | </listitem>
|
---|
| 303 | </varlistentry>
|
---|
| 304 |
|
---|
[3f8be484] | 305 | <varlistentry id="etc-udev">
|
---|
| 306 | <term><filename class="directory">/etc/udev</filename></term>
|
---|
| 307 | <listitem>
|
---|
[8fd11cd] | 308 | <para>Contains <command>udev</command> configuration files,
|
---|
[3f8be484] | 309 | device permissions, and rules for device naming</para>
|
---|
| 310 | <indexterm zone="ch-system-udev etc-udev">
|
---|
| 311 | <primary sortas="e-/etc/udev">/etc/udev</primary>
|
---|
| 312 | </indexterm>
|
---|
| 313 | </listitem>
|
---|
| 314 | </varlistentry>
|
---|
| 315 |
|
---|
[6e8f798] | 316 | <varlistentry id="lib-udev">
|
---|
| 317 | <term><filename class="directory">/lib/udev</filename></term>
|
---|
| 318 | <listitem>
|
---|
| 319 | <para>Contains <command>udev</command> helper programs
|
---|
| 320 | and static devices which get copied to /dev when booted.</para>
|
---|
| 321 | <indexterm zone="ch-system-udev lib-udev">
|
---|
| 322 | <primary sortas="e-/lib/udev">/lib/udev</primary>
|
---|
| 323 | </indexterm>
|
---|
| 324 | </listitem>
|
---|
| 325 | </varlistentry>
|
---|
[3f8be484] | 326 | </variablelist>
|
---|
| 327 |
|
---|
| 328 | </sect2>
|
---|
| 329 |
|
---|
| 330 | </sect1>
|
---|