pciutils-3.3.0

Introduction to PCI Utils

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

This package is known to build and work properly using an LFS-7.7 platform.

Package Information

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/pciutils

Installation of PCI Utils

32-bit Installation

Install PCI Utils by running the following commands:

make PREFIX=/usr              \
     LIBDIR=/usr/lib32        \
     SHAREDIR=/usr/share/misc \
     SHARED=yes               \
     CC="gcc -m32"

This package does not come with a test suite.

Now, as the root user:

make PREFIX=/usr              \
     LIBDIR=/usr/lib32        \
     SHAREDIR=/usr/share/misc \
     SHARED=yes               \
     install install-lib      &&

chmod -v 755 /usr/lib32/libpci.so

Clean up the build directory before moving on to the next platform:

make clean

x32 ABI Installation

Install PCI Utils by running the following commands:

make PREFIX=/usr              \
     LIBDIR=/usr/libx32       \
     SHAREDIR=/usr/share/misc \
     SHARED=yes               \
     CC="gcc -mx32"

This package does not come with a test suite.

Now, as the root user:

make PREFIX=/usr              \
     LIBDIR=/usr/libx32       \
     SHAREDIR=/usr/share/misc \
     SHARED=yes               \
     install install-lib      &&

chmod -v 755 /usr/libx32/libpci.so

Clean up the build directory before moving on to the next platform:

make clean

64-bit Installation

Install PCI Utils by running the following commands:

make PREFIX=/usr              \
     SHAREDIR=/usr/share/misc \
     SHARED=yes

This package does not come with a test suite.

Now, as the root user:

make PREFIX=/usr              \
     SHAREDIR=/usr/share/misc \
     SHARED=yes               \
     install install-lib      &&

chmod -v 755 /usr/lib/libpci.so

Command Explanations

SHARED=yes: This parameter enables building of shared library instead of static one.

ZLIB=no: This option prevents compression of the pci.ids file.

Configuring PCI Utils

The pci.ids data file is constantly being updated. To get a current version of this file, run update-pciids as the root user. This program requires the Which-2.20 script or program to find cURL-7.40.0, Lynx-2.8.8rel.2 or Wget-1.16.1 which are used to download the most current file, and then replace the existing file in /usr/share/misc.

You may wish to add an entry to root's (or any other user who has write privilege to /usr/share/misc) crontab to automatically update the pci.ids file periodically.

Contents

Installed Programs: lspci, setpci and update-pciids
Installed Library: libpci.so
Installed Directory: /usr/include/pci

Short Descriptions

lspci

is an utility for displaying information about all PCI buses in the system and all devices connected to them.

setpci

is an utility for querying and configuring PCI devices.

update-pciids

fetches the current version of the PCI ID list. Requires cURL-7.40.0, Lynx-2.8.8rel.2 or Wget-1.16.1.

libpci.so

is library that allows applications to access the PCI subsystem.

Last updated on 2015-02-25 17:44:17 -0500