[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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY pciutils-download-http "&kernel-dl;/software/utils/pciutils/pciutils-&pciutils-version;.tar.xz">
|
---|
[303d9be] | 8 | <!ENTITY pciutils-download-ftp " ">
|
---|
[97828bc] | 9 | <!ENTITY pciutils-md5sum "77963796d1be4f451b83e6da28ba4f82">
|
---|
| 10 | <!ENTITY pciutils-size "340 KB">
|
---|
| 11 | <!ENTITY pciutils-buildsize "3.5 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 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[4890200] | 23 | <title>pciutils-&pciutils-version;</title>
|
---|
[a9a6837e] | 24 |
|
---|
| 25 | <indexterm zone="pciutils">
|
---|
[4890200] | 26 | <primary sortas="a-pciutils">pciutils</primary>
|
---|
[a9a6837e] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[564851b] | 30 | <title>Introduction to PCI Utils</title>
|
---|
[a9a6837e] | 31 |
|
---|
[564851b] | 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>
|
---|
[a9a6837e] | 37 |
|
---|
[97828bc] | 38 | &lfs83_checked;
|
---|
[fd91fea] | 39 |
|
---|
[a9a6837e] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[564851b] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&pciutils-download-http;"/>
|
---|
| 45 | </para>
|
---|
[2a05c87] | 46 | </listitem>
|
---|
[a9a6837e] | 47 | <listitem>
|
---|
[564851b] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&pciutils-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[a9a6837e] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[564851b] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &pciutils-md5sum;
|
---|
| 55 | </para>
|
---|
[a9a6837e] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[564851b] | 58 | <para>
|
---|
| 59 | Download size: &pciutils-size;
|
---|
| 60 | </para>
|
---|
[a9a6837e] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[564851b] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &pciutils-buildsize;
|
---|
| 65 | </para>
|
---|
[a9a6837e] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[564851b] | 68 | <para>
|
---|
| 69 | Estimated build time: &pciutils-time;
|
---|
| 70 | </para>
|
---|
[a9a6837e] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[1039de3] | 74 | <para condition="html" role="usernotes">User Notes:
|
---|
[564851b] | 75 | <ulink url="&blfs-wiki;/pciutils"/>
|
---|
| 76 | </para>
|
---|
[2969aa8] | 77 | </sect2>
|
---|
| 78 |
|
---|
[143ed74] | 79 | <sect2 role="installation">
|
---|
[564851b] | 80 | <title>Installation of PCI Utils</title>
|
---|
[143ed74] | 81 |
|
---|
[c503fad7] | 82 | <para>
|
---|
[564851b] | 83 | Install <application>PCI Utils</application> by
|
---|
[c503fad7] | 84 | running the following commands:
|
---|
| 85 | </para>
|
---|
[a9a6837e] | 86 |
|
---|
[94f93146] | 87 | <screen><userinput>make PREFIX=/usr \
|
---|
| 88 | SHAREDIR=/usr/share/hwdata \
|
---|
[857e2fb] | 89 | SHARED=yes</userinput></screen>
|
---|
[a9a6837e] | 90 |
|
---|
[c503fad7] | 91 | <para>
|
---|
| 92 | This package does not come with a test suite.
|
---|
| 93 | </para>
|
---|
[f6f06932] | 94 |
|
---|
[c503fad7] | 95 | <para>
|
---|
| 96 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 97 | </para>
|
---|
[a9a6837e] | 98 |
|
---|
[7089c646] | 99 | <screen role="root"><userinput>make PREFIX=/usr \
|
---|
[94f93146] | 100 | SHAREDIR=/usr/share/hwdata \
|
---|
| 101 | SHARED=yes \
|
---|
| 102 | install install-lib &&
|
---|
[5f26d66f] | 103 |
|
---|
[857e2fb] | 104 | chmod -v 755 /usr/lib/libpci.so</userinput></screen>
|
---|
[fd91fea] | 105 |
|
---|
[a9a6837e] | 106 | </sect2>
|
---|
| 107 |
|
---|
[0829916] | 108 | <sect2 role="commands">
|
---|
| 109 | <title>Command Explanations</title>
|
---|
| 110 |
|
---|
[c503fad7] | 111 | <para>
|
---|
| 112 | <parameter>SHARED=yes</parameter>: This parameter enables building of
|
---|
[d900e405] | 113 | the shared library instead of the static one.
|
---|
[c503fad7] | 114 | </para>
|
---|
[2a05c87] | 115 |
|
---|
[c503fad7] | 116 | <para>
|
---|
[857e2fb] | 117 | <option>ZLIB=no</option>: This option prevents compression of
|
---|
[564851b] | 118 | the <filename>pci.ids</filename> file.
|
---|
[c503fad7] | 119 | </para>
|
---|
[2a05c87] | 120 |
|
---|
[0829916] | 121 | </sect2>
|
---|
| 122 |
|
---|
[c0913c4] | 123 | <sect2 role="configuration">
|
---|
[564851b] | 124 | <title>Configuring PCI Utils</title>
|
---|
| 125 |
|
---|
| 126 | <para>
|
---|
| 127 | The <filename>pci.ids</filename> data file is constantly being
|
---|
| 128 | updated. To get a current version of this file, run
|
---|
| 129 | <command>update-pciids</command> as the <systemitem
|
---|
| 130 | class="username">root</systemitem> user. This program requires the
|
---|
[6397333] | 131 | <xref linkend="which"/> script or program to find
|
---|
| 132 | <ulink url="&blfs-book;basicnet/curl.html">curl</ulink>,
|
---|
| 133 | <ulink url="&blfs-book;basicnet/lynx.html">lynx</ulink> or
|
---|
| 134 | <xref linkend="wget"/> which are used to
|
---|
[564851b] | 135 | download the most current file, and then replace the existing file in
|
---|
[7b6d7cd] | 136 | <filename class="directory">/usr/share/hwdata</filename>.
|
---|
[564851b] | 137 | </para>
|
---|
| 138 |
|
---|
[ac8c7d4] | 139 | <para revision="sysv">
|
---|
[564851b] | 140 | You may wish to add an entry to
|
---|
| 141 | <systemitem class="username">root</systemitem>'s (or any other user who has
|
---|
[7b6d7cd] | 142 | write privilege to <filename class="directory">/usr/share/hwdata</filename>)
|
---|
[564851b] | 143 | crontab to automatically update the <filename>pci.ids</filename> file
|
---|
| 144 | periodically.
|
---|
| 145 | </para>
|
---|
[1ed12e2d] | 146 |
|
---|
[ac8c7d4] | 147 | <para revision="systemd">
|
---|
| 148 | You should update the <filename>/usr/share/hwdata/pci.ids</filename> file
|
---|
| 149 | periodically. Execute the following commands, as the
|
---|
| 150 | <systemitem class="username">root</systemitem> user, to create a systemd
|
---|
[df9499b] | 151 | timer to update it weekly on Sundays at 2:30 A.M. (local time):
|
---|
[ac8c7d4] | 152 | </para>
|
---|
| 153 |
|
---|
| 154 | <screen role="root" revision="systemd"><userinput>cat > /lib/systemd/system/update-pciids.service << "EOF" &&
|
---|
| 155 | <literal>[Unit]
|
---|
| 156 | Description=Update pci.ids file
|
---|
| 157 | Documentation=man:update-pciids(8)
|
---|
| 158 | DefaultDependencies=no
|
---|
| 159 | After=local-fs.target
|
---|
| 160 | Before=shutdown.target
|
---|
| 161 |
|
---|
| 162 | [Service]
|
---|
| 163 | Type=oneshot
|
---|
| 164 | RemainAfterExit=yes
|
---|
| 165 | ExecStart=/usr/sbin/update-pciids</literal>
|
---|
| 166 | EOF
|
---|
| 167 | cat > /lib/systemd/system/update-pciids.timer << "EOF" &&
|
---|
| 168 | <literal>[Unit]
|
---|
| 169 | Description=Update pci.ids file weekly
|
---|
| 170 |
|
---|
| 171 | [Timer]
|
---|
| 172 | OnCalendar=Sun 02:30:00
|
---|
| 173 | Persistent=true
|
---|
| 174 |
|
---|
| 175 | [Install]
|
---|
| 176 | WantedBy=timers.target</literal>
|
---|
| 177 | EOF
|
---|
[df9499b] | 178 | systemctl enable update-pciids.timer</userinput></screen>
|
---|
[ac8c7d4] | 179 |
|
---|
| 180 |
|
---|
[c0913c4] | 181 | </sect2>
|
---|
| 182 |
|
---|
[a9a6837e] | 183 | <sect2 role="content">
|
---|
| 184 | <title>Contents</title>
|
---|
| 185 |
|
---|
| 186 | <segmentedlist>
|
---|
| 187 | <segtitle>Installed Programs</segtitle>
|
---|
[1ed12e2d] | 188 | <segtitle>Installed Library</segtitle>
|
---|
| 189 | <segtitle>Installed Directory</segtitle>
|
---|
[a9a6837e] | 190 |
|
---|
| 191 | <seglistitem>
|
---|
[564851b] | 192 | <seg>
|
---|
[29efd929] | 193 | lspci, setpci, and update-pciids
|
---|
[564851b] | 194 | </seg>
|
---|
| 195 | <seg>
|
---|
| 196 | libpci.so
|
---|
| 197 | </seg>
|
---|
| 198 | <seg>
|
---|
[29efd929] | 199 | /usr/include/pci and /usr/share/hwdata
|
---|
[564851b] | 200 | </seg>
|
---|
[a9a6837e] | 201 | </seglistitem>
|
---|
| 202 | </segmentedlist>
|
---|
| 203 |
|
---|
| 204 | <variablelist>
|
---|
| 205 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 206 | <?dbfo list-presentation="list"?>
|
---|
| 207 | <?dbhtml list-presentation="table"?>
|
---|
| 208 |
|
---|
| 209 | <varlistentry id="lspci">
|
---|
| 210 | <term><command>lspci</command></term>
|
---|
| 211 | <listitem>
|
---|
[564851b] | 212 | <para>
|
---|
[73fe507] | 213 | is a utility for displaying information about all PCI buses
|
---|
[564851b] | 214 | in the system and all devices connected to them.
|
---|
| 215 | </para>
|
---|
[a9a6837e] | 216 | <indexterm zone="pciutils lspci">
|
---|
| 217 | <primary sortas="b-lspci">lspci</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
| 221 |
|
---|
| 222 | <varlistentry id="setpci">
|
---|
| 223 | <term><command>setpci</command></term>
|
---|
| 224 | <listitem>
|
---|
[564851b] | 225 | <para>
|
---|
[73fe507] | 226 | is a utility for querying and configuring PCI devices.
|
---|
[564851b] | 227 | </para>
|
---|
[a9a6837e] | 228 | <indexterm zone="pciutils setpci">
|
---|
| 229 | <primary sortas="b-setpci">setpci</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="update-pciids">
|
---|
| 235 | <term><command>update-pciids</command></term>
|
---|
| 236 | <listitem>
|
---|
[564851b] | 237 | <para>
|
---|
| 238 | fetches the current version of the PCI ID list. Requires
|
---|
[6397333] | 239 | curl, lynx, or wget.
|
---|
[564851b] | 240 | </para>
|
---|
[a9a6837e] | 241 | <indexterm zone="pciutils update-pciids">
|
---|
| 242 | <primary sortas="b-update-pciids">update-pciids</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
[38ec4bf] | 247 | <varlistentry id="libpci">
|
---|
[4890200] | 248 | <term><filename class="libraryfile">libpci.so</filename></term>
|
---|
[38ec4bf] | 249 | <listitem>
|
---|
[564851b] | 250 | <para>
|
---|
| 251 | is library that allows applications to access the PCI
|
---|
| 252 | subsystem.
|
---|
| 253 | </para>
|
---|
[38ec4bf] | 254 | <indexterm zone="pciutils libpci">
|
---|
[2a05c87] | 255 | <primary sortas="c-libpci">libpci.so</primary>
|
---|
[38ec4bf] | 256 | </indexterm>
|
---|
| 257 | </listitem>
|
---|
| 258 | </varlistentry>
|
---|
| 259 |
|
---|
[a9a6837e] | 260 | </variablelist>
|
---|
| 261 |
|
---|
| 262 | </sect2>
|
---|
[f45b1953] | 263 |
|
---|
| 264 | </sect1>
|
---|