source: general/sysutils/pciutils.xml@ 2d0650b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2d0650b was a83fdb2, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to qpdf-9.1.1.
Update to mtdev-1.1.6.
Update to pciutils-3.6.4.
Update to shadow-4.8.1.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22604 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.2 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 "4343b37e19f319ce8f3d59c30031790e">
10 <!ENTITY pciutils-size "356 KB">
11 <!ENTITY pciutils-buildsize "3.6 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 &lfs90_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<!-- Needed to update the pci-ids. systemd has a unit and timer for this,
74 but for anyone who updates this file on either platform, it's needed
75 to download the pci.ids file. -->
76
77 <bridgehead renderas="sect3">pciutils Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="curl"/>,
82 <xref linkend="wget"/>, or
83 <xref linkend="lynx"/>
84 (for the update-pciids script to function correctly).
85 </para>
86
87 <para condition="html" role="usernotes">User Notes:
88 <ulink url="&blfs-wiki;/pciutils"/>
89 </para>
90 </sect2>
91
92 <sect2 role="installation">
93 <title>Installation of PCI Utils</title>
94
95 <para>
96 Install <application>PCI Utils</application> by
97 running the following commands:
98 </para>
99
100<screen><userinput>make PREFIX=/usr \
101 SHAREDIR=/usr/share/hwdata \
102 SHARED=yes</userinput></screen>
103
104 <para>
105 This package does not come with a test suite.
106 </para>
107
108 <para>
109 Now, as the <systemitem class="username">root</systemitem> user:
110 </para>
111
112<screen role="root"><userinput>make PREFIX=/usr \
113 SHAREDIR=/usr/share/hwdata \
114 SHARED=yes \
115 install install-lib &amp;&amp;
116
117chmod -v 755 /usr/lib/libpci.so</userinput></screen>
118
119 </sect2>
120
121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
124 <para>
125 <parameter>SHARED=yes</parameter>: This parameter enables building of
126 the shared library instead of the static one.
127 </para>
128
129 <para>
130 <option>ZLIB=no</option>: This option prevents compression of
131 the <filename>pci.ids</filename> file.
132 </para>
133
134 </sect2>
135
136 <sect2 role="configuration">
137 <title>Configuring PCI Utils</title>
138
139 <para>
140 The <filename>pci.ids</filename> data file is constantly being
141 updated. To get a current version of this file, run
142 <command>update-pciids</command> as the <systemitem
143 class="username">root</systemitem> user. This program requires the
144 <xref linkend="which"/> script or program to find <xref linkend="curl"/>,
145 <xref linkend="lynx"/> or <xref linkend="wget"/> which are used to
146 download the most current file, and then replace the existing file in
147 <filename class="directory">/usr/share/hwdata</filename>.
148 </para>
149
150 <para>
151 You should update the <filename>/usr/share/hwdata/pci.ids</filename> file
152 periodically. <phrase revision="sysv">If you've installed
153 <xref linkend="fcron"/> and completed the section on periodic jobs,
154 execute</phrase><phrase revision="systemd">Execute</phrase> the following
155 commands, as the <systemitem class="username">root</systemitem> user,
156 to create a <phrase revision="sysv">weekly cron job:</phrase>
157 <phrase revision="systemd">systemd timer to update it weekly on Sundays
158 at 2:30 A.M. (local time):</phrase>
159 </para>
160
161<screen role="root" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-pciids.sh &lt;&lt; "EOF" &amp;&amp;
162<literal>#!/bin/bash
163/usr/sbin/update-pciids</literal>
164EOF
165chmod 754 /etc/cron.weekly/update-pciids.sh</userinput></screen>
166
167<screen role="root" revision="systemd"><userinput>cat &gt; /lib/systemd/system/update-pciids.service &lt;&lt; "EOF" &amp;&amp;
168<literal>[Unit]
169Description=Update pci.ids file
170Documentation=man:update-pciids(8)
171DefaultDependencies=no
172After=local-fs.target network-online.target
173Before=shutdown.target
174
175[Service]
176Type=oneshot
177RemainAfterExit=yes
178ExecStart=/usr/sbin/update-pciids</literal>
179EOF
180cat &gt; /lib/systemd/system/update-pciids.timer &lt;&lt; "EOF" &amp;&amp;
181<literal>[Unit]
182Description=Update pci.ids file weekly
183
184[Timer]
185OnCalendar=Sun 02:30:00
186Persistent=true
187
188[Install]
189WantedBy=timers.target</literal>
190EOF
191systemctl enable update-pciids.timer</userinput></screen>
192
193
194 </sect2>
195
196 <sect2 role="content">
197 <title>Contents</title>
198
199 <segmentedlist>
200 <segtitle>Installed Programs</segtitle>
201 <segtitle>Installed Library</segtitle>
202 <segtitle>Installed Directory</segtitle>
203
204 <seglistitem>
205 <seg>
206 lspci, setpci, and update-pciids
207 </seg>
208 <seg>
209 libpci.so
210 </seg>
211 <seg>
212 /usr/include/pci and /usr/share/hwdata
213 </seg>
214 </seglistitem>
215 </segmentedlist>
216
217 <variablelist>
218 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
219 <?dbfo list-presentation="list"?>
220 <?dbhtml list-presentation="table"?>
221
222 <varlistentry id="lspci">
223 <term><command>lspci</command></term>
224 <listitem>
225 <para>
226 is a utility for displaying information about all PCI buses
227 in the system and all devices connected to them.
228 </para>
229 <indexterm zone="pciutils lspci">
230 <primary sortas="b-lspci">lspci</primary>
231 </indexterm>
232 </listitem>
233 </varlistentry>
234
235 <varlistentry id="setpci">
236 <term><command>setpci</command></term>
237 <listitem>
238 <para>
239 is a utility for querying and configuring PCI devices.
240 </para>
241 <indexterm zone="pciutils setpci">
242 <primary sortas="b-setpci">setpci</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="update-pciids">
248 <term><command>update-pciids</command></term>
249 <listitem>
250 <para>
251 fetches the current version of the PCI ID list. <!-- Requires
252 <xref linkend="curl"/>, <xref linkend="lynx"/> or
253 <xref linkend="wget"/>.
254 -->
255 </para>
256 <indexterm zone="pciutils update-pciids">
257 <primary sortas="b-update-pciids">update-pciids</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="libpci">
263 <term><filename class="libraryfile">libpci.so</filename></term>
264 <listitem>
265 <para>
266 is library that allows applications to access the PCI
267 subsystem.
268 </para>
269 <indexterm zone="pciutils libpci">
270 <primary sortas="c-libpci">libpci.so</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 </variablelist>
276
277 </sect2>
278
279</sect1>
Note: See TracBrowser for help on using the repository browser.