pciutils-3.6.2

#### Beyond Linux® From Scratch - Version 2019-02-27

### Chapter 12. System Utilities

- Prev

  Pax-20161104

- Next

  pm-utils-1.4.1

- Up
- Home

# pciutils-3.6.2

## 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-8.4 platform.

### Package Information

- Download (HTTP): https://www.kernel.org/pub/software/utils/pciutils/pciutils-3.6.2.tar.xz

- Download MD5 sum: 77963796d1be4f451b83e6da28ba4f82

- Download size: 340 KB

- Estimated disk space required: 3.5 MB

- Estimated build time: less than 0.1 SBU

### pciutils Dependencies

#### Recommended

cURL-7.64.0, Wget-1.20.1, OR Lynx-2.8.9rel.1 (for the update-pciids script to function correctly).

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

## Installation of PCI Utils

Install PCI Utils by running the following commands:

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

This package does not come with a test suite.

Now, as the `root` user:

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

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

## Command Explanations

`SHARED=yes`: This parameter enables building of the shared library instead of the 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.21 script or program to find cURL-7.64.0, Lynx-2.8.9rel.1 or Wget-1.20.1 which are used to download the most current file, and then replace the existing file in `/usr/share/hwdata`.

You should update the `/usr/share/hwdata/pci.ids` file periodically. If you've installed Fcron-3.2.1 and completed the section on periodic jobs, execute the following commands, as the `root` user, to create a weekly cron job:

    cat > /etc/cron.weekly/update-pciids.sh << "EOF" &&
    #!/bin/bash
    /usr/sbin/update-pciids
    EOF
    chmod 754 /etc/cron.weekly/update-pciids.sh

## Contents

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

### 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.
`libpci.so` | is library that allows applications to access the PCI subsystem.

Last updated on 2019-02-16 03:24:48 -0600

- Prev

  Pax-20161104

- Next

  pm-utils-1.4.1

- Up
- Home