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