commit | bca5aaa512c48606b730cdf21e8cb333c7ffcd3d | [log] [tgz] |
---|---|---|
author | SunnySrivastava1984 <sunnsr25@in.ibm.com> | Tue Apr 21 05:31:04 2020 -0500 |
committer | Priyanga Ramasamy <priyanga24@in.ibm.com> | Tue Jul 14 21:05:12 2020 +0530 |
tree | 248d6bcbb11354d668b79482ea63cabd9df50cdf | |
parent | c743d8210a1d60e159259f51c25b3e3837d750ae [diff] |
Un-expanded to expanded location code conversion This commit implements an api to get expanded location code from a given un-expanded location code and node number. In case invalid argument is passed or the location code is not found, corresponding error is returned to the caller. Tested on simics. To build use following command. meson -Dibm-parser=enabled -Dvpd-manager=enabled build ninja -C build Sample bus call. busctl call com.ibm.VPD.Manager /com/ibm/VPD/Manager com.ibm.VPD.Manager GetExpandedLocationCode sq <locationCode> <nodeNumber>. Signed-off-by: SunnySrivastava1984 <sunnsr25@in.ibm.com> Change-Id: I52654a1c34d25dc9b861159a2ae1d15379b44677
#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.