[9dfc02f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[9dfc02f] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
[3e36a78] | 4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
[9dfc02f] | 5 | %general-entities;
|
---|
[3e36a78] | 6 | %patches-entities;
|
---|
[9dfc02f] | 7 | ]>
|
---|
[a001133] | 8 | <sect1 id="ch-system-udev" role="wrap">
|
---|
[9dfc02f] | 9 | <title>Udev-&udev-version;</title>
|
---|
| 10 | <?dbhtml filename="udev.html"?>
|
---|
| 11 |
|
---|
[a001133] | 12 | <indexterm zone="ch-system-udev"><primary sortas="a-Udev">Udev</primary></indexterm>
|
---|
[9dfc02f] | 13 |
|
---|
[a001133] | 14 | <sect2 role="package"><title/>
|
---|
[81fd230] | 15 | <para>The Udev package contains programs for dynamic creation of device nodes.</para>
|
---|
[9dfc02f] | 16 |
|
---|
[a001133] | 17 | <segmentedlist>
|
---|
| 18 | <segtitle>&buildtime;</segtitle>
|
---|
| 19 | <segtitle>&diskspace;</segtitle>
|
---|
[6c511d85] | 20 | <seglistitem><seg>0.1 SBU</seg><seg>3.8 MB</seg></seglistitem>
|
---|
[a001133] | 21 | </segmentedlist>
|
---|
[9dfc02f] | 22 |
|
---|
[81fd230] | 23 | <segmentedlist>
|
---|
[45992ae] | 24 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 25 | <seglistitem><seg>Coreutils and Make</seg></seglistitem>
|
---|
| 26 | </segmentedlist>
|
---|
| 27 |
|
---|
[a001133] | 28 | </sect2>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="installation">
|
---|
[9dfc02f] | 31 | <title>Installation of Udev</title>
|
---|
| 32 |
|
---|
[81fd230] | 33 | <para>Compile the package:</para>
|
---|
[9dfc02f] | 34 |
|
---|
| 35 | <screen><userinput>make udevdir=/dev</userinput></screen>
|
---|
| 36 |
|
---|
[81fd230] | 37 | <variablelist>
|
---|
| 38 | <varlistentry>
|
---|
| 39 | <term><parameter>udevdir=/dev</parameter></term>
|
---|
| 40 | <listitem><para>This tells <command>udev</command> in which directory
|
---|
| 41 | devices nodes are to be created.</para></listitem>
|
---|
| 42 | </varlistentry>
|
---|
| 43 | </variablelist>
|
---|
| 44 |
|
---|
[317b76b] | 45 | <para>To test the results, issue:
|
---|
[5f6ad4e] | 46 | <userinput>make test</userinput>.</para>
|
---|
[81fd230] | 47 |
|
---|
| 48 | <para>Install the package:</para>
|
---|
[9dfc02f] | 49 |
|
---|
[4b31e82] | 50 | <screen><userinput>make udevdir=/dev install</userinput></screen>
|
---|
[9dfc02f] | 51 |
|
---|
[81fd230] | 52 | <para>Udev's configuration is far from ideal by default, so install
|
---|
| 53 | the configuration files here:</para>
|
---|
[18da154] | 54 |
|
---|
[a52dc7e] | 55 | <screen><userinput>cp ../udev-config-3.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen>
|
---|
[18da154] | 56 |
|
---|
[7eac3e32] | 57 | <para>Install the documentation that explains how to create Udev rules:</para>
|
---|
| 58 |
|
---|
| 59 | <screen><userinput>install -m644 -D docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
|
---|
| 60 |
|
---|
[81fd230] | 61 | <!-- Edit Me -->
|
---|
| 62 | <para>Run the <command>udevstart</command> program to create our full
|
---|
[09bd7b3] | 63 | complement of device nodes.</para>
|
---|
[6135b95] | 64 |
|
---|
| 65 | <screen><userinput>/sbin/udevstart</userinput></screen>
|
---|
| 66 |
|
---|
[9dfc02f] | 67 | </sect2>
|
---|
| 68 |
|
---|
[c6cb3aa] | 69 | <sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
|
---|
[9dfc02f] | 70 |
|
---|
[81fd230] | 71 | <segmentedlist>
|
---|
| 72 | <segtitle>Installed programs</segtitle>
|
---|
| 73 | <segtitle>Installed directory</segtitle>
|
---|
[6c511d85] | 74 | <seglistitem><seg>udev, udevcontrol, udevd, udevinfo, udevmonitor, udevsend, udevstart and udevtest</seg>
|
---|
[81fd230] | 75 | <seg>/etc/udev</seg></seglistitem>
|
---|
| 76 | </segmentedlist>
|
---|
[32324418] | 77 |
|
---|
[81fd230] | 78 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 79 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 80 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 81 |
|
---|
| 82 | <varlistentry id="udev">
|
---|
| 83 | <term><command>udev</command></term>
|
---|
| 84 | <listitem>
|
---|
| 85 | <para>Creates device nodes in <filename
|
---|
| 86 | class="directory">/dev</filename> or renames network interfaces (not
|
---|
| 87 | in LFS) in response to hotplug events</para>
|
---|
| 88 | <indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
|
---|
| 89 | </listitem></varlistentry>
|
---|
| 90 |
|
---|
[6c511d85] | 91 | <varlistentry id="udevcontrol">
|
---|
| 92 | <term><command>udevcontrol</command></term>
|
---|
| 93 | <listitem>
|
---|
| 94 | <para>Configures a number of options for the running <command>udevd</command>
|
---|
| 95 | daemon, such as the log level.</para>
|
---|
| 96 | <indexterm zone="ch-system-udev udevcontrol"><primary sortas="b-udevcontrol">udevcontrol</primary>
|
---|
| 97 | </indexterm>
|
---|
| 98 | </listitem></varlistentry>
|
---|
| 99 |
|
---|
[81fd230] | 100 | <varlistentry id="udevd">
|
---|
| 101 | <term><command>udevd</command></term>
|
---|
| 102 | <listitem>
|
---|
| 103 | <para>A daemon that reorders hotplug events before submitting them to
|
---|
| 104 | <command>udev</command>,
|
---|
| 105 | thus avoiding various race conditions</para>
|
---|
| 106 | <indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
|
---|
| 107 | </listitem></varlistentry>
|
---|
| 108 |
|
---|
[6c511d85] | 109 | <varlistentry id="udevinfo">
|
---|
| 110 | <term><command>udevinfo</command></term>
|
---|
| 111 | <listitem>
|
---|
| 112 | <para>Allows users to query the <command>udev</command> database for
|
---|
| 113 | information on any device currently present on the system; it also
|
---|
| 114 | provides a way to query any device in the <systemitem
|
---|
| 115 | class="filesystem">sysfs</systemitem> tree to help create udev
|
---|
| 116 | rules</para>
|
---|
| 117 | <indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
|
---|
| 118 | </listitem></varlistentry>
|
---|
| 119 |
|
---|
| 120 | <varlistentry id="udevmonitor">
|
---|
| 121 | <term><command>udevmonitor</command></term>
|
---|
| 122 | <listitem>
|
---|
| 123 | <para>Prints the event received from the kernel and the event which
|
---|
| 124 | <command>udev</command> sends out after rule processing</para>
|
---|
| 125 | <indexterm zone="ch-system-udev udevmonitor"><primary sortas="b-udevmonitor">udevmonitor</primary>
|
---|
| 126 | </indexterm>
|
---|
| 127 | </listitem></varlistentry>
|
---|
| 128 |
|
---|
[81fd230] | 129 | <varlistentry id="udevsend">
|
---|
| 130 | <term><command>udevsend</command></term>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>Delivers hotplug events to <command>udevd</command></para>
|
---|
| 133 | <indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
|
---|
| 134 | </listitem></varlistentry>
|
---|
| 135 |
|
---|
| 136 | <varlistentry id="udevstart">
|
---|
| 137 | <term><command>udevstart</command></term>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>Creates device nodes in <filename
|
---|
| 140 | class="directory">/dev</filename> that correspond to drivers compiled directly
|
---|
| 141 | into the kernel; it performs that task by simulating hotplug events presumably
|
---|
| 142 | dropped by the kernel before invocation of this program (e.g., because the root
|
---|
| 143 | filesystem has not been mounted) and submitting such synthetic hotplug events
|
---|
| 144 | to <command>udev</command></para>
|
---|
| 145 | <indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
|
---|
| 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="udevtest">
|
---|
| 150 | <term><command>udevtest</command></term>
|
---|
| 151 | <listitem>
|
---|
| 152 | <para>Simulates a <command>udev</command> run for the given device,
|
---|
| 153 | and prints out the name of the node the real <command>udev</command> would
|
---|
| 154 | have created or (not in LFS) the name of the renamed network interface</para>
|
---|
| 155 | <indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
|
---|
| 156 | </listitem></varlistentry>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="etc-udev">
|
---|
| 159 | <term><filename class="directory">/etc/udev</filename></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>Contains <command>udev</command> configuation files,
|
---|
| 162 | device permissions, and rules for device naming</para>
|
---|
[32b21a1] | 163 | <indexterm zone="ch-system-udev etc-udev"><primary sortas="e-/etc/udev">/etc/udev</primary></indexterm>
|
---|
[81fd230] | 164 | </listitem></varlistentry>
|
---|
| 165 | </variablelist>
|
---|
[32324418] | 166 | </sect2>
|
---|
[9dfc02f] | 167 |
|
---|
| 168 | </sect1>
|
---|
[81fd230] | 169 |
|
---|