[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 |
|
---|
[a9a6837e] | 7 | <!ENTITY pciutils-download-http "http://www.kernel.org/pub/software/utils/pciutils/pciutils-&pciutils-version;.tar.bz2">
|
---|
[f6f06932] | 8 | <!ENTITY pciutils-download-ftp "ftp://ftp.kernel.org/pub/software/utils/pciutils/pciutils-&pciutils-version;.tar.bz2">
|
---|
[5dfa33bf] | 9 | <!ENTITY pciutils-md5sum "86cc20eaa0360587497a8105d33e57fc">
|
---|
| 10 | <!ENTITY pciutils-size "1.1 MB">
|
---|
| 11 | <!ENTITY pciutils-buildsize "3.3 MB">
|
---|
[f6f06932] | 12 | <!ENTITY pciutils-time "less than 0.1 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[5c5cdbc] | 15 | <sect1 id="pciutils" xreflabel="PCI Utilities-&pciutils-version;">
|
---|
[a9a6837e] | 16 | <?dbhtml filename="pciutils.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>PCI Utilities-&pciutils-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="pciutils">
|
---|
| 26 | <primary sortas="a-PCI-Utilities">PCI Utilities</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to PCI Utilities</title>
|
---|
| 31 |
|
---|
[539ace5] | 32 | <para>The <application>PCI Utilities</application> package
|
---|
| 33 | is a set of programs for listing PCI devices, inspecting
|
---|
[a9a6837e] | 34 | their status and setting their configuration registers.</para>
|
---|
| 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&pciutils-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&pciutils-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &pciutils-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &pciutils-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &pciutils-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &pciutils-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
[1039de3] | 58 | <para condition="html" role="usernotes">User Notes:
|
---|
| 59 | <ulink url="&blfs-wiki;/pciutils"/></para>
|
---|
| 60 |
|
---|
[2969aa8] | 61 | </sect2>
|
---|
| 62 |
|
---|
[143ed74] | 63 | <sect2 role="installation">
|
---|
| 64 | <title>Installation of PCI Utilities</title>
|
---|
| 65 |
|
---|
[a9a6837e] | 66 | <para>Install <application>PCI Utilities</application> by
|
---|
| 67 | running the following commands:</para>
|
---|
| 68 |
|
---|
[5d28679b] | 69 | <screen><userinput>sed -i 's/null ;/null 2>\&1 ;/' update-pciids.sh &&
|
---|
| 70 | make PREFIX=/usr</userinput></screen>
|
---|
[a9a6837e] | 71 |
|
---|
[f6f06932] | 72 | <para>This package does not come with a test suite.</para>
|
---|
| 73 |
|
---|
[a9a6837e] | 74 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 75 |
|
---|
| 76 | <screen role="root"><userinput>make PREFIX=/usr install</userinput></screen>
|
---|
| 77 |
|
---|
[5dfa33bf] | 78 | <para>Some packages require the PCI static library. To install the library
|
---|
| 79 | and headers, issue the following commands as the
|
---|
[52c44ebf] | 80 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[38ec4bf] | 81 |
|
---|
[878e5ee] | 82 | <screen role="root"><userinput>install -v -m 755 -d /usr/include/pci &&
|
---|
[52c44ebf] | 83 | install -v -m 644 lib/libpci.a /usr/lib &&
|
---|
| 84 | install -v -m 644 lib/*.h /usr/include/pci</userinput></screen>
|
---|
[38ec4bf] | 85 |
|
---|
[a9a6837e] | 86 | </sect2>
|
---|
| 87 |
|
---|
[5d28679b] | 88 | <sect2 role="commands">
|
---|
| 89 | <title>Command Explanations</title>
|
---|
| 90 |
|
---|
| 91 | <para><command>sed -i 's/null ;/null 2>\&1 ;/'
|
---|
| 92 | update-pciids.sh</command>: This command suppresses some unneeded screen
|
---|
| 93 | output from the <command>update-pciids</command> command if you don't have
|
---|
[98078a63] | 94 | either <application>Lynx</application>, <application>Wget</application>,
|
---|
| 95 | or <application>Curl</application> installed by redirecting the stderr
|
---|
| 96 | output of the embedded <command>which</command> command to
|
---|
| 97 | <filename>/dev/null</filename>.</para>
|
---|
[5d28679b] | 98 |
|
---|
| 99 | </sect2>
|
---|
| 100 |
|
---|
[c0913c4] | 101 | <sect2 role="configuration">
|
---|
| 102 | <title>Configuring PCI Utilities</title>
|
---|
[bccbdaea] | 103 |
|
---|
[4b989d2] | 104 | <para>The <filename>pci.ids</filename> data file is constantly being
|
---|
| 105 | updated. To get a current version of this file, run
|
---|
| 106 | <command>update-pciids</command> as the <systemitem
|
---|
| 107 | class="username">root</systemitem> user. This program requires the
|
---|
[43b1987f] | 108 | <xref linkend="which"/> script or program to find <xref linkend="curl"/>,
|
---|
| 109 | <xref linkend="wget"/> or <xref linkend="lynx"/> which are used to
|
---|
[1ed12e2d] | 110 | download the most current file, and then replace the existing file in
|
---|
[5d28679b] | 111 | <filename class='directory'>/usr/share</filename>.</para>
|
---|
[c0913c4] | 112 |
|
---|
[1ed12e2d] | 113 | <para>You may wish to add an entry to
|
---|
| 114 | <systemitem class="username">root</systemitem>'s (or any other user who
|
---|
| 115 | has write privilege to <filename class='directory'>/usr/share</filename>)
|
---|
| 116 | crontab to automatically update the <filename>pci.ids</filename> file
|
---|
| 117 | periodically.</para>
|
---|
| 118 |
|
---|
[c0913c4] | 119 | </sect2>
|
---|
| 120 |
|
---|
[a9a6837e] | 121 | <sect2 role="content">
|
---|
| 122 | <title>Contents</title>
|
---|
| 123 |
|
---|
| 124 | <segmentedlist>
|
---|
| 125 | <segtitle>Installed Programs</segtitle>
|
---|
[1ed12e2d] | 126 | <segtitle>Installed Library</segtitle>
|
---|
| 127 | <segtitle>Installed Directory</segtitle>
|
---|
[a9a6837e] | 128 |
|
---|
| 129 | <seglistitem>
|
---|
| 130 | <seg>lspci, setpci and update-pciids</seg>
|
---|
[38ec4bf] | 131 | <seg>libpci.a</seg>
|
---|
[52c44ebf] | 132 | <seg>/usr/include/pci</seg>
|
---|
[a9a6837e] | 133 | </seglistitem>
|
---|
| 134 | </segmentedlist>
|
---|
| 135 |
|
---|
| 136 | <variablelist>
|
---|
| 137 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 138 | <?dbfo list-presentation="list"?>
|
---|
| 139 | <?dbhtml list-presentation="table"?>
|
---|
| 140 |
|
---|
| 141 | <varlistentry id="lspci">
|
---|
| 142 | <term><command>lspci</command></term>
|
---|
| 143 | <listitem>
|
---|
[539ace5] | 144 | <para>is a utility for displaying information about all PCI buses in the
|
---|
[a9a6837e] | 145 | system and all devices connected to them.</para>
|
---|
| 146 | <indexterm zone="pciutils lspci">
|
---|
| 147 | <primary sortas="b-lspci">lspci</primary>
|
---|
| 148 | </indexterm>
|
---|
| 149 | </listitem>
|
---|
| 150 | </varlistentry>
|
---|
| 151 |
|
---|
| 152 | <varlistentry id="setpci">
|
---|
| 153 | <term><command>setpci</command></term>
|
---|
| 154 | <listitem>
|
---|
| 155 | <para>is a utility for querying and configuring PCI devices.</para>
|
---|
| 156 | <indexterm zone="pciutils setpci">
|
---|
| 157 | <primary sortas="b-setpci">setpci</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
| 161 |
|
---|
| 162 | <varlistentry id="update-pciids">
|
---|
| 163 | <term><command>update-pciids</command></term>
|
---|
| 164 | <listitem>
|
---|
[539ace5] | 165 | <para>fetches the current version of the PCI ID list. Requires
|
---|
[1ed12e2d] | 166 | <xref linkend="curl"/>, <xref linkend="wget"/> or
|
---|
| 167 | <xref linkend="lynx"/>.</para>
|
---|
[a9a6837e] | 168 | <indexterm zone="pciutils update-pciids">
|
---|
| 169 | <primary sortas="b-update-pciids">update-pciids</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
[38ec4bf] | 174 | <varlistentry id="libpci">
|
---|
| 175 | <term><filename role='library'>libpci.a</filename></term>
|
---|
| 176 | <listitem>
|
---|
[52c44ebf] | 177 | <para> is the static library that allows applications to access the PCI
|
---|
| 178 | subsystem.</para>
|
---|
[38ec4bf] | 179 | <indexterm zone="pciutils libpci">
|
---|
| 180 | <primary sortas="c-libpci">libpci.a</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
| 184 |
|
---|
[a9a6837e] | 185 | </variablelist>
|
---|
| 186 |
|
---|
| 187 | </sect2>
|
---|
[f45b1953] | 188 |
|
---|
| 189 | </sect1>
|
---|