source: BOOK/boot/common/eudev.xml@ 2805028

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2805028 was 8876eda, checked in by Chris Staub <chris@…>, 11 years ago

Removed obsolete LDFLAGS variable from eudev instructions

  • Property mode set to 100644
File size: 9.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-boot-eudev" role="wrap">
9 <?dbhtml filename="eudev.html"?>
10
11 <title>Eudev-&eudev-version;</title>
12
13 <indexterm zone="ch-boot-eudev">
14 <primary sortas="a-Eudev">Eudev</primary>
15 <secondary>boot</secondary>
16 </indexterm>
17
18 <sect2 role="package">
19 <title/>
20
21 <para>The Eudev package contains programs for dynamic creation of device
22 nodes.</para>
23
24 </sect2>
25
26 <sect2 role="installation">
27 <title>Installation of Eudev</title>
28
29 <para os="a">Prepare Eudev for compilation:</para>
30
31<screen os="b"><userinput>BLKID_CFLAGS="-I/tools/include" BLKID_LIBS="-L/tools/lib -lblkid" \
32 KMOD_CFLAGS="-I/tools/include/" KMOD_LIBS="-L/tools/lib -lkmod" \
33 ./configure --prefix=/tools --build=${CLFS_HOST} --host=${CLFS_TARGET} \
34 --disable-introspection --disable-gtk-doc-html \
35 --disable-gudev --disable-keymap --with-firmware-path=/lib/firmware \
36 --enable-libkmod</userinput></screen>
37
38 <para os="c">Compile the package:</para>
39
40<screen os="d"><userinput>make</userinput></screen>
41
42 <para os="g">Install the package:</para>
43
44<screen os="j"><userinput>make install</userinput></screen>
45
46 <para os="i">Create a directory for storing firmware that can be
47 loaded by <command>udev</command>:</para>
48
49<screen os="k"><userinput>install -dv ${CLFS}/lib/firmware</userinput></screen>
50
51 <para os="r1">Create a dummy rule so that Eudev will name ethernet devices properly for the system.</para>
52
53<screen os="r2"><userinput>echo "# dummy, so that network is once again on eth*" \
54> /tools/etc/udev/rules.d/80-net-name-slot.rules</userinput></screen>
55
56 </sect2>
57
58 <sect2 id="contents-eudev" role="content">
59 <title>Contents of Eudev</title>
60
61 <segmentedlist>
62 <segtitle>Installed programs</segtitle>
63 <segtitle>Installed library</segtitle>
64 <segtitle>Installed directories</segtitle>
65
66 <seglistitem>
67 <seg>ata_id, cdrom_id, collect, create_floppy_devices, edd_id,
68 firmware.sh, fstab_import, path_id, scsi_id, udevadm, udevd, usb_id,
69 v4l_id, write_cd_rules, write_net_rules</seg>
70 <seg>libudev</seg>
71 <seg>/etc/udev, /lib/firmware, /lib/udev, /usr/share/doc/udev</seg>
72 </seglistitem>
73 </segmentedlist>
74
75 <variablelist>
76 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
77 <?dbfo list-presentation="list"?>
78 <?dbhtml list-presentation="table"?>
79
80 <varlistentry id="udevadm">
81 <term><command>udevadm</command></term>
82 <listitem>
83 <para>Controls the runtime behavior of Eudev, requests kernel
84 events, manages the event queue, and provides simple debugging.</para>
85 <indexterm zone="ch-boot-eudev udevadm">
86 <primary sortas="b-udevadm">udevadm</primary>
87 </indexterm>
88 </listitem>
89 </varlistentry>
90
91 <varlistentry id="udevd">
92 <term><command>udevd</command></term>
93 <listitem>
94 <para>A daemon that reorders hotplug events before submitting them to
95 <command>udev</command>,
96 thus avoiding various race conditions</para>
97 <indexterm zone="ch-boot-eudev udevd">
98 <primary sortas="b-udevd">udevd</primary>
99 </indexterm>
100 </listitem>
101 </varlistentry>
102
103 <!-- Start of Helpers -->
104 <varlistentry id="ata_id">
105 <term><command>ata_id</command></term>
106 <listitem>
107 <para>Provides Eudev with a unique string and additional
108 information (uuid, label) for an ATA drive</para>
109 <indexterm zone="ch-boot-eudev ata_id">
110 <primary sortas="b-ata_id">ata_id</primary>
111 </indexterm>
112 </listitem>
113 </varlistentry>
114
115 <varlistentry id="cdrom_id">
116 <term><command>cdrom_id</command></term>
117 <listitem>
118 <para>Prints the capabilities of a CDROM or DVDROM drive.</para>
119 <indexterm zone="ch-boot-eudev cdrom_id">
120 <primary sortas="b-cdrom_id">cdrom_id</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="collect">
126 <term><command>collect</command></term>
127 <listitem>
128 <para>Given an ID for the current uevent and a list of IDs
129(for all target uevents), registers the current ID and indicates whether
130all target IDs have been registered.</para>
131 <indexterm zone="ch-boot-eudev collect">
132 <primary sortas="b-collect">collect</primary>
133 </indexterm>
134 </listitem>
135 </varlistentry>
136
137 <varlistentry id="create_floppy_devices">
138 <term><command>create_floppy_devices</command></term>
139 <listitem>
140 <para>Creates all possible floppy devices based on the CMOS type</para>
141 <indexterm zone="ch-boot-eudev create_floppy_devices">
142 <primary sortas="b-create_floppy_devices">create_floppy_devices</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="edd_id">
148 <term><command>edd_id</command></term>
149 <listitem>
150 <para>Identifies x86 disk drives from Enhanced Disk Drive calls</para>
151 <indexterm zone="ch-boot-eudev edd_id">
152 <primary sortas="b-edd_id">edd_id</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="firmware.sh">
158 <term><command>firmware.sh</command></term>
159 <listitem>
160 <para>Script to load firmware for a device</para>
161 <indexterm zone="ch-boot-eudev firmware.sh">
162 <primary sortas="b-firmware.sh">firmware.sh</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="fstab_import">
168 <term><command>fstab_import</command></term>
169 <listitem>
170 <para>Finds an entry in <filename>/etc/fstab</filename> that matches
171the current device, and provides its information to Udev.</para>
172 <indexterm zone="ch-boot-eudev fstab_import">
173 <primary sortas="b-fstab_import">fstab_import</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 <varlistentry id="path_id">
179 <term><command>path_id</command></term>
180 <listitem>
181 <para>Provides the shortest possible unique hardware path to a
182 device</para>
183 <indexterm zone="ch-boot-eudev path_id">
184 <primary sortas="b-path_id">path_id</primary>
185 </indexterm>
186 </listitem>
187 </varlistentry>
188
189 <varlistentry id="scsi_id">
190 <term><command>scsi_id</command></term>
191 <listitem>
192 <para>Retrieves or generates a unique SCSI identifier.</para>
193 <indexterm zone="ch-boot-eudev scsi_id">
194 <primary sortas="b-scsi_id">scsi_id</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry id="usb_id">
200 <term><command>usb_id</command></term>
201 <listitem>
202 <para>Identifies a USB block device.</para>
203 <indexterm zone="ch-boot-eudev usb_id">
204 <primary sortas="b-usb_id">usb_id</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="v4l_id">
210 <term><command>v4l_id</command></term>
211 <listitem>
212 <para>Determines V4L capabilities for a given device.</para>
213 <indexterm zone="ch-boot-eudev v4l_id">
214 <primary sortas="b-v4l_id">v4l_id</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="write_cd_rules">
220 <term><command>write_cd_rules</command></term>
221 <listitem>
222 <para>A script which generates Eudev rules to provide stable names
223for network interfaces.</para>
224 <indexterm zone="ch-boot-eudev write_cd_rules">
225 <primary sortas="b-write_cd_rules">write_cd_rules</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry id="write_net_rules">
231 <term><command>write_net_rules</command></term>
232 <listitem>
233 <para>A script which generates Eudev rules to provide stable names
234for network interfaces.</para>
235 <indexterm zone="ch-boot-eudev write_net_rules">
236 <primary sortas="b-write_net_rules">write_net_rules</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240<!-- End of Helpers -->
241
242 <varlistentry id="libudev">
243 <term><filename class="libraryfile">libudev</filename></term>
244 <listitem>
245 <para>A library interface to eudev device information.</para>
246 <indexterm zone="ch-boot-eudev libudev">
247 <primary sortas="c-libudev">libudev</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="etc-eudev">
253 <term><filename class="directory">/etc/udev</filename></term>
254 <listitem>
255 <para>Contains <command>udev</command> configuration files,
256 device permissions, and rules for device naming</para>
257 <indexterm zone="ch-boot-eudev etc-eudev">
258 <primary sortas="e-/etc/udev">/etc/udev</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 <varlistentry id="lib-eudev">
264 <term><filename class="directory">/lib/udev</filename></term>
265 <listitem>
266 <para>Contains <command>udev</command> helper programs
267 and static devices which get copied to /dev when booted.</para>
268 <indexterm zone="ch-boot-eudev lib-eudev">
269 <primary sortas="e-/lib/udev">/lib/udev</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273 </variablelist>
274
275 </sect2>
276
277</sect1>
Note: See TracBrowser for help on using the repository browser.