commit | 4330654e0f8b29f0055f36ad3983728b4ffc2853 | [log] [tgz] |
---|---|---|
author | SunnySrivastava1984 <sunnsr25@in.ibm.com> | Wed Apr 01 02:50:20 2020 -0500 |
committer | Priyanga Ramasamy <priyanga24@in.ibm.com> | Tue Jul 14 21:05:12 2020 +0530 |
tree | 4c313117382fe988c91afa6050e9a73d538a5fd8 | |
parent | 0407b1723253aea09af5defed2e39295669a87b3 [diff] |
Expand and update location code property on BUS This commit expands and updates the required location code poperty on BUS in case following condition holds true. a) if FC or SE or both keyword under VCEN record has been modified by VPD write application for Motherboard FRU. OR b) if TM or SE or both keyword under VSYS record has been modified by VPD write application for Motherboard FRU. Tested on simics. -make bus call or use VPD tool application to update keywords as mentioned above in (a) and (b). -Introspect that motherboard object on bus. -Check the value of interface "com.ibm.ipzvpd.Location", property - "LocationCode" To build the application meson -Dibm-parser=enabled -Dvpd-manager=Enabled build ninja -C build Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com> Change-Id: Ic964da0f058153bdd43b94679bdfc5596d7f3861
#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.