source: general/sysutils/pciutils.xml@ 2314cd7

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 2314cd7 was c8b719a, checked in by Douglas R. Reno <renodr@…>, 10 months ago

Tags

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