commit | 1b0261197f0ddc30c3dc7aaabe9d8c3229249029 | [log] [tgz] |
---|---|---|
author | Alpana Kumari <alpankum@in.ibm.com> | Wed Mar 02 23:41:38 2022 -0600 |
committer | Alpana Kumari <alpankum@in.ibm.com> | Fri May 06 07:13:09 2022 -0500 |
tree | 2feeff2a66898ae62b4cfa80ff90fd0f66216a23 | |
parent | 40d1c1968502d55b35252ede983eba7e4e0d4418 [diff] |
Modify get system json We have some change in system json to support Everest Pass2 jsons. To fetch that json we got some changes in vpd-parser also. Test- Tested on Ever10 PASS2 system- ./ibm-read-vpd -f /sys/bus/i2c/drivers/at24/8-0050/eeprom DBG:processing for IM - 50003000 DBG:HW from vpd - 0015 DBG:hw versions are- DBG:"000A" DBG:"000B" DBG:"000C" DBG:"0014" DBG: hwKw not found in hw version set DBG: json name- 50003000_v2.json DBG:processing for IM - 50003000 DBG:HW from vpd - 0015 …. DBG: json name- 50003000_v2.json DBG: systemType- 50003000_v2.json DeviceTree - conf-aspeed-bmc-ibm-everest.dtb root@ever10bmc:/tmp# ls -ltr /var/lib/vpd/vpd_inventory.json lrwxrwxrwx 1 root root 31 May 6 11:30 /var/lib/vpd/vpd_inventory.json -> /usr/share/vpd/50003000_v2.json ========================================================== Changed HW value using vpd-tool, to pickup PASS1 json- ./ibm-read-vpd -f /sys/bus/i2c/drivers/at24/8-0050/eeprom DBG:processing for IM - 50003000 DBG:HW from vpd - 000A DBG:hw versions are- DBG:"000A" DBG: hwKw matched in hw version set DBG: json name- 50003000.json DBG:processing for IM - 50003000 DBG:HW from vpd - 000A . . . . DBG: json name- 50003000.json DBG: systemType- 50003000.json DeviceTree - conf-aspeed-bmc-ibm-everest.dtb root@ever10bmc:/tmp# ls -ltr /var/lib/vpd/vpd_inventory.json lrwxrwxrwx 1 root root 28 May 6 12:07 /var/lib/vpd/vpd_inventory.json -> /usr/share/vpd/50003000.json Signed-off-by: Alpana Kumari <alpankum@in.ibm.com> Change-Id: I5301a47bff12d25f844e176be34bcb0edf722665
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.