source: chapter06/eudev.xml@ 7559e334

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 7559e334 was 7559e334, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Remove XML::Parser.
Enable keymap in eudev.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10563 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 --enable-keymap \
64 --disable-introspection \
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/udev/rules.d
78mkdir -pv /etc/udev/rules.d</userinput></screen>
79
80<para>To test the results, run issue:</para>
81
82<screen><userinput remap="test">make check</userinput></screen>
83
84 <para>Install the package:</para>
85
86<screen><userinput remap="install">make install</userinput></screen>
87
88<para>Now, install the man pages:</para>
89
90<screen><userinput remap="install">tar -xvf ../eudev-&eudev-version;-manpages.tar.bz2 -C /usr/share</userinput></screen>
91
92 <para>Finally, create some custom rules that are not covered as a part of the
93 defaults:</para>
94
95<screen><userinput remap="install">cat &gt; /etc/udev/rules.d/55-lfs.rules &lt;&lt; "EOF"
96# /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.
97
98# Core kernel devices
99
100# This causes the system clock to be set as soon as /dev/rtc becomes available.
101SUBSYSTEM=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
102KERNEL=="rtc", ACTION=="add", MODE="0644", RUN+="/etc/rc.d/init.d/setclock start"
103
104# Comms devices
105
106KERNEL=="ippp[0-9]*", GROUP="dialout"
107KERNEL=="isdn[0-9]*", GROUP="dialout"
108KERNEL=="isdnctrl[0-9]*", GROUP="dialout"
109KERNEL=="dcbri[0-9]*", GROUP="dialout"
110EOF</userinput></screen>
111
112 </sect2>
113
114 <sect2 id="contents-eudev" role="content">
115 <title>Contents of Eudev</title>
116
117 <segmentedlist>
118 <segtitle>Installed programs</segtitle>
119 <segtitle>Installed libraries</segtitle>
120 <segtitle>Installed directories</segtitle>
121
122 <seglistitem>
123 <seg><!-- These are in /lib/udev and not to be called by the user:
124 accelerometer, ata_id, cdrom_id, collect, mtd_probe,
125 scsi_id, v4l_id,--> udevadm and udevd</seg>
126
127 <seg>libudev.so</seg>
128
129 <seg>/etc/udev, /lib/udev, and /lib/firmware</seg>
130 </seglistitem>
131 </segmentedlist>
132
133 <variablelist>
134 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
135 <?dbfo list-presentation="list"?>
136 <?dbhtml list-presentation="table"?>
137<!--
138 <varlistentry id="ata_id">
139 <term><command>ata_id</command></term>
140 <listitem>
141 <para>Provides Udev with a unique string and
142 additional information (uuid, label) for an ATA drive</para>
143 <indexterm zone="ch-system-eudev ata_id">
144 <primary sortas="b-ata_id">ata_id</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="cdrom_id">
150 <term><command>cdrom_id</command></term>
151 <listitem>
152 <para>Provides Udev with the capabilities of a
153 CD-ROM or DVD-ROM drive</para>
154 <indexterm zone="ch-system-eudev cdrom_id">
155 <primary sortas="b-cdrom_id">cdrom_id</primary>
156 </indexterm>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry id="collect">
161 <term><command>collect</command></term>
162 <listitem>
163 <para>Given an ID for the current uevent and a list of
164 IDs (for all target uevents), registers the current ID
165 and indicates whether all target IDs have been registered</para>
166 <indexterm zone="ch-system-eudev collect">
167 <primary sortas="b-collect">collect</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="scsi_id">
173 <term><command>scsi_id</command></term>
174 <listitem>
175 <para>Provides Udev with a unique SCSI identifier
176 based on the data returned from sending a SCSI INQUIRY command to
177 the specified device</para>
178 <indexterm zone="ch-system-eudev scsi_id">
179 <primary sortas="b-scsi_id">scsi_id</primary>
180 </indexterm>
181 </listitem>
182 </varlistentry>
183-->
184 <varlistentry id="udevadm">
185 <term><command>udevadm</command></term>
186 <listitem>
187 <para>Generic udev administration tool: controls the udevd daemon,
188 provides info from the Udev database, monitors uevents, waits for
189 uevents to finish, tests Udev configuration, and triggers uevents
190 for a given device</para>
191 <indexterm zone="ch-system-eudev udevadm">
192 <primary sortas="b-udevadm">udevadm</primary>
193 </indexterm>
194 </listitem>
195 </varlistentry>
196
197 <varlistentry id="udevd">
198 <term><command>udevd</command></term>
199 <listitem>
200 <para>A daemon that listens for uevents on the netlink socket,
201 creates devices and runs the configured external programs in
202 response to these uevents</para>
203 <indexterm zone="ch-system-eudev udevd">
204 <primary sortas="b-udevd">udevd</primary>
205 </indexterm>
206 </listitem>
207 </varlistentry>
208
209 <varlistentry id="libudev">
210 <term><filename class="libraryfile">libudev</filename></term>
211 <listitem>
212 <para>A library interface to udev device information</para>
213 <indexterm zone="ch-system-eudev libudev">
214 <primary sortas="c-libudev">libudev</primary>
215 </indexterm>
216 </listitem>
217 </varlistentry>
218
219 <varlistentry id="etc-udev">
220 <term><filename class="directory">/etc/udev</filename></term>
221 <listitem>
222 <para>Contains Udev configuration files,
223 device permissions, and rules for device naming</para>
224 <indexterm zone="ch-system-eudev etc-udev">
225 <primary sortas="e-/etc/udev">/etc/udev</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 </variablelist>
231
232 </sect2>
233
234</sect1>
Note: See TracBrowser for help on using the repository browser.