[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>
|
---|
[99654e8] | 20 | <seglistitem><seg>0.1 SBU</seg><seg>2.7 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 |
|
---|
[81fd230] | 57 | <!-- Edit Me -->
|
---|
| 58 | <para>Run the <command>udevstart</command> program to create our full
|
---|
[09bd7b3] | 59 | complement of device nodes.</para>
|
---|
[6135b95] | 60 |
|
---|
| 61 | <screen><userinput>/sbin/udevstart</userinput></screen>
|
---|
| 62 |
|
---|
[9dfc02f] | 63 | </sect2>
|
---|
| 64 |
|
---|
[c6cb3aa] | 65 | <sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
|
---|
[9dfc02f] | 66 |
|
---|
[81fd230] | 67 | <segmentedlist>
|
---|
| 68 | <segtitle>Installed programs</segtitle>
|
---|
| 69 | <segtitle>Installed directory</segtitle>
|
---|
| 70 | <seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, and udevtest</seg>
|
---|
| 71 | <seg>/etc/udev</seg></seglistitem>
|
---|
| 72 | </segmentedlist>
|
---|
[32324418] | 73 |
|
---|
[81fd230] | 74 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 75 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 76 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 77 |
|
---|
| 78 | <varlistentry id="udev">
|
---|
| 79 | <term><command>udev</command></term>
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>Creates device nodes in <filename
|
---|
| 82 | class="directory">/dev</filename> or renames network interfaces (not
|
---|
| 83 | in LFS) in response to hotplug events</para>
|
---|
| 84 | <indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
|
---|
| 85 | </listitem></varlistentry>
|
---|
| 86 |
|
---|
| 87 | <varlistentry id="udevd">
|
---|
| 88 | <term><command>udevd</command></term>
|
---|
| 89 | <listitem>
|
---|
| 90 | <para>A daemon that reorders hotplug events before submitting them to
|
---|
| 91 | <command>udev</command>,
|
---|
| 92 | thus avoiding various race conditions</para>
|
---|
| 93 | <indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
|
---|
| 94 | </listitem></varlistentry>
|
---|
| 95 |
|
---|
| 96 | <varlistentry id="udevsend">
|
---|
| 97 | <term><command>udevsend</command></term>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>Delivers hotplug events to <command>udevd</command></para>
|
---|
| 100 | <indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
|
---|
| 101 | </listitem></varlistentry>
|
---|
| 102 |
|
---|
| 103 | <varlistentry id="udevstart">
|
---|
| 104 | <term><command>udevstart</command></term>
|
---|
| 105 | <listitem>
|
---|
| 106 | <para>Creates device nodes in <filename
|
---|
| 107 | class="directory">/dev</filename> that correspond to drivers compiled directly
|
---|
| 108 | into the kernel; it performs that task by simulating hotplug events presumably
|
---|
| 109 | dropped by the kernel before invocation of this program (e.g., because the root
|
---|
| 110 | filesystem has not been mounted) and submitting such synthetic hotplug events
|
---|
| 111 | to <command>udev</command></para>
|
---|
| 112 | <indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></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"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
|
---|
| 125 | </listitem></varlistentry>
|
---|
| 126 |
|
---|
| 127 | <varlistentry id="udevtest">
|
---|
| 128 | <term><command>udevtest</command></term>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para>Simulates a <command>udev</command> run for the given device,
|
---|
| 131 | and prints out the name of the node the real <command>udev</command> would
|
---|
| 132 | have created or (not in LFS) the name of the renamed network interface</para>
|
---|
| 133 | <indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
|
---|
| 134 | </listitem></varlistentry>
|
---|
| 135 |
|
---|
| 136 | <varlistentry id="etc-udev">
|
---|
| 137 | <term><filename class="directory">/etc/udev</filename></term>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>Contains <command>udev</command> configuation files,
|
---|
| 140 | device permissions, and rules for device naming</para>
|
---|
[32b21a1] | 141 | <indexterm zone="ch-system-udev etc-udev"><primary sortas="e-/etc/udev">/etc/udev</primary></indexterm>
|
---|
[81fd230] | 142 | </listitem></varlistentry>
|
---|
| 143 | </variablelist>
|
---|
[32324418] | 144 | </sect2>
|
---|
[9dfc02f] | 145 |
|
---|
| 146 | </sect1>
|
---|
[81fd230] | 147 |
|
---|