source: chapter06/eudev.xml@ 111bb20

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 111bb20 was 111bb20, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Update to eudev-1.5.3 and add /etc/udev/rules.d/55-lfs.rules
Update to man-pages-3.63.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10514 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 7.8 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-system-eudev" role="wrap">
9 <?dbhtml filename="eudev.html"?>
10
11 <sect1info condition="script">
12 <productname>eudev</productname>
13 <productnumber>&eudev-version;</productnumber>
14 <address>&eudev-url;</address>
15 </sect1info>
16
17 <title>Eudev-&eudev-version;</title>
18
19 <indexterm zone="ch-system-eudev">
20 <primary sortas="a-Eudev">Eudev</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Eudev package contains programs for dynamic creation of device
27 nodes.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&eudev-ch6-sbu;</seg>
35 <seg>&eudev-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Eudev</title>
42
43 <para>First, clean up a few warnings and fix a test script:</para>
44
45<screen><userinput remap="pre">sed -i '/struct ucred/i struct ucred;' src/libudev/util.h
46sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen>
47
48<para>Prepare Eudev for compilation:</para>
49
50<screen><userinput remap="configure">BLKID_CFLAGS=-I/tools/include \
51BLKID_LIBS='-L/tools/lib -lblkid' \
52./configure --prefix=/usr \
53 --bindir=/sbin \
54 --sbindir=/sbin \
55 --libdir=/usr/lib \
56 --sysconfdir=/etc \
57 --libexecdir=/lib \
58 --with-rootprefix= \
59 --with-rootlibdir=/lib \
60 --enable-split-usr \
61 --enable-libkmod \
62 --enable-rule_generator \
63 --disable-introspection \
64 --disable-keymap \
65 --disable-gudev \
66 --disable-gtk-doc-html \
67 --with-firmware-path=/lib/firmware </userinput></screen>
68
69<para>Compile the package:</para>
70
71<screen><userinput remap="make">make</userinput></screen>
72
73<para>Create some directories now that are needed for tests, but
74will also be used as a part of installation:</para>
75
76<screen><userinput remap="install">mkdir -pv /lib/{firmware,udev/devices/pts}
77mkdir -pv /lib/firmware
78mkdir -pv /lib/udev/rules.d
79mkdir -pv /etc/udev/rules.d</userinput></screen>
80
81<para>To test the results, run issue:</para>
82
83<screen><userinput remap="test">make check</userinput></screen>
84
85 <para>Install the package:</para>
86
87<screen><userinput remap="install">make install</userinput></screen>
88
89<para>Now, install the man pages:</para>
90
91<screen><userinput remap="install">tar -xvf ../eudev-1.5.1-manpages.tar.bz2 -C /usr/share</userinput></screen>
92
93 <para>Finally, create some custom rules that are not covered as a part of the
94 defaults:</para>
95
96<screen><userinput remap="install">cat &gt; /etc/udev/rules.d/55-lfs.rules &lt;&lt; "EOF"
97# /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.
98
99# Core kernel devices
100
101# This causes the system clock to be set as soon as /dev/rtc becomes available.
102SUBSYSTEM=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
103KERNEL=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
104
105# Comms devices
106
107KERNEL=="ippp[0-9]*", GROUP="dialout"
108KERNEL=="isdn[0-9]*", GROUP="dialout"
109KERNEL=="isdnctrl[0-9]*", GROUP="dialout"
110KERNEL=="dcbri[0-9]*", GROUP="dialout"
111EOF</userinput></screen>
112
113 </sect2>
114
115 <sect2 id="contents-eudev" role="content">
116 <title>Contents of Eudev</title>
117
118 <segmentedlist>
119 <segtitle>Installed programs</segtitle>
120 <segtitle>Installed libraries</segtitle>
121 <segtitle>Installed directories</segtitle>
122
123 <seglistitem>
124 <seg><!-- These are in /lib/udev and not to be called by the user:
125 accelerometer, ata_id, cdrom_id, collect, mtd_probe,
126 scsi_id, v4l_id,--> udevadm and udevd</seg>
127
128 <seg>libudev.so</seg>
129
130 <seg>/etc/udev, /lib/udev, and /lib/firmware</seg>
131 </seglistitem>
132 </segmentedlist>
133
134 <variablelist>
135 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
136 <?dbfo list-presentation="list"?>
137 <?dbhtml list-presentation="table"?>
138<!--
139 <varlistentry id="ata_id">
140 <term><command>ata_id</command></term>
141 <listitem>
142 <para>Provides Udev with a unique string and
143 additional information (uuid, label) for an ATA drive</para>
144 <indexterm zone="ch-system-eudev ata_id">
145 <primary sortas="b-ata_id">ata_id</primary>
146 </indexterm>
147 </listitem>
148 </varlistentry>
149
150 <varlistentry id="cdrom_id">
151 <term><command>cdrom_id</command></term>
152 <listitem>
153 <para>Provides Udev with the capabilities of a
154 CD-ROM or DVD-ROM drive</para>
155 <indexterm zone="ch-system-eudev cdrom_id">
156 <primary sortas="b-cdrom_id">cdrom_id</primary>
157 </indexterm>
158 </listitem>
159 </varlistentry>
160
161 <varlistentry id="collect">
162 <term><command>collect</command></term>
163 <listitem>
164 <para>Given an ID for the current uevent and a list of
165 IDs (for all target uevents), registers the current ID
166 and indicates whether all target IDs have been registered</para>
167 <indexterm zone="ch-system-eudev collect">
168 <primary sortas="b-collect">collect</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="scsi_id">
174 <term><command>scsi_id</command></term>
175 <listitem>
176 <para>Provides Udev with a unique SCSI identifier
177 based on the data returned from sending a SCSI INQUIRY command to
178 the specified device</para>
179 <indexterm zone="ch-system-eudev scsi_id">
180 <primary sortas="b-scsi_id">scsi_id</primary>
181 </indexterm>
182 </listitem>
183 </varlistentry>
184-->
185 <varlistentry id="udevadm">
186 <term><command>udevadm</command></term>
187 <listitem>
188 <para>Generic udev administration tool: controls the udevd daemon,
189 provides info from the Udev database, monitors uevents, waits for
190 uevents to finish, tests Udev configuration, and triggers uevents
191 for a given device</para>
192 <indexterm zone="ch-system-eudev udevadm">
193 <primary sortas="b-udevadm">udevadm</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry id="udevd">
199 <term><command>udevd</command></term>
200 <listitem>
201 <para>A daemon that listens for uevents on the netlink socket,
202 creates devices and runs the configured external programs in
203 response to these uevents</para>
204 <indexterm zone="ch-system-eudev udevd">
205 <primary sortas="b-udevd">udevd</primary>
206 </indexterm>
207 </listitem>
208 </varlistentry>
209
210 <varlistentry id="libudev">
211 <term><filename class="libraryfile">libudev</filename></term>
212 <listitem>
213 <para>A library interface to udev device information</para>
214 <indexterm zone="ch-system-eudev libudev">
215 <primary sortas="c-libudev">libudev</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="etc-udev">
221 <term><filename class="directory">/etc/udev</filename></term>
222 <listitem>
223 <para>Contains Udev configuration files,
224 device permissions, and rules for device naming</para>
225 <indexterm zone="ch-system-eudev etc-udev">
226 <primary sortas="e-/etc/udev">/etc/udev</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 </variablelist>
232
233 </sect2>
234
235</sect1>
Note: See TracBrowser for help on using the repository browser.