[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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">
|
---|
[b8f742f] | 9 | <!ENTITY pciutils-md5sum "10bab01d3c8856426cdf79f124fd4173">
|
---|
| 10 | <!ENTITY pciutils-size "190 KB">
|
---|
| 11 | <!ENTITY pciutils-buildsize "2 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 |
|
---|
[b8f742f] | 78 | <para>Some packages require the PCI static library. Note that in this
|
---|
| 79 | version of <application>PCI Utilities</application>, you may need to set
|
---|
| 80 | <quote><envar>LIBS</envar>="-lz"</quote> before running the
|
---|
| 81 | <command>configure</command> command of packages that are going to link
|
---|
| 82 | to the <filename class='libraryfile'>libpci.a</filename> library. This
|
---|
| 83 | will also link the <application>Zlib</application> library into the build
|
---|
| 84 | (this workaround is only required for packages linking to the the
|
---|
| 85 | <application>PCI Utilities</application> library, and is not needed during
|
---|
| 86 | the build of <application>PCI Utilities</application>). To install the
|
---|
| 87 | library and interface headers, issue the following commands as the
|
---|
[52c44ebf] | 88 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[38ec4bf] | 89 |
|
---|
[878e5ee] | 90 | <screen role="root"><userinput>install -v -m 755 -d /usr/include/pci &&
|
---|
[52c44ebf] | 91 | install -v -m 644 lib/libpci.a /usr/lib &&
|
---|
| 92 | install -v -m 644 lib/*.h /usr/include/pci</userinput></screen>
|
---|
[38ec4bf] | 93 |
|
---|
[a9a6837e] | 94 | </sect2>
|
---|
| 95 |
|
---|
[5d28679b] | 96 | <sect2 role="commands">
|
---|
| 97 | <title>Command Explanations</title>
|
---|
| 98 |
|
---|
| 99 | <para><command>sed -i 's/null ;/null 2>\&1 ;/'
|
---|
| 100 | update-pciids.sh</command>: This command suppresses some unneeded screen
|
---|
| 101 | output from the <command>update-pciids</command> command if you don't have
|
---|
| 102 | either <application>Lynx</application> or <application>Wget</application>
|
---|
| 103 | installed by redirecting the stderr output of the embedded
|
---|
| 104 | <command>which</command> command to <filename>/dev/null</filename>.</para>
|
---|
| 105 |
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
[c0913c4] | 108 | <sect2 role="configuration">
|
---|
| 109 | <title>Configuring PCI Utilities</title>
|
---|
[bccbdaea] | 110 |
|
---|
[4b989d2] | 111 | <para>The <filename>pci.ids</filename> data file is constantly being
|
---|
| 112 | updated. To get a current version of this file, run
|
---|
| 113 | <command>update-pciids</command> as the <systemitem
|
---|
| 114 | class="username">root</systemitem> user. This program requires the
|
---|
[1ed12e2d] | 115 | <xref linkend='which'/> script or program to find <xref linkend='curl'/>,
|
---|
| 116 | <xref linkend='wget'/> or <xref linkend='lynx'/> which are used to
|
---|
| 117 | download the most current file, and then replace the existing file in
|
---|
[5d28679b] | 118 | <filename class='directory'>/usr/share</filename>.</para>
|
---|
[c0913c4] | 119 |
|
---|
[1ed12e2d] | 120 | <para>You may wish to add an entry to
|
---|
| 121 | <systemitem class="username">root</systemitem>'s (or any other user who
|
---|
| 122 | has write privilege to <filename class='directory'>/usr/share</filename>)
|
---|
| 123 | crontab to automatically update the <filename>pci.ids</filename> file
|
---|
| 124 | periodically.</para>
|
---|
| 125 |
|
---|
[c0913c4] | 126 | </sect2>
|
---|
| 127 |
|
---|
[a9a6837e] | 128 | <sect2 role="content">
|
---|
| 129 | <title>Contents</title>
|
---|
| 130 |
|
---|
| 131 | <segmentedlist>
|
---|
| 132 | <segtitle>Installed Programs</segtitle>
|
---|
[1ed12e2d] | 133 | <segtitle>Installed Library</segtitle>
|
---|
| 134 | <segtitle>Installed Directory</segtitle>
|
---|
[a9a6837e] | 135 |
|
---|
| 136 | <seglistitem>
|
---|
| 137 | <seg>lspci, setpci and update-pciids</seg>
|
---|
[38ec4bf] | 138 | <seg>libpci.a</seg>
|
---|
[52c44ebf] | 139 | <seg>/usr/include/pci</seg>
|
---|
[a9a6837e] | 140 | </seglistitem>
|
---|
| 141 | </segmentedlist>
|
---|
| 142 |
|
---|
| 143 | <variablelist>
|
---|
| 144 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 145 | <?dbfo list-presentation="list"?>
|
---|
| 146 | <?dbhtml list-presentation="table"?>
|
---|
| 147 |
|
---|
| 148 | <varlistentry id="lspci">
|
---|
| 149 | <term><command>lspci</command></term>
|
---|
| 150 | <listitem>
|
---|
[539ace5] | 151 | <para>is a utility for displaying information about all PCI buses in the
|
---|
[a9a6837e] | 152 | system and all devices connected to them.</para>
|
---|
| 153 | <indexterm zone="pciutils lspci">
|
---|
| 154 | <primary sortas="b-lspci">lspci</primary>
|
---|
| 155 | </indexterm>
|
---|
| 156 | </listitem>
|
---|
| 157 | </varlistentry>
|
---|
| 158 |
|
---|
| 159 | <varlistentry id="setpci">
|
---|
| 160 | <term><command>setpci</command></term>
|
---|
| 161 | <listitem>
|
---|
| 162 | <para>is a utility for querying and configuring PCI devices.</para>
|
---|
| 163 | <indexterm zone="pciutils setpci">
|
---|
| 164 | <primary sortas="b-setpci">setpci</primary>
|
---|
| 165 | </indexterm>
|
---|
| 166 | </listitem>
|
---|
| 167 | </varlistentry>
|
---|
| 168 |
|
---|
| 169 | <varlistentry id="update-pciids">
|
---|
| 170 | <term><command>update-pciids</command></term>
|
---|
| 171 | <listitem>
|
---|
[539ace5] | 172 | <para>fetches the current version of the PCI ID list. Requires
|
---|
[1ed12e2d] | 173 | <xref linkend="curl"/>, <xref linkend="wget"/> or
|
---|
| 174 | <xref linkend="lynx"/>.</para>
|
---|
[a9a6837e] | 175 | <indexterm zone="pciutils update-pciids">
|
---|
| 176 | <primary sortas="b-update-pciids">update-pciids</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
[38ec4bf] | 181 | <varlistentry id="libpci">
|
---|
| 182 | <term><filename role='library'>libpci.a</filename></term>
|
---|
| 183 | <listitem>
|
---|
[52c44ebf] | 184 | <para> is the static library that allows applications to access the PCI
|
---|
| 185 | subsystem.</para>
|
---|
[38ec4bf] | 186 | <indexterm zone="pciutils libpci">
|
---|
| 187 | <primary sortas="c-libpci">libpci.a</primary>
|
---|
| 188 | </indexterm>
|
---|
| 189 | </listitem>
|
---|
| 190 | </varlistentry>
|
---|
| 191 |
|
---|
[a9a6837e] | 192 | </variablelist>
|
---|
| 193 |
|
---|
| 194 | </sect2>
|
---|
[f45b1953] | 195 |
|
---|
| 196 | </sect1>
|
---|