source: general/sysutils/pciutils.xml@ f67c5c8

12.1 ken/TL2024 lazarus trunk xry111/llvm18
Last change on this file since f67c5c8 was b9874725, checked in by Bruce Dubbs <bdubbs@…>, 3 months ago

Many tags.

Mostly Programming and Xorg sections and dependencies.

  • Property mode set to 100644
File size: 8.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 "ca53b87d2a94cdbbba6e09aca90924bd">
10 <!ENTITY pciutils-size "912 KB">
11 <!ENTITY pciutils-buildsize "5.7 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 &lfs121_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 </sect2>
84
85 <sect2 role="installation">
86 <title>Installation of PCI Utils</title>
87
88 <para>
89 Install <application>PCI Utils</application> by
90 running the following commands:
91 </para>
92
93<screen><userinput>make PREFIX=/usr \
94 SHAREDIR=/usr/share/hwdata \
95 SHARED=yes</userinput></screen>
96
97 <para>
98 This package does not come with a test suite.
99 </para>
100
101 <para>
102 Now, as the <systemitem class="username">root</systemitem> user:
103 </para>
104
105<screen role="root"><userinput>make PREFIX=/usr \
106 SHAREDIR=/usr/share/hwdata \
107 SHARED=yes \
108 install install-lib &amp;&amp;
109
110chmod -v 755 /usr/lib/libpci.so</userinput></screen>
111
112 </sect2>
113
114 <sect2 role="commands">
115 <title>Command Explanations</title>
116
117 <para>
118 <parameter>SHARED=yes</parameter>: This parameter enables building of
119 the shared library instead of the static one.
120 </para>
121
122 <para>
123 <option>ZLIB=no</option>: This option prevents compression of
124 the <filename>pci.ids</filename> file.
125 </para>
126
127 </sect2>
128
129 <sect2 role="configuration">
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"/>,
138 <xref linkend="lynx"/>, or <xref linkend="wget"/> which are used to
139 download the most current file, and then replace the existing file in
140 <filename class="directory">/usr/share/hwdata</filename>.
141 </para>
142
143 <para>
144 You should update the <filename>/usr/share/hwdata/pci.ids</filename> file
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>
152 </para>
153
154<screen role="nodump" revision="sysv"><userinput>cat &gt; /etc/cron.weekly/update-pciids.sh &lt;&lt; "EOF" &amp;&amp;
155<literal>#!/bin/bash
156/usr/sbin/update-pciids</literal>
157EOF
158chmod 754 /etc/cron.weekly/update-pciids.sh</userinput></screen>
159
160<screen role="root" revision="systemd"><userinput>cat &gt; /usr/lib/systemd/system/update-pciids.service &lt;&lt; "EOF" &amp;&amp;
161<literal>[Unit]
162Description=Update pci.ids file
163Documentation=man:update-pciids(8)
164DefaultDependencies=no
165After=local-fs.target network-online.target
166Before=shutdown.target
167
168[Service]
169Type=oneshot
170RemainAfterExit=yes
171ExecStart=/usr/sbin/update-pciids</literal>
172EOF
173cat &gt; /usr/lib/systemd/system/update-pciids.timer &lt;&lt; "EOF" &amp;&amp;
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
184systemctl enable update-pciids.timer</userinput></screen>
185
186
187 </sect2>
188
189 <sect2 role="content">
190 <title>Contents</title>
191
192 <segmentedlist>
193 <segtitle>Installed Programs</segtitle>
194 <segtitle>Installed Library</segtitle>
195 <segtitle>Installed Directory</segtitle>
196
197 <seglistitem>
198 <seg>
199 lspci, setpci, and update-pciids
200 </seg>
201 <seg>
202 libpci.so
203 </seg>
204 <seg>
205 /usr/include/pci and /usr/share/hwdata
206 </seg>
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>
218 <para>
219 is a utility for displaying information about all PCI buses
220 in the system and all devices connected to them
221 </para>
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>
231 <para>
232 is a utility for querying and configuring PCI devices
233 </para>
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>
243 <para>
244 fetches the current version of the PCI ID list. <!-- Requires
245 <xref linkend="curl"/>, <xref linkend="lynx"/> or
246 <xref linkend="wget"/>.
247 -->
248 </para>
249 <indexterm zone="pciutils update-pciids">
250 <primary sortas="b-update-pciids">update-pciids</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="libpci">
256 <term><filename class="libraryfile">libpci.so</filename></term>
257 <listitem>
258 <para>
259 is a library that allows applications to access the PCI
260 subsystem
261 </para>
262 <indexterm zone="pciutils libpci">
263 <primary sortas="c-libpci">libpci.so</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 </variablelist>
269
270 </sect2>
271
272</sect1>
Note: See TracBrowser for help on using the repository browser.