pciutils.efi is a UDK/EDK2 porting of the GNU's pciutils for the handy PCI tools: lspci
and setpci
using PUG.
- Python 2.7.10+ or Python 3.7.0+
- git 2.17.0+
- Reference:
- nasm (2.0 or above)
- iasl (version 2018xxxx or later)
- MSVC(Windows) or Xcode(Mac) or GCC(Open-source Posix)
- build-essential uuid-dev (Posix)
- pip2 install future (Python 2.7.x)
- motc (Xcode)
$ sudo apt update ; sudo apt install nasm iasl build-essential uuid-dev
- Change-directory to folder pciutils.efi .
- (Optional) Edit
config.py
for the settings accordingly in: WORKSPACE, TARGET_TXT. - (Optional) Edit
CODETREE
inconfig.py
to specify where to place the downloaded source files of the UDK git repo or any other additional respos. - Run
./pug.py -p PciUtilsPkg/PciUtilsPkg.dsc
For the 1st time setup,pug.py
would automatically try to git-clone:- the edk2 code tree
- the openssl repo
- the pciutils source
- Browse folder Build/PciUtilsPkg for the build results.
- Browse folder Build/Pug/Conf for CONF_PATH setting files.
- Run
./pug.py clean
or./pug.py cleanall
to clean (all) the intermediate files.
- Only tested on Debian & Arch Linux.
- "pci.ids" database is not working yet.
- The double/triple/quadruple command with {'x', 'm', 'v' ...} may not working correctly.
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