[02095ae] | 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 | </sect2> |
---|
| 24 | |
---|
| 25 | <sect2 role="installation"> |
---|
| 26 | <title>Installation of Udev</title> |
---|
| 27 | |
---|
| 28 | <para os="a">Compile the package:</para> |
---|
| 29 | |
---|
| 30 | <screen os="b"><userinput>make CROSS_COMPILE="${LFS_TARGET}-" CC="${CC}" LD="${CC}" \ |
---|
| 31 | EXTRAS="extras/floppy extras/cdrom_id extras/firmware \ |
---|
| 32 | extras/scsi_id extras/volume_id extras/ata_id extras/usb_id \ |
---|
| 33 | extras/edd_id extras/dasd_id extras/path_id" udevdir=/dev</userinput></screen> |
---|
| 34 | |
---|
| 35 | <variablelist os="c"> |
---|
| 36 | <title>The meaning of the make parameter:</title> |
---|
| 37 | |
---|
| 38 | <varlistentry> |
---|
| 39 | <term><parameter>EXTRAS="extras/floppy extras/cdrom_id extras/firmware |
---|
| 40 | extras/scsi_id extras/volume_id extras/ata_id extras/usb_id extras/edd_id |
---|
| 41 | extras/dasd_id extras/path_id"</parameter></term> |
---|
| 42 | <listitem> |
---|
| 43 | <para>This builds the helper applications that are used with |
---|
| 44 | udev. The helper programs assist in correct handling of devices.</para> |
---|
| 45 | </listitem> |
---|
| 46 | </varlistentry> |
---|
| 47 | |
---|
| 48 | </variablelist> |
---|
| 49 | |
---|
| 50 | <para os="c">Install the package:</para> |
---|
| 51 | |
---|
| 52 | <screen os="d"><userinput>make DESTDIR="${LFS}" \ |
---|
| 53 | EXTRAS="extras/floppy extras/cdrom_id extras/firmware \ |
---|
| 54 | extras/scsi_id extras/volume_id extras/ata_id extras/usb_id \ |
---|
| 55 | extras/edd_id extras/dasd_id extras/path_id" udevdir=/dev install</userinput></screen> |
---|
| 56 | |
---|
| 57 | <para os="e">Install necessary helpers.</para> |
---|
| 58 | |
---|
| 59 | <screen os="f"><userinput>install -v extras/eventrecorder.sh ${LFS}/lib/udev</userinput></screen> |
---|
| 60 | |
---|
| 61 | <para os="g">Install the documentation that explains how to create |
---|
| 62 | Udev rules:</para> |
---|
| 63 | |
---|
| 64 | <screen os="h"><userinput>install -v -m644 -D docs/writing_udev_rules/index.html \ |
---|
| 65 | ${LFS}/usr/share/doc/udev-&udev-version;/index.html</userinput></screen> |
---|
| 66 | |
---|
| 67 | <para os="i">Create a directory for storing firmware that can be |
---|
| 68 | loaded by <command>udev</command>:</para> |
---|
| 69 | |
---|
| 70 | <screen os="j"><userinput>install -dv ${LFS}/lib/firmware</userinput></screen> |
---|
| 71 | |
---|
| 72 | </sect2> |
---|
| 73 | |
---|
| 74 | <sect2 id="contents-udev" role="content"> |
---|
| 75 | <title>Contents of Udev</title> |
---|
| 76 | |
---|
| 77 | <segmentedlist> |
---|
| 78 | <segtitle>Installed programs</segtitle> |
---|
| 79 | <segtitle>Installed directory</segtitle> |
---|
| 80 | |
---|
| 81 | <seglistitem> |
---|
| 82 | <seg>udevcontrol, udevd, udevinfo, udevmonitor, udevsend, |
---|
| 83 | udevtest, and udevtrigger</seg> |
---|
| 84 | <seg>/etc/udev</seg> |
---|
| 85 | </seglistitem> |
---|
| 86 | </segmentedlist> |
---|
| 87 | |
---|
| 88 | <variablelist> |
---|
| 89 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> |
---|
| 90 | <?dbfo list-presentation="list"?> |
---|
| 91 | <?dbhtml list-presentation="table"?> |
---|
| 92 | |
---|
| 93 | <varlistentry id="udevcontrol"> |
---|
| 94 | <term><command>udevcontrol</command></term> |
---|
| 95 | <listitem> |
---|
| 96 | <para>Configures a number of options for the running |
---|
| 97 | <command>udevd</command> daemon, such as the log level.</para> |
---|
| 98 | <indexterm zone="ch-system-udev udevcontrol"> |
---|
| 99 | <primary sortas="b-udevcontrol">udevcontrol</primary> |
---|
| 100 | </indexterm> |
---|
| 101 | </listitem> |
---|
| 102 | </varlistentry> |
---|
| 103 | |
---|
| 104 | <varlistentry id="udevd"> |
---|
| 105 | <term><command>udevd</command></term> |
---|
| 106 | <listitem> |
---|
| 107 | <para>A daemon that reorders hotplug events before submitting them to |
---|
| 108 | <command>udev</command>, |
---|
| 109 | thus avoiding various race conditions</para> |
---|
| 110 | <indexterm zone="ch-system-udev udevd"> |
---|
| 111 | <primary sortas="b-udevd">udevd</primary> |
---|
| 112 | </indexterm> |
---|
| 113 | </listitem> |
---|
| 114 | </varlistentry> |
---|
| 115 | |
---|
| 116 | <varlistentry id="udevinfo"> |
---|
| 117 | <term><command>udevinfo</command></term> |
---|
| 118 | <listitem> |
---|
| 119 | <para>Allows users to query the <command>udev</command> database for |
---|
| 120 | information on any device currently present on the system; it also |
---|
| 121 | provides a way to query any device in the <systemitem |
---|
| 122 | class="filesystem">sysfs</systemitem> tree to help create udev |
---|
| 123 | rules</para> |
---|
| 124 | <indexterm zone="ch-system-udev udevinfo"> |
---|
| 125 | <primary sortas="b-udevinfo">udevinfo</primary> |
---|
| 126 | </indexterm> |
---|
| 127 | </listitem> |
---|
| 128 | </varlistentry> |
---|
| 129 | |
---|
| 130 | <varlistentry id="udevmonitor"> |
---|
| 131 | <term><command>udevmonitor</command></term> |
---|
| 132 | <listitem> |
---|
| 133 | <para>Prints the event received from the kernel and the event which |
---|
| 134 | <command>udev</command> sends out after rule processing</para> |
---|
| 135 | <indexterm zone="ch-system-udev udevmonitor"> |
---|
| 136 | <primary sortas="b-udevmonitor">udevmonitor</primary> |
---|
| 137 | </indexterm> |
---|
| 138 | </listitem> |
---|
| 139 | </varlistentry> |
---|
| 140 | |
---|
| 141 | <varlistentry id="udevtest"> |
---|
| 142 | <term><command>udevtest</command></term> |
---|
| 143 | <listitem> |
---|
| 144 | <para>Simulates a <command>udev</command> run for the given device, |
---|
| 145 | and prints out the name of the node the real <command>udev</command> |
---|
| 146 | would have created or (not in LFS) the name of the renamed network |
---|
| 147 | interface</para> |
---|
| 148 | <indexterm zone="ch-system-udev udevtest"> |
---|
| 149 | <primary sortas="b-udevtest">udevtest</primary> |
---|
| 150 | </indexterm> |
---|
| 151 | </listitem> |
---|
| 152 | </varlistentry> |
---|
| 153 | |
---|
| 154 | <varlistentry id="udevtrigger"> |
---|
| 155 | <term><command>udevtrigger</command></term> |
---|
| 156 | <listitem> |
---|
| 157 | <para>Walks the sysfs tree for devices that need to be added to the |
---|
| 158 | system.</para> |
---|
| 159 | <indexterm zone="ch-system-udev udevtrigger"> |
---|
| 160 | <primary sortas="b-udevtrigger">udevtrigger</primary> |
---|
| 161 | </indexterm> |
---|
| 162 | </listitem> |
---|
| 163 | </varlistentry> |
---|
| 164 | |
---|
| 165 | <varlistentry id="cdrom_id"> |
---|
| 166 | <term><command>cdrom_id</command></term> |
---|
| 167 | <listitem> |
---|
| 168 | <para>To be written</para> |
---|
| 169 | <indexterm zone="ch-system-udev cdrom_id"> |
---|
| 170 | <primary sortas="b-cdrom_id">cdrom_id</primary> |
---|
| 171 | </indexterm> |
---|
| 172 | </listitem> |
---|
| 173 | </varlistentry> |
---|
| 174 | |
---|
| 175 | <varlistentry id="firmware_helper"> |
---|
[634031b] | 176 | <term><command>firmware.sh</command></term> |
---|
[02095ae] | 177 | <listitem> |
---|
| 178 | <para>To be written</para> |
---|
| 179 | <indexterm zone="ch-system-udev firmware_helper"> |
---|
[634031b] | 180 | <primary sortas="b-firmware_helper">firmware.sh</primary> |
---|
[02095ae] | 181 | </indexterm> |
---|
| 182 | </listitem> |
---|
| 183 | </varlistentry> |
---|
| 184 | |
---|
| 185 | <varlistentry id="scsi_id"> |
---|
| 186 | <term><command>scsi_id</command></term> |
---|
| 187 | <listitem> |
---|
| 188 | <para>To be written</para> |
---|
| 189 | <indexterm zone="ch-system-udev scsi_id"> |
---|
| 190 | <primary sortas="b-scsi_id">scsi_id</primary> |
---|
| 191 | </indexterm> |
---|
| 192 | </listitem> |
---|
| 193 | </varlistentry> |
---|
| 194 | |
---|
| 195 | <varlistentry id="volume_id"> |
---|
| 196 | <term><command>volume_id</command></term> |
---|
| 197 | <listitem> |
---|
| 198 | <para>To be written</para> |
---|
| 199 | <indexterm zone="ch-system-udev volume_id"> |
---|
| 200 | <primary sortas="b-volume_id">volume_id</primary> |
---|
| 201 | </indexterm> |
---|
| 202 | </listitem> |
---|
| 203 | </varlistentry> |
---|
| 204 | |
---|
| 205 | <varlistentry id="ata_id"> |
---|
| 206 | <term><command>ata_id</command></term> |
---|
| 207 | <listitem> |
---|
| 208 | <para>To be written</para> |
---|
| 209 | <indexterm zone="ch-system-udev ata_id"> |
---|
| 210 | <primary sortas="b-volume_id">ata_id</primary> |
---|
| 211 | </indexterm> |
---|
| 212 | </listitem> |
---|
| 213 | </varlistentry> |
---|
| 214 | |
---|
| 215 | <varlistentry id="usb_id"> |
---|
| 216 | <term><command>usb_id</command></term> |
---|
| 217 | <listitem> |
---|
| 218 | <para>To be written</para> |
---|
| 219 | <indexterm zone="ch-system-udev usb_id"> |
---|
| 220 | <primary sortas="b-usb_id">usb_id</primary> |
---|
| 221 | </indexterm> |
---|
| 222 | </listitem> |
---|
| 223 | </varlistentry> |
---|
| 224 | |
---|
| 225 | <varlistentry id="edd_id"> |
---|
| 226 | <term><command>edd_id</command></term> |
---|
| 227 | <listitem> |
---|
| 228 | <para>To be written</para> |
---|
| 229 | <indexterm zone="ch-system-udev edd_id"> |
---|
| 230 | <primary sortas="b-edd_id">edd_id</primary> |
---|
| 231 | </indexterm> |
---|
| 232 | </listitem> |
---|
| 233 | </varlistentry> |
---|
| 234 | |
---|
| 235 | <varlistentry id="dasd_id"> |
---|
| 236 | <term><command>dasd_id</command></term> |
---|
| 237 | <listitem> |
---|
| 238 | <para>To be written</para> |
---|
| 239 | <indexterm zone="ch-system-udev dasd_id"> |
---|
| 240 | <primary sortas="b-dasd_id">dasd_id</primary> |
---|
| 241 | </indexterm> |
---|
| 242 | </listitem> |
---|
| 243 | </varlistentry> |
---|
| 244 | |
---|
| 245 | <varlistentry id="etc-udev"> |
---|
| 246 | <term><filename class="directory">/etc/udev</filename></term> |
---|
| 247 | <listitem> |
---|
| 248 | <para>Contains <command>udev</command> configuation files, |
---|
| 249 | device permissions, and rules for device naming</para> |
---|
| 250 | <indexterm zone="ch-system-udev etc-udev"> |
---|
| 251 | <primary sortas="e-/etc/udev">/etc/udev</primary> |
---|
| 252 | </indexterm> |
---|
| 253 | </listitem> |
---|
| 254 | </varlistentry> |
---|
| 255 | |
---|
| 256 | <varlistentry id="lib-udev"> |
---|
| 257 | <term><filename class="directory">/lib/udev</filename></term> |
---|
| 258 | <listitem> |
---|
| 259 | <para>Contains <command>udev</command> helper programs |
---|
| 260 | and static devices which get copied to /dev when booted.</para> |
---|
| 261 | <indexterm zone="ch-system-udev lib-udev"> |
---|
| 262 | <primary sortas="e-/lib/udev">/lib/udev</primary> |
---|
| 263 | </indexterm> |
---|
| 264 | </listitem> |
---|
| 265 | </varlistentry> |
---|
| 266 | </variablelist> |
---|
| 267 | |
---|
| 268 | </sect2> |
---|
| 269 | |
---|
| 270 | </sect1> |
---|