[9dfc02f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 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/>
|
---|
[32324418] | 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>
|
---|
| 18 | <seglistitem><seg>0.2 SBU</seg><seg>5.2 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
[9dfc02f] | 20 |
|
---|
[ef13657] | 21 | <segmentedlist>
|
---|
| 22 | <segtitle>Udev installation depends on</segtitle>
|
---|
[69993f4] | 23 | <seglistitem><seg>Coreutils and Make</seg></seglistitem>
|
---|
[ef13657] | 24 | </segmentedlist>
|
---|
| 25 |
|
---|
[a001133] | 26 | </sect2>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="installation">
|
---|
[9dfc02f] | 29 | <title>Installation of Udev</title>
|
---|
| 30 |
|
---|
[ef13657] | 31 | <para>Compile Udev:</para>
|
---|
[9dfc02f] | 32 |
|
---|
| 33 | <screen><userinput>make udevdir=/dev</userinput></screen>
|
---|
| 34 |
|
---|
[15afe874] | 35 | <variablelist>
|
---|
| 36 | <varlistentry>
|
---|
| 37 | <term><parameter>udevdir=/dev</parameter></term>
|
---|
[ef13657] | 38 | <listitem><para>This tells <command>udev</command> in which directory
|
---|
| 39 | devices nodes are to be created.</para></listitem>
|
---|
[15afe874] | 40 | </varlistentry>
|
---|
| 41 | </variablelist>
|
---|
| 42 |
|
---|
[0cb7f8b] | 43 | <para>This package does not come with a test suite.</para>
|
---|
| 44 |
|
---|
[ef13657] | 45 | <para>Install the package:</para>
|
---|
[9dfc02f] | 46 |
|
---|
| 47 | <screen><userinput>make udevdir=/dev install</userinput></screen>
|
---|
| 48 |
|
---|
[69993f4] | 49 | <para>Udev's configuration is far from ideal by default, so install
|
---|
| 50 | the configuration files here:</para>
|
---|
[18da154] | 51 |
|
---|
[00cc7ce] | 52 | <screen><userinput>cp ../udev-config-2.permissions \
|
---|
| 53 | /etc/udev/permissions.d/25-lfs.permissions
|
---|
[3d17ed6] | 54 | cp ../udev-config-1.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen>
|
---|
[18da154] | 55 |
|
---|
[9dfc02f] | 56 | </sect2>
|
---|
| 57 |
|
---|
[c6cb3aa] | 58 | <sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
|
---|
[9dfc02f] | 59 |
|
---|
[32324418] | 60 | <segmentedlist>
|
---|
| 61 | <segtitle>Installed programs</segtitle>
|
---|
[69993f4] | 62 | <seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, and udevtest</seg></seglistitem>
|
---|
[32324418] | 63 | </segmentedlist>
|
---|
| 64 |
|
---|
[3ed279f] | 65 | <variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
|
---|
| 66 | <?dbfo list-presentation="list"?>
|
---|
[32324418] | 67 |
|
---|
| 68 | <varlistentry id="udev">
|
---|
| 69 | <term><command>udev</command></term>
|
---|
[3ed279f] | 70 | <listitem>
|
---|
[69993f4] | 71 | <para>creates device nodes in <filename
|
---|
| 72 | class="directory">/dev</filename> or renames network interfaces (not
|
---|
[ef13657] | 73 | in LFS) in response to hotplug events.</para>
|
---|
[3ed279f] | 74 | <indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
|
---|
[32324418] | 75 | </listitem></varlistentry>
|
---|
| 76 |
|
---|
| 77 | <varlistentry id="udevd">
|
---|
| 78 | <term><command>udevd</command></term>
|
---|
[3ed279f] | 79 | <listitem>
|
---|
[69993f4] | 80 | <para>a daemon that reorders hotplug events before submitting them to
|
---|
[32324418] | 81 | <command>udev</command>,
|
---|
| 82 | thus avoiding various race conditions.</para>
|
---|
[3ed279f] | 83 | <indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
|
---|
[32324418] | 84 | </listitem></varlistentry>
|
---|
| 85 |
|
---|
| 86 | <varlistentry id="udevsend">
|
---|
| 87 | <term><command>udevsend</command></term>
|
---|
[3ed279f] | 88 | <listitem>
|
---|
[69993f4] | 89 | <para>delivers hotplug events to <command>udevd</command>.</para>
|
---|
[3ed279f] | 90 | <indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
|
---|
[32324418] | 91 | </listitem></varlistentry>
|
---|
| 92 |
|
---|
| 93 | <varlistentry id="udevstart">
|
---|
| 94 | <term><command>udevstart</command></term>
|
---|
[3ed279f] | 95 | <listitem>
|
---|
[69993f4] | 96 | <para>creates device nodes in <filename
|
---|
[32324418] | 97 | class="directory">/dev</filename> that correspond to drivers compiled directly
|
---|
| 98 | into the kernel. It performs that task by simulating hotplug events presumably
|
---|
[69993f4] | 99 | dropped by the kernel before invocation of this program (e.g., because the root
|
---|
[32324418] | 100 | filesystem has not been mounted) and submitting such synthetic hotplug events
|
---|
| 101 | to <command>udev</command>.</para>
|
---|
[3ed279f] | 102 | <indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
|
---|
[32324418] | 103 | </listitem>
|
---|
| 104 | </varlistentry>
|
---|
| 105 |
|
---|
| 106 | <varlistentry id="udevinfo">
|
---|
| 107 | <term><command>udevinfo</command></term>
|
---|
[3ed279f] | 108 | <listitem>
|
---|
[32324418] | 109 | <para>allows users to query the <command>udev</command> database for
|
---|
| 110 | information on any device currently present on the system. It also
|
---|
[ef13657] | 111 | provides a way to query any device in the <systemitem
|
---|
[69993f4] | 112 | class="filesystem">sysfs</systemitem> tree to help create udev
|
---|
[32324418] | 113 | rules.</para>
|
---|
[3ed279f] | 114 | <indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
|
---|
[32324418] | 115 | </listitem></varlistentry>
|
---|
| 116 |
|
---|
| 117 | <varlistentry id="udevtest">
|
---|
| 118 | <term><command>udevtest</command></term>
|
---|
[3ed279f] | 119 | <listitem>
|
---|
[32324418] | 120 | <para>simulates a <command>udev</command> run for the given device,
|
---|
| 121 | and prints out the name of the node the real <command>udev</command> would
|
---|
[69993f4] | 122 | have created or (not in LFS) the name of the renamed network interface.</para>
|
---|
[3ed279f] | 123 | <indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
|
---|
[32324418] | 124 | </listitem></varlistentry>
|
---|
| 125 |
|
---|
| 126 | <varlistentry id="etc-dev-d">
|
---|
| 127 | <term><filename class="directory">/etc/dev.d</filename></term>
|
---|
[3ed279f] | 128 | <listitem>
|
---|
[69993f4] | 129 | <para>contains user-written handlers for device
|
---|
[32324418] | 130 | creation hotplug events.</para>
|
---|
[3ed279f] | 131 | <indexterm zone="ch-system-udev etc-dev-d"><primary sortas="e-etc-dev-d">/etc/dev.d</primary></indexterm>
|
---|
[32324418] | 132 | </listitem></varlistentry>
|
---|
| 133 |
|
---|
| 134 | <varlistentry id="etc-udev">
|
---|
| 135 | <term><filename class="directory">/etc/udev</filename></term>
|
---|
[3ed279f] | 136 | <listitem>
|
---|
[69993f4] | 137 | <para>contains <command>udev</command> configuation files,
|
---|
| 138 | device permissions, and rules for device naming.</para>
|
---|
[3ed279f] | 139 | <indexterm zone="ch-system-udev etc-udev"><primary sortas="e-etc-udev">/etc/udev</primary></indexterm>
|
---|
[32324418] | 140 | </listitem></varlistentry>
|
---|
| 141 | </variablelist>
|
---|
| 142 | </sect2>
|
---|
[9dfc02f] | 143 |
|
---|
| 144 | </sect1>
|
---|
[ef13657] | 145 |
|
---|