#### Beyond Linux® From Scratch (System V Edition) - Version 12.3

### Chapter 12. System Utilities

- Prev

  Pax-20240817

- Next

  pm-utils-1.4.1

- Up
- Home

# pciutils-3.13.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 12.3 platform.

### Package Information

- Download (HTTP): https://mj.ucw.cz/download/linux/pci/pciutils-3.13.0.tar.gz

- Download MD5 sum: 1edb865de7a2de84e67508911010091b

- Download size: 660 KB

- Estimated disk space required: 4.9 MB

- Estimated build time: less than 0.1 SBU

### pciutils Dependencies

#### Recommended

hwdata-0.392 (runtime)

## Installation of PCI Utils

Prevent the installation of the `pci.ids` file to avoid a conflict with the hwdata-0.392 package:

    sed -r '/INSTALL/{/PCI_IDS|update-pciids /d; s/update-pciids.8//}' \
        -i Makefile

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

Next, install the hwdata-0.392 package for the `pci.ids` file.

## Command Explanations

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

## Contents

Installed Programs: lspci, pcilmr, and setpci
Installed Library: libpci.so
Installed Directory: /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
pcilmr | is a utility for managing PCIe links
setpci | is a utility for querying and configuring PCI devices
`libpci.so` | is a library that allows applications to access the PCI subsystem

- Prev

  Pax-20240817

- Next

  pm-utils-1.4.1

- Up
- Home