forked from open-power/vpdtools
-
Notifications
You must be signed in to change notification settings - Fork 0
License
chrisshyu/vpdtools
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
vpdtools ======== Tools to create VPD for OpenPOWER systems Source: https://github.com/open-power/vpdtools VPD Format Spec: https://www-03.ibm.com/technologyconnect/tgcm/TGCMServlet.wss?id=1D060729AC96891885257E1B0053BC95 Overview ======== The VPD tools are for use in creation of binary VPD images for OpenPOWER systems createVpd.py Desc: Creates a binary VPD image from one or more input XML files Input: VPD template XML files that describe the contents of VPD Output: Binary VPD image and single XMl file that matches image reverseVpd.py Desc: Takes a binary VPD image and creates template XML files from it Input: Binary VPD image Output: Template XML files that can be modified and used to create a new image Note: Since data format (ascii vs hex) is not stored in VPD, the tool simply makes a best guess by examining the data within the keyword Dependencies ============ Python 2.7 is required. NOTE: RHEL6 is python 2.6 and this tool will not run there reverseVpd.py requires cmdline xmllint to cleanup the formatting of the output xml On Ubuntu/Debian: 'apt-get install libxml2-utils' On Redhat/Fedora: 'yum install libxml2' Examples ======== The tool comes with a set of example input files A number of the files describe specific syntax features of the tool Also included are examples of complete memcard and sysplanar templates sysplanar creation example -------------------------- $ ~/vpdtools/createVpd.py -m ~/vpdtools/examples/sysplanar/sysplanar.tvpd -i ~/vpdtools/examples/sysplanar -o /tmp/vpdout ==== Stage 1: Parsing tvpd XML Parsing tvpd ~/vpdtools/examples/sysplanar/sysplanar.tvpd Parsing tvpd ~/vpdtools/examples/sysplanar/openPower_vini_sample.xml Parsing tvpd ~/vpdtools/examples/sysplanar/openPower_osys_sample.xml Parsing tvpd ~/vpdtools/examples/sysplanar/openPower_opfr_sample.xml Parsing tvpd ~/vpdtools/examples/sysplanar/openPower_vndr_sample.xml Parsing tvpd ~/vpdtools/examples/sysplanar/openPower_veir_sample.xml Parsing tvpd ~/vpdtools/examples/sysplanar/openPower_ver0_sample.xml Parsing tvpd ~/vpdtools/examples/sysplanar/openPower_mer0_sample.xml Parsing tvpd ~/vpdtools/examples/sysplanar/openPower_vmsc_sample.xml Parsing tvpd ~/vpdtools/examples/sysplanar/openPower_vrtn_sample.xml ==== Stage 2: Verifying tvpd syntax Checking record VINI Checking record OSYS Checking record OPFR Checking record VNDR Checking record VEIR Checking record VER0 Checking record MER0 Checking record VMSC Checking record VRTN ==== Stage 3: Creating binary VPD image Wrote tvpd file: /tmp/vpdout/sysplanar.tvpd Wrote vpd file: /tmp/vpdout/sysplanar.vpd License ======= See LICENSE
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 98.7%
- Shell 1.3%