source: general/sysutils/pciutils.xml@ 6397333

basic
Last change on this file since 6397333 was 6397333, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Convert internal like to external links for BLFS packages not in
the Basic book.

Reorder some chapters.

Merge System V and systemd sections so both are always displayed
with proper attribution for system type.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/basic@20524 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.5 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 <!ENTITY pciutils-download-http "&kernel-dl;/software/utils/pciutils/pciutils-&pciutils-version;.tar.xz">
8 <!ENTITY pciutils-download-ftp " ">
9 <!ENTITY pciutils-md5sum "77963796d1be4f451b83e6da28ba4f82">
10 <!ENTITY pciutils-size "340 KB">
11 <!ENTITY pciutils-buildsize "3.5 MB">
12 <!ENTITY pciutils-time "less than 0.1 SBU">
13]>
14
15<sect1 id="pciutils" xreflabel="pciutils-&pciutils-version;">
16 <?dbhtml filename="pciutils.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>pciutils-&pciutils-version;</title>
24
25 <indexterm zone="pciutils">
26 <primary sortas="a-pciutils">pciutils</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to PCI Utils</title>
31
32 <para>
33 The <application>PCI Utils</application> package contains
34 a set of programs for listing PCI devices, inspecting
35 their status and setting their configuration registers.
36 </para>
37
38 &lfs83_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&pciutils-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&pciutils-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &pciutils-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &pciutils-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &pciutils-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &pciutils-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <para condition="html" role="usernotes">User Notes:
75 <ulink url="&blfs-wiki;/pciutils"/>
76 </para>
77 </sect2>
78
79 <sect2 role="installation">
80 <title>Installation of PCI Utils</title>
81
82 <para>
83 Install <application>PCI Utils</application> by
84 running the following commands:
85 </para>
86
87<screen><userinput>make PREFIX=/usr \
88 SHAREDIR=/usr/share/hwdata \
89 SHARED=yes</userinput></screen>
90
91 <para>
92 This package does not come with a test suite.
93 </para>
94
95 <para>
96 Now, as the <systemitem class="username">root</systemitem> user:
97 </para>
98
99<screen role="root"><userinput>make PREFIX=/usr \
100 SHAREDIR=/usr/share/hwdata \
101 SHARED=yes \
102 install install-lib &amp;&amp;
103
104chmod -v 755 /usr/lib/libpci.so</userinput></screen>
105
106 </sect2>
107
108 <sect2 role="commands">
109 <title>Command Explanations</title>
110
111 <para>
112 <parameter>SHARED=yes</parameter>: This parameter enables building of
113 the shared library instead of the static one.
114 </para>
115
116 <para>
117 <option>ZLIB=no</option>: This option prevents compression of
118 the <filename>pci.ids</filename> file.
119 </para>
120
121 </sect2>
122
123 <sect2 role="configuration">
124 <title>Configuring PCI Utils</title>
125
126 <para>
127 The <filename>pci.ids</filename> data file is constantly being
128 updated. To get a current version of this file, run
129 <command>update-pciids</command> as the <systemitem
130 class="username">root</systemitem> user. This program requires the
131 <xref linkend="which"/> script or program to find
132 <ulink url="&blfs-book;basicnet/curl.html">curl</ulink>,
133 <ulink url="&blfs-book;basicnet/lynx.html">lynx</ulink> or
134 <xref linkend="wget"/> which are used to
135 download the most current file, and then replace the existing file in
136 <filename class="directory">/usr/share/hwdata</filename>.
137 </para>
138
139 <para revision="sysv">
140 You may wish to add an entry to
141 <systemitem class="username">root</systemitem>'s (or any other user who has
142 write privilege to <filename class="directory">/usr/share/hwdata</filename>)
143 crontab to automatically update the <filename>pci.ids</filename> file
144 periodically.
145 </para>
146
147 <para revision="systemd">
148 You should update the <filename>/usr/share/hwdata/pci.ids</filename> file
149 periodically. Execute the following commands, as the
150 <systemitem class="username">root</systemitem> user, to create a systemd
151 timer to update it weekly on Sundays at 2:30 A.M. (local time):
152 </para>
153
154<screen role="root" revision="systemd"><userinput>cat &gt; /lib/systemd/system/update-pciids.service &lt;&lt; "EOF" &amp;&amp;
155<literal>[Unit]
156Description=Update pci.ids file
157Documentation=man:update-pciids(8)
158DefaultDependencies=no
159After=local-fs.target
160Before=shutdown.target
161
162[Service]
163Type=oneshot
164RemainAfterExit=yes
165ExecStart=/usr/sbin/update-pciids</literal>
166EOF
167cat &gt; /lib/systemd/system/update-pciids.timer &lt;&lt; "EOF" &amp;&amp;
168<literal>[Unit]
169Description=Update pci.ids file weekly
170
171[Timer]
172OnCalendar=Sun 02:30:00
173Persistent=true
174
175[Install]
176WantedBy=timers.target</literal>
177EOF
178systemctl enable update-pciids.timer</userinput></screen>
179
180
181 </sect2>
182
183 <sect2 role="content">
184 <title>Contents</title>
185
186 <segmentedlist>
187 <segtitle>Installed Programs</segtitle>
188 <segtitle>Installed Library</segtitle>
189 <segtitle>Installed Directory</segtitle>
190
191 <seglistitem>
192 <seg>
193 lspci, setpci, and update-pciids
194 </seg>
195 <seg>
196 libpci.so
197 </seg>
198 <seg>
199 /usr/include/pci and /usr/share/hwdata
200 </seg>
201 </seglistitem>
202 </segmentedlist>
203
204 <variablelist>
205 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
206 <?dbfo list-presentation="list"?>
207 <?dbhtml list-presentation="table"?>
208
209 <varlistentry id="lspci">
210 <term><command>lspci</command></term>
211 <listitem>
212 <para>
213 is a utility for displaying information about all PCI buses
214 in the system and all devices connected to them.
215 </para>
216 <indexterm zone="pciutils lspci">
217 <primary sortas="b-lspci">lspci</primary>
218 </indexterm>
219 </listitem>
220 </varlistentry>
221
222 <varlistentry id="setpci">
223 <term><command>setpci</command></term>
224 <listitem>
225 <para>
226 is a utility for querying and configuring PCI devices.
227 </para>
228 <indexterm zone="pciutils setpci">
229 <primary sortas="b-setpci">setpci</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="update-pciids">
235 <term><command>update-pciids</command></term>
236 <listitem>
237 <para>
238 fetches the current version of the PCI ID list. Requires
239 curl, lynx, or wget.
240 </para>
241 <indexterm zone="pciutils update-pciids">
242 <primary sortas="b-update-pciids">update-pciids</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="libpci">
248 <term><filename class="libraryfile">libpci.so</filename></term>
249 <listitem>
250 <para>
251 is library that allows applications to access the PCI
252 subsystem.
253 </para>
254 <indexterm zone="pciutils libpci">
255 <primary sortas="c-libpci">libpci.so</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 </variablelist>
261
262 </sect2>
263
264</sect1>
Note: See TracBrowser for help on using the repository browser.