source: chapter08/eudev.xml@ d7a9421

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 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 d7a9421 was d7a9421, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Merge Xi's changes into trunk
Update to meson-0.58.0
Update to systemd-248
Update to gcc-11.1.0
Update to linux-5.12.1
Update to iproute2-5.12.0
Update to Python-3.9.5
Make /bin, /sbin, and /lib symlinks to their counterparts in /usr.
Thanks again for a significant portion of this work goes to Xi, I only
really merged it and made a couple of modifications for my updates. To
LFS 11.x we go!

  • Property mode set to 100644
File size: 5.9 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" revision="sysv">
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-fin-sbu;</seg>
35 <seg>&eudev-fin-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Eudev</title>
42<!--
43 <para>First, fix a test script:</para>
44
45<screen><userinput remap="pre">sed -r -i 's|/usr(/bin/test)|\1|' test/udev-test.pl</userinput></screen>
46-->
47<!--
48 <para>Next, remove an unneeded line that causes a build failure:</para>
49
50<screen><userinput remap="pre">sed -i '/keyboard_lookup_key/d' src/udev/udev-builtin-keyboard.c</userinput></screen>
51-->
52
53 <para>Prepare Eudev for compilation:</para>
54
55<screen><userinput remap="configure">./configure --prefix=/usr \
56 --sysconfdir=/etc \
57 --enable-manpages \
58 --disable-static</userinput></screen>
59
60 <para>Compile the package:</para>
61
62<screen><userinput remap="make">make</userinput></screen>
63
64 <para>Create some directories now that are needed for tests, but
65 will also be used as a part of installation:</para>
66
67<screen><userinput remap="test">mkdir -pv /usr/lib/udev/rules.d
68mkdir -pv /etc/udev/rules.d</userinput></screen>
69
70 <para>To test the results, issue:</para>
71
72<screen><userinput remap="test">make check</userinput></screen>
73
74 <para>Install the package:</para>
75
76<screen><userinput remap="install">make install</userinput></screen>
77
78 <para>Install some custom rules and support files useful in an LFS
79 environment:</para>
80
81<screen><userinput remap="install">tar -xvf ../&udev-lfs-version;.tar.xz
82make -f &udev-lfs-version;/Makefile.lfs install</userinput></screen>
83
84 </sect2>
85
86 <sect2 id="conf-eudev" role="configuration">
87 <title>Configuring Eudev</title>
88
89 <indexterm zone="conf-eudev">
90 <primary sortas="a-Eudev">Eudev</primary>
91 <secondary>configuring</secondary>
92 </indexterm>
93
94 <indexterm zone="conf-eudev">
95 <primary sortas="e-/etc/udev/hwdb.bin">/etc/udev/hwdb.bin</primary>
96 </indexterm>
97
98 <para>Information about hardware devices is maintained in the
99 <filename class="directory">/etc/udev/hwdb.d</filename> and
100 <filename class="directory">/usr/lib/udev/hwdb.d</filename> directories.
101 <application>Eudev</application> needs that information to be compiled
102 into a binary database <filename>/etc/udev/hwdb.bin</filename>. Create the
103 initial database:</para>
104
105<screen><userinput>udevadm hwdb --update</userinput></screen>
106
107 <para>This command needs to be run each time the hardware information is
108 updated.</para>
109
110 </sect2>
111
112 <sect2 id="contents-eudev" role="content">
113 <title>Contents of Eudev</title>
114
115 <segmentedlist>
116 <segtitle>Installed programs</segtitle>
117 <segtitle>Installed libraries</segtitle>
118 <segtitle>Installed directories</segtitle>
119
120 <seglistitem>
121 <seg><!-- These are in /usr/lib/udev and not to be called by the user:
122 accelerometer, ata_id, cdrom_id, collect, mtd_probe,
123 scsi_id, v4l_id,--> udevadm and udevd</seg>
124
125 <seg>libudev.so</seg>
126
127 <seg>/etc/udev, /usr/lib/udev, and /usr/share/doc/udev-&udev-lfs-version;</seg>
128 </seglistitem>
129 </segmentedlist>
130
131 <variablelist>
132 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
133 <?dbfo list-presentation="list"?>
134 <?dbhtml list-presentation="table"?>
135 <varlistentry id="udevadm" revision="sysv">
136 <term><command>udevadm</command></term>
137 <listitem>
138 <para>Generic udev administration tool: controls the udevd daemon,
139 provides info from the Udev database, monitors uevents, waits for
140 uevents to finish, tests Udev configuration, and triggers uevents
141 for a given device</para>
142 <indexterm zone="ch-system-eudev udevadm">
143 <primary sortas="b-udevadm">udevadm</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 <varlistentry id="udevd">
149 <term><command>udevd</command></term>
150 <listitem>
151 <para>A daemon that listens for uevents on the netlink socket,
152 creates devices and runs the configured external programs in
153 response to these uevents</para>
154 <indexterm zone="ch-system-eudev udevd">
155 <primary sortas="b-udevd">udevd</primary>
156 </indexterm>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry id="libudev">
161 <term><filename class="libraryfile">libudev</filename></term>
162 <listitem>
163 <para>A library interface to udev device information</para>
164 <indexterm zone="ch-system-eudev libudev">
165 <primary sortas="c-libudev">libudev</primary>
166 </indexterm>
167 </listitem>
168 </varlistentry>
169
170 <varlistentry id="etc-udev">
171 <term><filename class="directory">/etc/udev</filename></term>
172 <listitem>
173 <para>Contains Udev configuration files,
174 device permissions, and rules for device naming</para>
175 <indexterm zone="ch-system-eudev etc-udev">
176 <primary sortas="e-/etc/udev">/etc/udev</primary>
177 </indexterm>
178 </listitem>
179 </varlistentry>
180
181 </variablelist>
182
183 </sect2>
184
185</sect1>
Note: See TracBrowser for help on using the repository browser.