[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>
|
---|
| 23 | <seglistitem><seg>Coreutils, Make</seg></seglistitem>
|
---|
| 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 |
|
---|
[ef13657] | 43 | <para>Install the package:</para>
|
---|
[9dfc02f] | 44 |
|
---|
| 45 | <screen><userinput>make udevdir=/dev install</userinput></screen>
|
---|
| 46 |
|
---|
[18da154] | 47 | <para>Udev's configuration is far from ideal by default, so we install our own
|
---|
| 48 | configuration files here:</para>
|
---|
| 49 |
|
---|
[0141195] | 50 | <screen><userinput>cp ../udev-config-2.permissions /etc/udev/permissions.d/00-lfs.permissions
|
---|
[18da154] | 51 | cp ../udev-config-1.rules /etc/udev/rules.d/00-lfs.rules</userinput></screen>
|
---|
| 52 |
|
---|
[9dfc02f] | 53 | </sect2>
|
---|
| 54 |
|
---|
[c6cb3aa] | 55 | <sect2 id="contents-udev" role="content"><title>Contents of Udev</title>
|
---|
[9dfc02f] | 56 |
|
---|
[32324418] | 57 | <segmentedlist>
|
---|
| 58 | <segtitle>Installed programs</segtitle>
|
---|
| 59 | <seglistitem><seg>udev, udevd, udevsend, udevstart, udevinfo, udevtest</seg></seglistitem>
|
---|
| 60 | </segmentedlist>
|
---|
| 61 |
|
---|
| 62 | <variablelist><title>Short descriptions</title>
|
---|
| 63 |
|
---|
| 64 | <varlistentry id="udev">
|
---|
| 65 | <term><command>udev</command></term>
|
---|
[ef13657] | 66 | <listitem><indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
|
---|
[32324418] | 67 | <para>is used to create device nodes in <filename
|
---|
[ef13657] | 68 | class="directory">/dev</filename> or to rename network interfaces (not
|
---|
| 69 | in LFS) in response to hotplug events.</para>
|
---|
[32324418] | 70 | </listitem></varlistentry>
|
---|
| 71 |
|
---|
| 72 | <varlistentry id="udevd">
|
---|
| 73 | <term><command>udevd</command></term>
|
---|
[ef13657] | 74 | <listitem> <indexterm zone="ch-system-udev udevd"><primary sortas="b-udevd">udevd</primary></indexterm>
|
---|
[32324418] | 75 | <para>is a daemon that reorders hotplug events before submitting them to
|
---|
| 76 | <command>udev</command>,
|
---|
| 77 | thus avoiding various race conditions.</para>
|
---|
| 78 | </listitem></varlistentry>
|
---|
| 79 |
|
---|
| 80 | <varlistentry id="udevsend">
|
---|
| 81 | <term><command>udevsend</command></term>
|
---|
[ef13657] | 82 | <listitem> <indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
|
---|
[32324418] | 83 | <para>is used to deliver hotplug events to <command>udevd</command>.</para>
|
---|
| 84 | </listitem></varlistentry>
|
---|
| 85 |
|
---|
| 86 | <varlistentry id="udevstart">
|
---|
| 87 | <term><command>udevstart</command></term>
|
---|
[ef13657] | 88 | <listitem> <indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
|
---|
[32324418] | 89 | <para>is used to create device nodes in <filename
|
---|
| 90 | class="directory">/dev</filename> that correspond to drivers compiled directly
|
---|
| 91 | into the kernel. It performs that task by simulating hotplug events presumably
|
---|
| 92 | dropped by the kernel before invocation of this program (e.g. because the root
|
---|
| 93 | filesystem has not been mounted) and submitting such synthetic hotplug events
|
---|
| 94 | to <command>udev</command>.</para>
|
---|
| 95 | </listitem>
|
---|
| 96 | </varlistentry>
|
---|
| 97 |
|
---|
| 98 | <varlistentry id="udevinfo">
|
---|
| 99 | <term><command>udevinfo</command></term>
|
---|
[ef13657] | 100 | <listitem> <indexterm zone="ch-system-udev udevinfo"><primary sortas="b-udevinfo">udevinfo</primary></indexterm>
|
---|
[32324418] | 101 | <para>allows users to query the <command>udev</command> database for
|
---|
| 102 | information on any device currently present on the system. It also
|
---|
[ef13657] | 103 | provides a way to query any device in the <systemitem
|
---|
| 104 | class="filesystem">sysfs</systemitem> tree to help creating udev
|
---|
[32324418] | 105 | rules.</para>
|
---|
| 106 | </listitem></varlistentry>
|
---|
| 107 |
|
---|
| 108 | <varlistentry id="udevtest">
|
---|
| 109 | <term><command>udevtest</command></term>
|
---|
[ef13657] | 110 | <listitem> <indexterm zone="ch-system-udev udevtest"><primary sortas="b-udevtest">udevtest</primary></indexterm>
|
---|
[32324418] | 111 | <para>simulates a <command>udev</command> run for the given device,
|
---|
| 112 | and prints out the name of the node the real <command>udev</command> would
|
---|
| 113 | have created, or (not in LFS) the name of the renamed network interface.</para>
|
---|
| 114 | </listitem></varlistentry>
|
---|
| 115 |
|
---|
| 116 | <varlistentry id="etc-dev-d">
|
---|
| 117 | <term><filename class="directory">/etc/dev.d</filename></term>
|
---|
[ef13657] | 118 | <listitem> <indexterm zone="ch-system-udev etc-dev-d"><primary sortas="e-etc-dev-d">/etc/dev.d</primary></indexterm>
|
---|
| 119 | <para>directory contains user-written handlers for device
|
---|
[32324418] | 120 | creation hotplug events.</para>
|
---|
| 121 | </listitem></varlistentry>
|
---|
| 122 |
|
---|
| 123 | <varlistentry id="etc-udev">
|
---|
| 124 | <term><filename class="directory">/etc/udev</filename></term>
|
---|
[ef13657] | 125 | <listitem> <indexterm zone="ch-system-udev etc-udev"><primary sortas="e-etc-udev">/etc/udev</primary></indexterm>
|
---|
[32324418] | 126 | <para>directory contains <command>udev</command> configuation files,
|
---|
| 127 | device permissions and rules for device naming.</para>
|
---|
| 128 | </listitem></varlistentry>
|
---|
| 129 | </variablelist>
|
---|
| 130 | </sect2>
|
---|
[9dfc02f] | 131 |
|
---|
| 132 | </sect1>
|
---|
[ef13657] | 133 |
|
---|