[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 |
|
---|
[4fd2af1] | 35 | <screen><userinput>make</userinput></screen>
|
---|
[81fd230] | 36 |
|
---|
[317b76b] | 37 | <para>To test the results, issue:
|
---|
[5f6ad4e] | 38 | <userinput>make test</userinput>.</para>
|
---|
[81fd230] | 39 |
|
---|
| 40 | <para>Install the package:</para>
|
---|
[9dfc02f] | 41 |
|
---|
[4fd2af1] | 42 | <screen><userinput>make install</userinput></screen>
|
---|
[9dfc02f] | 43 |
|
---|
[81fd230] | 44 | <para>Udev's configuration is far from ideal by default, so install
|
---|
| 45 | the configuration files here:</para>
|
---|
[18da154] | 46 |
|
---|
[1846700] | 47 | <screen><userinput>cp -v ../udev-config-4.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen>
|
---|
[18da154] | 48 |
|
---|
[7eac3e32] | 49 | <para>Install the documentation that explains how to create Udev rules:</para>
|
---|
| 50 |
|
---|
[5998892] | 51 | <screen><userinput>install -m644 -D -v docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
|
---|
[7eac3e32] | 52 |
|
---|
[81fd230] | 53 | <!-- Edit Me -->
|
---|
| 54 | <para>Run the <command>udevstart</command> program to create our full
|
---|
[09bd7b3] | 55 | complement of device nodes.</para>
|
---|
[6135b95] | 56 |
|
---|
| 57 | <screen><userinput>/sbin/udevstart</userinput></screen>
|
---|
| 58 |
|
---|
[9dfc02f] | 59 | </sect2>
|
---|
| 60 |
|
---|
[c6cb3aa] | 61 | <sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
|
---|
[9dfc02f] | 62 |
|
---|
[81fd230] | 63 | <segmentedlist>
|
---|
| 64 | <segtitle>Installed programs</segtitle>
|
---|
| 65 | <segtitle>Installed directory</segtitle>
|
---|
[6c511d85] | 66 | <seglistitem><seg>udev, udevcontrol, udevd, udevinfo, udevmonitor, udevsend, udevstart and udevtest</seg>
|
---|
[81fd230] | 67 | <seg>/etc/udev</seg></seglistitem>
|
---|
| 68 | </segmentedlist>
|
---|
[32324418] | 69 |
|
---|
[81fd230] | 70 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 71 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 72 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 73 |
|
---|
| 74 | <varlistentry id="udev">
|
---|
| 75 | <term><command>udev</command></term>
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>Creates device nodes in <filename
|
---|
| 78 | class="directory">/dev</filename> or renames network interfaces (not
|
---|
| 79 | in LFS) in response to hotplug events</para>
|
---|
| 80 | <indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
|
---|
| 81 | </listitem></varlistentry>
|
---|
| 82 |
|
---|
[6c511d85] | 83 | <varlistentry id="udevcontrol">
|
---|
| 84 | <term><command>udevcontrol</command></term>
|
---|
| 85 | <listitem>
|
---|
| 86 | <para>Configures a number of options for the running <command>udevd</command>
|
---|
| 87 | daemon, such as the log level.</para>
|
---|
| 88 | <indexterm zone="ch-system-udev udevcontrol"><primary sortas="b-udevcontrol">udevcontrol</primary>
|
---|
| 89 | </indexterm>
|
---|
| 90 | </listitem></varlistentry>
|
---|
| 91 |
|
---|
[81fd230] | 92 | <varlistentry id="udevd">
|
---|
| 93 | <term><command>udevd</command></term>
|
---|
| 94 | <listitem>
|
---|
| 95 | <para>A daemon that reorders hotplug events before submitting them to
|
---|
| 96 | <command>udev</command>,
|
---|
| 97 | thus avoiding various race conditions</para>
|
---|
| 98 | <indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
|
---|
| 99 | </listitem></varlistentry>
|
---|
| 100 |
|
---|
[6c511d85] | 101 | <varlistentry id="udevinfo">
|
---|
| 102 | <term><command>udevinfo</command></term>
|
---|
| 103 | <listitem>
|
---|
| 104 | <para>Allows users to query the <command>udev</command> database for
|
---|
| 105 | information on any device currently present on the system; it also
|
---|
| 106 | provides a way to query any device in the <systemitem
|
---|
| 107 | class="filesystem">sysfs</systemitem> tree to help create udev
|
---|
| 108 | rules</para>
|
---|
| 109 | <indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
|
---|
| 110 | </listitem></varlistentry>
|
---|
| 111 |
|
---|
| 112 | <varlistentry id="udevmonitor">
|
---|
| 113 | <term><command>udevmonitor</command></term>
|
---|
| 114 | <listitem>
|
---|
| 115 | <para>Prints the event received from the kernel and the event which
|
---|
| 116 | <command>udev</command> sends out after rule processing</para>
|
---|
| 117 | <indexterm zone="ch-system-udev udevmonitor"><primary sortas="b-udevmonitor">udevmonitor</primary>
|
---|
| 118 | </indexterm>
|
---|
| 119 | </listitem></varlistentry>
|
---|
| 120 |
|
---|
[81fd230] | 121 | <varlistentry id="udevsend">
|
---|
| 122 | <term><command>udevsend</command></term>
|
---|
| 123 | <listitem>
|
---|
| 124 | <para>Delivers hotplug events to <command>udevd</command></para>
|
---|
| 125 | <indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
|
---|
| 126 | </listitem></varlistentry>
|
---|
| 127 |
|
---|
| 128 | <varlistentry id="udevstart">
|
---|
| 129 | <term><command>udevstart</command></term>
|
---|
| 130 | <listitem>
|
---|
| 131 | <para>Creates device nodes in <filename
|
---|
| 132 | class="directory">/dev</filename> that correspond to drivers compiled directly
|
---|
| 133 | into the kernel; it performs that task by simulating hotplug events presumably
|
---|
| 134 | dropped by the kernel before invocation of this program (e.g., because the root
|
---|
| 135 | filesystem has not been mounted) and submitting such synthetic hotplug events
|
---|
| 136 | to <command>udev</command></para>
|
---|
| 137 | <indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></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> would
|
---|
| 146 | have created or (not in LFS) the name of the renamed network interface</para>
|
---|
| 147 | <indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
|
---|
| 148 | </listitem></varlistentry>
|
---|
| 149 |
|
---|
| 150 | <varlistentry id="etc-udev">
|
---|
| 151 | <term><filename class="directory">/etc/udev</filename></term>
|
---|
| 152 | <listitem>
|
---|
| 153 | <para>Contains <command>udev</command> configuation files,
|
---|
| 154 | device permissions, and rules for device naming</para>
|
---|
[32b21a1] | 155 | <indexterm zone="ch-system-udev etc-udev"><primary sortas="e-/etc/udev">/etc/udev</primary></indexterm>
|
---|
[81fd230] | 156 | </listitem></varlistentry>
|
---|
| 157 | </variablelist>
|
---|
[32324418] | 158 | </sect2>
|
---|
[9dfc02f] | 159 |
|
---|
| 160 | </sect1>
|
---|
[81fd230] | 161 |
|
---|