[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 |
|
---|
[b636e399] | 7 | <!ENTITY pciutils-download-http " ">
|
---|
| 8 | <!ENTITY pciutils-download-ftp "ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci//pciutils-&pciutils-version;.tar.gz">
|
---|
| 9 | <!ENTITY pciutils-md5sum "79312f138311d29291c7d44d624cd37e">
|
---|
| 10 | <!ENTITY pciutils-size "372 KB">
|
---|
| 11 | <!ENTITY pciutils-buildsize "3.5 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 |
|
---|
[b636e399] | 36 | &lfs70_checked;
|
---|
[fd91fea] | 37 |
|
---|
[a9a6837e] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
[b636e399] | 40 | <!--
|
---|
[a9a6837e] | 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&pciutils-download-http;"/></para>
|
---|
[b636e399] | 43 | </listitem> -->
|
---|
[a9a6837e] | 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&pciutils-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &pciutils-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &pciutils-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &pciutils-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &pciutils-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
| 60 |
|
---|
[1039de3] | 61 | <para condition="html" role="usernotes">User Notes:
|
---|
| 62 | <ulink url="&blfs-wiki;/pciutils"/></para>
|
---|
| 63 |
|
---|
[2969aa8] | 64 | </sect2>
|
---|
| 65 |
|
---|
[143ed74] | 66 | <sect2 role="installation">
|
---|
| 67 | <title>Installation of PCI Utilities</title>
|
---|
| 68 |
|
---|
[ab989b88] | 69 | <para>First, fix a minor script error. If you want to compress the PCI
|
---|
| 70 | data, use 1 instead of 0 in the instruction below. The uncompressed data
|
---|
| 71 | is currently about 710KB.</para>
|
---|
| 72 |
|
---|
| 73 | <screen><userinput>sed -i -e 's/^PCI_COMPRESSED_IDS=/&0/' update-pciids.sh </userinput></screen>
|
---|
| 74 |
|
---|
[a9a6837e] | 75 | <para>Install <application>PCI Utilities</application> by
|
---|
| 76 | running the following commands:</para>
|
---|
| 77 |
|
---|
[0829916] | 78 | <screen><userinput>make PREFIX=/usr ZLIB=no</userinput></screen>
|
---|
[a9a6837e] | 79 |
|
---|
[f6f06932] | 80 | <para>This package does not come with a test suite.</para>
|
---|
| 81 |
|
---|
[a9a6837e] | 82 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 83 |
|
---|
| 84 | <screen role="root"><userinput>make PREFIX=/usr install</userinput></screen>
|
---|
| 85 |
|
---|
[5dfa33bf] | 86 | <para>Some packages require the PCI static library. To install the library
|
---|
[fd91fea] | 87 | and headers, issue the following command as the
|
---|
[52c44ebf] | 88 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[38ec4bf] | 89 |
|
---|
[fd91fea] | 90 | <screen role="root"><userinput>make PREFIX=/usr install-lib</userinput></screen>
|
---|
| 91 |
|
---|
[a9a6837e] | 92 | </sect2>
|
---|
| 93 |
|
---|
[0829916] | 94 | <sect2 role="commands">
|
---|
| 95 | <title>Command Explanations</title>
|
---|
| 96 |
|
---|
[a41f643] | 97 | <para><parameter>ZLIB=no</parameter>: This parameter prevents compression of
|
---|
| 98 | the <filename>pci.ids</filename> file which is needed by other applications
|
---|
[0829916] | 99 | such as <xref linkend="hal"/>.</para>
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
[c0913c4] | 102 | <sect2 role="configuration">
|
---|
| 103 | <title>Configuring PCI Utilities</title>
|
---|
[bccbdaea] | 104 |
|
---|
[4b989d2] | 105 | <para>The <filename>pci.ids</filename> data file is constantly being
|
---|
| 106 | updated. To get a current version of this file, run
|
---|
| 107 | <command>update-pciids</command> as the <systemitem
|
---|
| 108 | class="username">root</systemitem> user. This program requires the
|
---|
[43b1987f] | 109 | <xref linkend="which"/> script or program to find <xref linkend="curl"/>,
|
---|
| 110 | <xref linkend="wget"/> or <xref linkend="lynx"/> which are used to
|
---|
[1ed12e2d] | 111 | download the most current file, and then replace the existing file in
|
---|
[5d28679b] | 112 | <filename class='directory'>/usr/share</filename>.</para>
|
---|
[c0913c4] | 113 |
|
---|
[1ed12e2d] | 114 | <para>You may wish to add an entry to
|
---|
| 115 | <systemitem class="username">root</systemitem>'s (or any other user who
|
---|
| 116 | has write privilege to <filename class='directory'>/usr/share</filename>)
|
---|
| 117 | crontab to automatically update the <filename>pci.ids</filename> file
|
---|
| 118 | periodically.</para>
|
---|
| 119 |
|
---|
[c0913c4] | 120 | </sect2>
|
---|
| 121 |
|
---|
[a9a6837e] | 122 | <sect2 role="content">
|
---|
| 123 | <title>Contents</title>
|
---|
| 124 |
|
---|
| 125 | <segmentedlist>
|
---|
| 126 | <segtitle>Installed Programs</segtitle>
|
---|
[1ed12e2d] | 127 | <segtitle>Installed Library</segtitle>
|
---|
| 128 | <segtitle>Installed Directory</segtitle>
|
---|
[a9a6837e] | 129 |
|
---|
| 130 | <seglistitem>
|
---|
| 131 | <seg>lspci, setpci and update-pciids</seg>
|
---|
[38ec4bf] | 132 | <seg>libpci.a</seg>
|
---|
[52c44ebf] | 133 | <seg>/usr/include/pci</seg>
|
---|
[a9a6837e] | 134 | </seglistitem>
|
---|
| 135 | </segmentedlist>
|
---|
| 136 |
|
---|
| 137 | <variablelist>
|
---|
| 138 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 139 | <?dbfo list-presentation="list"?>
|
---|
| 140 | <?dbhtml list-presentation="table"?>
|
---|
| 141 |
|
---|
| 142 | <varlistentry id="lspci">
|
---|
| 143 | <term><command>lspci</command></term>
|
---|
| 144 | <listitem>
|
---|
[539ace5] | 145 | <para>is a utility for displaying information about all PCI buses in the
|
---|
[a9a6837e] | 146 | system and all devices connected to them.</para>
|
---|
| 147 | <indexterm zone="pciutils lspci">
|
---|
| 148 | <primary sortas="b-lspci">lspci</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 |
|
---|
| 153 | <varlistentry id="setpci">
|
---|
| 154 | <term><command>setpci</command></term>
|
---|
| 155 | <listitem>
|
---|
| 156 | <para>is a utility for querying and configuring PCI devices.</para>
|
---|
| 157 | <indexterm zone="pciutils setpci">
|
---|
| 158 | <primary sortas="b-setpci">setpci</primary>
|
---|
| 159 | </indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="update-pciids">
|
---|
| 164 | <term><command>update-pciids</command></term>
|
---|
| 165 | <listitem>
|
---|
[539ace5] | 166 | <para>fetches the current version of the PCI ID list. Requires
|
---|
[1ed12e2d] | 167 | <xref linkend="curl"/>, <xref linkend="wget"/> or
|
---|
| 168 | <xref linkend="lynx"/>.</para>
|
---|
[a9a6837e] | 169 | <indexterm zone="pciutils update-pciids">
|
---|
| 170 | <primary sortas="b-update-pciids">update-pciids</primary>
|
---|
| 171 | </indexterm>
|
---|
| 172 | </listitem>
|
---|
| 173 | </varlistentry>
|
---|
| 174 |
|
---|
[38ec4bf] | 175 | <varlistentry id="libpci">
|
---|
| 176 | <term><filename role='library'>libpci.a</filename></term>
|
---|
| 177 | <listitem>
|
---|
[52c44ebf] | 178 | <para> is the static library that allows applications to access the PCI
|
---|
| 179 | subsystem.</para>
|
---|
[38ec4bf] | 180 | <indexterm zone="pciutils libpci">
|
---|
| 181 | <primary sortas="c-libpci">libpci.a</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
[a9a6837e] | 186 | </variablelist>
|
---|
| 187 |
|
---|
| 188 | </sect2>
|
---|
[f45b1953] | 189 |
|
---|
| 190 | </sect1>
|
---|