pciutils-3.14.0

#### Gaming Linux® From Scratch - Version 13.0

### Chapter 11. Graphics Drivers - Preliminaries

- Prev

  GPU Kernel Options and Firmware

- Next

  hwdata-0.404

- Up
- Home

# pciutils-3.14.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.

- Download: https://mj.ucw.cz/download/linux/pci/pciutils-3.14.0.tar.gz

### pciutils Dependencies

Recommended
hwdata-0.404 (runtime)

## Installation of PCI Utils

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

    sed -r '/INSTALL.*(PCI_IDS|update-pciids)/d' \
        -i Makefile

Install PCI Utils by running the following commands:

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

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.404 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
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 margining PCIe links
setpci | is a utility for querying and configuring PCI devices
`libpci` | is a library that allows applications to access the PCI subsystem

- Prev

  GPU Kernel Options and Firmware

- Next

  hwdata-0.404

- Up
- Home