source: chapter08/eudev.xml@ b17680d

11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng 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 b17680d was b17680d, checked in by Bruce Dubbs <bdubbs@…>, 20 months ago

Package updates and corrections.
Update to file-5.43.
Update to linux-5.19.8.
Update to gawk-5.2.0.
Update to meson-0.63.2.
Update to ninja-1.11.1.
Update to bc-6.0.2.
Fix the location of udev rules in eudev.
Remove a warning for egrep and fgrep that
Delete an empty binutils man page.

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