cecekpawon / pciutils.efi

The UDK/UEFI porting of the GNU's pciutils/lspci/setpci

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pciutils.efi

pciutils.efi is a UDK/EDK2 porting of the GNU's pciutils for the handy PCI tools: lspci and setpci using PUG.

Prerequisites:

  1. Python 2.7.10+ or Python 3.7.0+
  2. git 2.17.0+

Generic prerequisites for the UDK porting:

  1. Reference:
  2. nasm (2.0 or above)
  3. iasl (version 2018xxxx or later)
  4. MSVC(Windows) or Xcode(Mac) or GCC(Open-source Posix)
  5. build-essential uuid-dev (Posix)
  6. pip2 install future (Python 2.7.x)
  7. motc (Xcode)

Tool installation for any Debian-Based Linux:

$ sudo apt update ; sudo apt install nasm iasl build-essential uuid-dev

Usage:

  1. Change-directory to folder pciutils.efi .
  2. (Optional) Edit config.py for the settings accordingly in: WORKSPACE, TARGET_TXT.
  3. (Optional) Edit CODETREE in config.py to specify where to place the downloaded source files of the UDK git repo or any other additional respos.
  4. Run ./pug.py -p PciUtilsPkg/PciUtilsPkg.dsc
    For the 1st time setup, pug.py would automatically try to git-clone:
  5. Browse folder Build/PciUtilsPkg for the build results.
  6. Browse folder Build/Pug/Conf for CONF_PATH setting files.
  7. Run ./pug.py clean or ./pug.py cleanall to clean (all) the intermediate files.

Known issues:

  1. Only tested on Debian & Arch Linux.
  2. "pci.ids" database is not working yet.
  3. The double/triple/quadruple command with {'x', 'm', 'v' ...} may not working correctly.

Have Fun!

pciutils.efi
├── PciUtilsPkg
│   ├── Build
│   │   └── X64
│   │       ├── lspci.efi
│   │       ├── pci.ids.gz
│   │       └── setpci.efi
│   ├── Core
│   │   └── pciutils
│   ├── Include
│   │   ├── config.h
│   │   └── sys
│   │       ├── alloca.h
│   │       └── io.h
│   ├── Library
│   │   └── PciUtilsLib
│   │       └── PciUtilsLib.inf
│   ├── PciUtilsPkg.dec
│   ├── PciUtilsPkg.dsc
│   └── Platform
│       ├── example.inf
│       ├── lspci.inf
│       └── setpci.inf
└── README.md

About

The UDK/UEFI porting of the GNU's pciutils/lspci/setpci


Languages

Language:C 100.0%