commit | 7f23d4d9a2398da0f4a88a7f8764ada2fed18fe7 | [log] [tgz] |
---|---|---|
author | Gunnar Mills <gmills@us.ibm.com> | Tue Dec 10 10:47:41 2024 -0600 |
committer | Gunnar Mills <gunnar@gmills.xyz> | Wed Dec 11 15:35:08 2024 +0000 |
tree | 3e7ae2c776d46c71b4ea567003345fc589fc4ed4 | |
parent | e0e1549e82c4691ad41703cfb6563c77b76cf2c4 [diff] |
Add Type = RackMount to Chassis Most IBM servers are RackMount Chassis so anywhere we create the /system/chassis, set Type to xyz.openbmc_project.Inventory.Item.Chassis.ChassisType.RackMount. One day, we could set this dynamically for tower models. This is needed because https://gerrit.openbmc.org/c/openbmc/bmcweb/+/75914 added support for dynamic ChassisType. Before 75914, ChassisType was hardcoded to RackMount. If you implement Inventory.Item.Chassis the default Chassis Type is Unknown. Unknown in 75914 maps to Invalid and ChassisType is left off the Redfish Chassis resource. The Redfish Validator flags this as an error since ChassisType is a required property in the Chassis schema. bmcweb bumps are failing with ''' ERROR - ChassisType: Mandatory prop does not exist ''' Discussed in discord at [1]. [1]: https://discord.com/channels/775381525260664832/855566794994221117/1316067028242661397 Tested: With the latest bmcweb see "ChassisType": "RackMount", for /redfish/v1/Chassis/chassis Change-Id: Ib30e7610d0dbe21d52b90764863085bc47d75e00 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
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.