source: general/sysutils/pciutils.xml@ a17f6a03

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since a17f6a03 was cc61006, checked in by Bruce Dubbs <bdubbs@…>, 14 months ago

Update to pciutils-3.10.0.

  • Property mode set to 100644
File size: 8.1 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[75b1a338]7 <!ENTITY pciutils-download-http "https://mj.ucw.cz/download/linux/pci/pciutils-&pciutils-version;.tar.gz">
[303d9be]8 <!ENTITY pciutils-download-ftp " ">
[cc61006]9 <!ENTITY pciutils-md5sum "ca53b87d2a94cdbbba6e09aca90924bd">
10 <!ENTITY pciutils-size "912 KB">
11 <!ENTITY pciutils-buildsize "5.7 MB">
[049ffc5]12 <!ENTITY pciutils-time "less than 0.1 SBU">
[52d29f7]13]>
14
[4890200]15<sect1 id="pciutils" xreflabel="pciutils-&pciutils-version;">
[a9a6837e]16 <?dbhtml filename="pciutils.html"?>
17
18
[4890200]19 <title>pciutils-&pciutils-version;</title>
[a9a6837e]20
21 <indexterm zone="pciutils">
[4890200]22 <primary sortas="a-pciutils">pciutils</primary>
[a9a6837e]23 </indexterm>
24
25 <sect2 role="package">
[564851b]26 <title>Introduction to PCI Utils</title>
[a9a6837e]27
[564851b]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>
[a9a6837e]33
[15445ab]34 &lfs113_checked;
[fd91fea]35
[a9a6837e]36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
[564851b]39 <para>
40 Download (HTTP): <ulink url="&pciutils-download-http;"/>
41 </para>
[2a05c87]42 </listitem>
[a9a6837e]43 <listitem>
[564851b]44 <para>
45 Download (FTP): <ulink url="&pciutils-download-ftp;"/>
46 </para>
[a9a6837e]47 </listitem>
48 <listitem>
[564851b]49 <para>
50 Download MD5 sum: &pciutils-md5sum;
51 </para>
[a9a6837e]52 </listitem>
53 <listitem>
[564851b]54 <para>
55 Download size: &pciutils-size;
56 </para>
[a9a6837e]57 </listitem>
58 <listitem>
[564851b]59 <para>
60 Estimated disk space required: &pciutils-buildsize;
61 </para>
[a9a6837e]62 </listitem>
63 <listitem>
[564851b]64 <para>
65 Estimated build time: &pciutils-time;
66 </para>
[a9a6837e]67 </listitem>
68 </itemizedlist>
[eae7f55]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"/>,
[cac7f93]78 <xref linkend="wget"/>, or
79 <xref linkend="lynx"/>
[eae7f55]80 (for the update-pciids script to function correctly).
81 </para>
[a9a6837e]82
[1039de3]83 <para condition="html" role="usernotes">User Notes:
[564851b]84 <ulink url="&blfs-wiki;/pciutils"/>
85 </para>
[2969aa8]86 </sect2>
87
[143ed74]88 <sect2 role="installation">
[564851b]89 <title>Installation of PCI Utils</title>
[143ed74]90
[c503fad7]91 <para>
[564851b]92 Install <application>PCI Utils</application> by
[c503fad7]93 running the following commands:
94 </para>
[a9a6837e]95
[94f93146]96<screen><userinput>make PREFIX=/usr \
97 SHAREDIR=/usr/share/hwdata \
[857e2fb]98 SHARED=yes</userinput></screen>
[a9a6837e]99
[c503fad7]100 <para>
101 This package does not come with a test suite.
102 </para>
[f6f06932]103
[c503fad7]104 <para>
105 Now, as the <systemitem class="username">root</systemitem> user:
106 </para>
[a9a6837e]107
[7089c646]108<screen role="root"><userinput>make PREFIX=/usr \
[94f93146]109 SHAREDIR=/usr/share/hwdata \
110 SHARED=yes \
111 install install-lib &amp;&amp;
[5f26d66f]112
[857e2fb]113chmod -v 755 /usr/lib/libpci.so</userinput></screen>
[fd91fea]114
[a9a6837e]115 </sect2>
116
[0829916]117 <sect2 role="commands">
118 <title>Command Explanations</title>
119
[c503fad7]120 <para>
121 <parameter>SHARED=yes</parameter>: This parameter enables building of
[d900e405]122 the shared library instead of the static one.
[c503fad7]123 </para>
[2a05c87]124
[c503fad7]125 <para>
[857e2fb]126 <option>ZLIB=no</option>: This option prevents compression of
[564851b]127 the <filename>pci.ids</filename> file.
[c503fad7]128 </para>
[2a05c87]129
[0829916]130 </sect2>
131
[c0913c4]132 <sect2 role="configuration">
[564851b]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"/>,
[1c37eb5]141 <xref linkend="lynx"/>, or <xref linkend="wget"/> which are used to
[564851b]142 download the most current file, and then replace the existing file in
[7b6d7cd]143 <filename class="directory">/usr/share/hwdata</filename>.
[564851b]144 </para>
145
[b471f6a]146 <para>
[ac8c7d4]147 You should update the <filename>/usr/share/hwdata/pci.ids</filename> file
[b471f6a]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>
[ac8c7d4]155 </para>
156
[914dd13]157<screen role="nodump" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-pciids.sh &lt;&lt; "EOF" &amp;&amp;
[b471f6a]158<literal>#!/bin/bash
159/usr/sbin/update-pciids</literal>
160EOF
[02e3bbc8]161chmod 754 /etc/cron.weekly/update-pciids.sh</userinput></screen>
[b471f6a]162
[d0d2c85a]163<screen role="root" revision="systemd"><userinput>cat &gt; /usr/lib/systemd/system/update-pciids.service &lt;&lt; "EOF" &amp;&amp;
[ac8c7d4]164<literal>[Unit]
165Description=Update pci.ids file
166Documentation=man:update-pciids(8)
167DefaultDependencies=no
[a5b9f1e]168After=local-fs.target network-online.target
[ac8c7d4]169Before=shutdown.target
170
171[Service]
172Type=oneshot
173RemainAfterExit=yes
174ExecStart=/usr/sbin/update-pciids</literal>
175EOF
[d0d2c85a]176cat &gt; /usr/lib/systemd/system/update-pciids.timer &lt;&lt; "EOF" &amp;&amp;
[ac8c7d4]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
[df9499b]187systemctl enable update-pciids.timer</userinput></screen>
[ac8c7d4]188
189
[c0913c4]190 </sect2>
191
[a9a6837e]192 <sect2 role="content">
193 <title>Contents</title>
194
195 <segmentedlist>
196 <segtitle>Installed Programs</segtitle>
[1ed12e2d]197 <segtitle>Installed Library</segtitle>
198 <segtitle>Installed Directory</segtitle>
[a9a6837e]199
200 <seglistitem>
[564851b]201 <seg>
[29efd929]202 lspci, setpci, and update-pciids
[564851b]203 </seg>
204 <seg>
205 libpci.so
206 </seg>
207 <seg>
[29efd929]208 /usr/include/pci and /usr/share/hwdata
[564851b]209 </seg>
[a9a6837e]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>
[564851b]221 <para>
[73fe507]222 is a utility for displaying information about all PCI buses
[4c24eb0a]223 in the system and all devices connected to them
[564851b]224 </para>
[a9a6837e]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>
[564851b]234 <para>
[4c24eb0a]235 is a utility for querying and configuring PCI devices
[564851b]236 </para>
[a9a6837e]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>
[564851b]246 <para>
[eae7f55]247 fetches the current version of the PCI ID list. <!-- Requires
[564851b]248 <xref linkend="curl"/>, <xref linkend="lynx"/> or
249 <xref linkend="wget"/>.
[eae7f55]250 -->
[564851b]251 </para>
[a9a6837e]252 <indexterm zone="pciutils update-pciids">
253 <primary sortas="b-update-pciids">update-pciids</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
[38ec4bf]258 <varlistentry id="libpci">
[4890200]259 <term><filename class="libraryfile">libpci.so</filename></term>
[38ec4bf]260 <listitem>
[564851b]261 <para>
262 is library that allows applications to access the PCI
[4c24eb0a]263 subsystem
[564851b]264 </para>
[38ec4bf]265 <indexterm zone="pciutils libpci">
[2a05c87]266 <primary sortas="c-libpci">libpci.so</primary>
[38ec4bf]267 </indexterm>
268 </listitem>
269 </varlistentry>
270
[a9a6837e]271 </variablelist>
272
273 </sect2>
[f45b1953]274
275</sect1>
Note: See TracBrowser for help on using the repository browser.