commit | e5f177a5f08c5dfc9a11770c4270080cee73bd92 | [log] [tgz] |
---|---|---|
author | Santosh Puranik <santosh.puranik@in.ibm.com> | Mon Jan 24 20:14:46 2022 +0530 |
committer | Santosh Puranik <santosh.puranik@in.ibm.com> | Thu Jan 27 16:44:52 2022 +0530 |
tree | a11fccc94c4196b315195ff9b4b08c2fb150eeed | |
parent | 3723378568ede32203bbbb76f86083db50978803 [diff] |
Fix HW Keyword Handling This commit fixes how we handle multiple planar passes. For HW keywords above 2, we do not have an entry in the system type map. We cannot keep adding a new entry to the system type to dev. tree map every time we get a new planar pass (when the new pass does not need a new device tree). This commit makes use of existing code that handles constraints in the systems JSON and enables us to default to a system type (which is basically our JSON name) when the constraint is not met. Tested: Tested on a pass 4 planar and ensured we load the right device tree. Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com> Change-Id: Ibaf9785314ca3920072663d52fffecfca28c9445
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.