source: general/sysutils/pciutils.xml@ bb4bb1db

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since bb4bb1db was 15445ab, checked in by Douglas R. Reno <renodr@…>, 16 months ago

Lots of tags

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