commit | d09d2ec1a082502890c246278a5d34c64e349f13 | [log] [tgz] |
---|---|---|
author | PriyangaRamasamy <priyanga24@in.ibm.com> | Thu Mar 12 14:11:50 2020 +0530 |
committer | SunnySrivastava1984 <sunnsr25@in.ibm.com> | Mon Jun 22 01:45:34 2020 -0500 |
tree | 3fa731b49b27c6e5bca5fbe4dacca1e0002049f4 | |
parent | a739259fedc6d390d61357a0f4a1dc95fd0e26c4 [diff] |
VPD Tool: Write keyword command line interface This commit has the command line interface for writeKeyword option in the VPD tool. --help option will provide the user - the argument format for writeKeyword option. Note: The application "vpd-manager" acts as the backend for the keyword updation. The vpd-manager executable should run in the background while testing in simics. The commits which points to the vpd-manager backend application are, < https://gerrit.openbmc-project.xyz/c/openbmc/openpower-vpd-parser/+/28991/43 > < https://gerrit.openbmc-project.xyz/c/openbmc/openpower-vpd-parser/+/29039/43 > < https://gerrit.openbmc-project.xyz/c/openbmc/openpower-vpd-parser/+/32439/10 > Tested on rainier: root@rainier:/tmp# ./vpd-tool -r -O /system/chassis/motherboard/vdd_vrm1 -R VINI -K FN { "/system/chassis/motherboard/vdd_vrm1": { "FN": "F190827" } } root@rainier:/tmp# root@rainier:/tmp# ./vpd-tool -w -O /system/chassis/motherboard/vdd_vrm1 -R VINI -K FN -V 0x616263 root@rainier:/tmp# root@rainier:/tmp# ./vpd-tool -r -O /system/chassis/motherboard/vdd_vrm1 -R VINI -K FN { "/system/chassis/motherboard/vdd_vrm1": { "FN": "abc0827" } } Change-Id: I6c586a9848497e44bf88eda78694989d0287cbba Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com>
#Overview This repository hosts code for OpenPower and IBM IPZ format VPD parsers. Both OpenPower VPD and IPZ VPD formats are structured binaries that consist of records and keywords. A record is a collection of multiple keywords. More information about the format can be found here.
The repository consists of two distinct applications, which are:
This is a build-time YAML driven application that parses the OpenPower VPD format and uses the YAML configuration (see extra-properties-example.yaml and writefru.yaml) to determine:
The application instance must be passed in the file path to the VPD (this can, for example, be a sysfs path exposed by the EEPROM device driver) and also the D-Bus object path(s) that EEPROM data needs to be published under.
This parser is can be built by passing in the --enable-ibm-parser
configure option. This parser differs from the OpenPower VPD parser in the following ways:
#
and are > 255 bytes in length).Making the application runtime JSON driven allows us to support multiple systems (with different FRU configurations) to be supported in a single code image as well as making the application more flexible for future improvements.