commit | 44fca017a169a464d88af1234d496c8e9970ef74 | [log] [tgz] |
---|---|---|
author | PriyangaRamasamy <priyanga24@in.ibm.com> | Mon Aug 26 02:35:05 2024 -0500 |
committer | Jinu Joy Thomas <jinu.joy.thomas@in.ibm.com> | Thu Sep 19 15:02:01 2024 +0000 |
tree | 3666869fe463bd649e19d9a3455c90a4f4428729 | |
parent | 1da52faf0f5a724f1bc782f1ff6ff46d14ff60c4 [diff] |
1060:vpd-tool:Check for read only FRUs before write This commit fixes the issue where vpd-tool tries to perform write on request for the FRUs which are read only. Test: ```./vpd-tool -w -O /system/chassis/motherboard/vrm0 -R VINI -K CC --value 51F3``` Read only EEPROM. Update not allowed. Change-Id: If24d2a17e26ecb1ca603cbba8a05a2959102fa64 Signed-off-by: PriyangaRamasamy <priyanga24@in.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.