Difference between revisions of "PCI Utilities"

From CBLFS
Jump to navigationJump to search
(I added the package description from BLFS.)
(I reformatted the "Contents" section to to use tables.)
Line 1: Line 1:
 
{| style="text-align: left; background-color: AliceBlue;"
 
{| style="text-align: left; background-color: AliceBlue;"
|-
+
|-valign="top"
 
!Download Source:
 
!Download Source:
 
| http://www.kernel.org/pub/software/utils/pciutils/pciutils-2.2.3.tar.bz2
 
| http://www.kernel.org/pub/software/utils/pciutils/pciutils-2.2.3.tar.bz2
 
|}
 
|}
  
'''''Warning: pciutils-2.2.4 does not provide currect libpci.a and make [[HAL]] build failed.'''''
+
'''''Warning: pciutils-2.2.4 does not provide currect libpci.a and makes the [[HAL]] build fail.'''''
 
----
 
----
  
Line 30: Line 30:
 
  install -v -m 644 lib/libpci.a /usr/lib &&
 
  install -v -m 644 lib/libpci.a /usr/lib &&
 
  install -v -m 644 lib/*.h /usr/include/pci
 
  install -v -m 644 lib/*.h /usr/include/pci
 +
 +
=== Command Explanations ===
 +
 +
'''sed -i 's/null ;/null 2>\&1 ;/' update-pciids.sh''': This command suppresses some unneeded screen output from the '''update-pciids''' command if you don't have either Lynx or Wget installed by redirecting the stderr output of the embedded '''which''' command to /dev/null.
  
 
== Multilib ==
 
== Multilib ==
Line 92: Line 96:
 
= Contents =
 
= Contents =
  
The PCI Utilities package is a set of programs for listing PCI devices, inspecting their status and setting their configuration registers.
+
{| style="text-align: left;"
 
+
|-valign="top"
Installed Programs: lspci, setpci, update-pciids
+
! Installed Programs:
 
+
| lspci, setpci and update-pciids
Installed Library: libpci.a
+
|-valign="top"
 
+
! Installed Libraries:
Installed Directory: /usr/include/pci
+
| libpci.a
 +
|-valign="top"
 +
! Installed Directories:
 +
| /usr/include/pci
 +
|}
  
 
=== Short Descriptions ===
 
=== Short Descriptions ===
  
lspci: is a utility for displaying information about all PCI buses in the system and all devices connected to them.  
+
{| style="text-align: left;"
 
+
|-valign="top"
setpci: is a utility for querying and configuring PCI devices.  
+
! lspci
 
+
| is a utility for displaying information about all PCI buses in the system and all devices connected to them.
update-pciids: fetches the current version of the PCI ID list. Requires cURL-7.15.3, Wget-1.10.2 or Lynx-2.8.5.  
+
|-valign="top"
 
+
! setpci
libpci.a: is the static library that allows applications to access the PCI subsystem.
+
| is a utility for querying and configuring PCI devices.  
 +
|-valign="top"
 +
! update-pciids
 +
| fetches the current version of the PCI ID list. Requires [[Curl]], [[Wget]] or [[Lynx]].
 +
|-valign="top"
 +
! libpci.a
 +
| is the static library that allows applications to access the PCI subsystem.
 +
|}

Revision as of 01:08, 15 December 2006

Download Source: http://www.kernel.org/pub/software/utils/pciutils/pciutils-2.2.3.tar.bz2

Warning: pciutils-2.2.4 does not provide currect libpci.a and makes the HAL build fail.


Introduction to PCI Utilities

The PCI Utilities package is a set of programs for listing PCI devices, inspecting their status and setting their configuration registers.

Dependencies

Non-Multilib

Compile the package:

sed -i 's/null ;/null 2>\&1 ;/' update-pciids.sh &&
make PREFIX=/usr

Install the package

make PREFIX=/usr install

Some packages require the PCI static library. To install the library and headers, issue the following commands:

install -v -m 755 -d /usr/include/pci &&
install -v -m 644 lib/libpci.a /usr/lib &&
install -v -m 644 lib/*.h /usr/include/pci

Command Explanations

sed -i 's/null ;/null 2>\&1 ;/' update-pciids.sh: This command suppresses some unneeded screen output from the update-pciids command if you don't have either Lynx or Wget installed by redirecting the stderr output of the embedded which command to /dev/null.

Multilib

32Bit

Compile the package:

sed -i 's/null ;/null 2>\&1 ;/' update-pciids.sh &&
make PREFIX=/usr CC="gcc ${BUILD32}"

Install the package

make PREFIX=/usr install

Some packages require the PCI static library. To install the library and headers, issue the following commands:

install -v -m 755 -d /usr/include/pci &&
install -v -m 644 lib/libpci.a /usr/lib &&
install -v -m 644 lib/*.h /usr/include/pci

N32

Compile the package:

sed -i 's/null ;/null 2>\&1 ;/' update-pciids.sh &&
make PREFIX=/usr CC="gcc ${BUILDN32}"

Install the package

make PREFIX=/usr install

Some packages require the PCI static library. To install the library and headers, issue the following commands:

install -v -m 755 -d /usr/include/pci &&
install -v -m 644 lib/libpci.a /usr/lib32 &&
install -v -m 644 lib/*.h /usr/include/pci

64Bit

Compile the package:

sed -i 's/null ;/null 2>\&1 ;/' update-pciids.sh &&
make PREFIX=/usr CC="gcc ${BUILD64}"

Install the package

make PREFIX=/usr install

Some packages require the PCI static library. To install the library and headers, issue the following commands:

install -v -m 755 -d /usr/include/pci &&
install -v -m 644 lib/libpci.a /usr/lib64 &&
install -v -m 644 lib/*.h /usr/include/pci

Configuring

pci.ids

The pci.ids data file is constantly being updated. To get a current version of this file run update-pciids. This program requires Which to find Curl, Wget, or Lynx which is used to download the most current file.

Contents

Installed Programs: lspci, setpci and update-pciids
Installed Libraries: libpci.a
Installed Directories: /usr/include/pci

Short Descriptions

lspci is a utility for displaying information about all PCI buses in the system and all devices connected to them.
setpci is a utility for querying and configuring PCI devices.
update-pciids fetches the current version of the PCI ID list. Requires Curl, Wget or Lynx.
libpci.a is the static library that allows applications to access the PCI subsystem.