commit | afb71f75447d8ec76122b948deace54ce0be35d9 | [log] [tgz] |
---|---|---|
author | Priyanga Ramasamy <priyanga24@in.ibm.com> | Fri Oct 21 02:17:19 2022 -0500 |
committer | Santosh Puranik <santosh.puranik@in.ibm.com> | Thu Nov 03 09:01:21 2022 +0000 |
tree | 6651afe9f951fbf0918a42ff264931c11b9c47b3 | |
parent | da3b2d2507797a3aefcfe37622fab63415a7406b [diff] |
Include VSYS FV in restorable keywords list There is a new requirement to restore VSYS FV keyword along with other system backplane keywords. Along with this change, increased the table size in vpd-tool fixSystemVPD code, so that keyword FV which is of 32 bytes can fit in that table. Test: CASE 1: Automatic restore via vpd-manager ./vpd-tool -r -O /system/chassis/motherboard -R VSYS -K FV { "/system/chassis/motherboard": { "FV": "ab" } } ./vpd-tool -r -H -O /sys/bus/i2c/drivers/at24/8-0050/eeprom -R VSYS -K FV { "/sys/bus/i2c/drivers/at24/8-0050/eeprom": { "FV": " " } } systemctl restart com.ibm.VPD.Manager.service ./vpd-tool -r -H -O /sys/bus/i2c/drivers/at24/8-0050/eeprom -R VSYS -K FV { "/sys/bus/i2c/drivers/at24/8-0050/eeprom": { "FV": "ab " } } ./vpd-tool -r -O /system/chassis/motherboard -R VSYS -K FV { "/system/chassis/motherboard": { "FV": "ab" } } CASE 2: Restore using vpd-tool command ==================================================================================================================================================================================================== S.No Record Keyword Data On BMC Data On System Backplane Data Mismatch 12 VSYS FV 0x6162202020202020202020202020202020202020202020202020202020202020 0x6162202020202020202020202020202020202020202020202020202020202020 NO ==================================================================================================================================================================================================== No mismatch found. Enter 6 => If you wish to enter a new value to update both on BMC and System Backplane Enter 7 => If you wish to skip the above record-keyword pair Enter 0 => To exit successfully : 6 ==================================================================================================================================================================================================== Enter the new value to update both on BMC & System Backplane (Value should be in ASCII or in HEX(prefixed with 0x)) : 0x2020202020202020202020202020202020202020202020202020202020202020 ==================================================================================================================================================================================================== Data updated successfully. Signed-off-by: Priyanga Ramasamy <priyanga24@in.ibm.com> Change-Id: I1048e1cc39249f587355597e42a6749a1cb01fa5
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.