51748cfb | 28-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Add main application
Add main program to read OpenPOWER VPD, parse it and then to write it to the inventory. The program needs as input - VPD file, FRU type and FRU object path.
Change-Id: Iaebc0d5
Add main application
Add main program to read OpenPOWER VPD, parse it and then to write it to the inventory. The program needs as input - VPD file, FRU type and FRU object path.
Change-Id: Iaebc0d5a99f5c12e408de893bd1f310145b4b360 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
0361e3f1 | 29-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Add argument parser
Add command-line argument parser for the main application. This is built over the GNU getopt.
Change-Id: Ida6ea6894d4832fd631d8bd1e2b6f4a3fb496023 Signed-off-by: Deepak Kodihall
Add argument parser
Add command-line argument parser for the main application. This is built over the GNU getopt.
Change-Id: Ida6ea6894d4832fd631d8bd1e2b6f4a3fb496023 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
82c1e566 | 28-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
inventory : implement VPD write
Define and implement API to write parsed OpenPOWER VPD for a FRU to the inventory.
The API needs as input the FRU type, FRU object path and parsed VPD. It makes use
inventory : implement VPD write
Define and implement API to write parsed OpenPOWER VPD for a FRU to the inventory.
The API needs as input the FRU type, FRU object path and parsed VPD. It makes use of the inventory manager to then create the desired FRU object, populated with the VPD.
Change-Id: I97ec7e1f0cd7b28b5ccb5d8e7dbeb2cad2a7093e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
8457f821 | 29-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
inventory: write YAML parser
Write python-based parser for writefru.yaml. The parser generates writefru.hpp, which would have code to write to the inventory-manager the FRU VPD information, as descr
inventory: write YAML parser
Write python-based parser for writefru.yaml. The parser generates writefru.hpp, which would have code to write to the inventory-manager the FRU VPD information, as described in writefru.yaml.
Change-Id: I91776f808ef720e96c1b6fbd17e5f1edb93ea8f8 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
aabb33a0 | 29-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
inventory: Write YAML describing FRU interfaces
Write a YAML file, which for a given FRU type, tells which d-bus interfaces need to be implemented. For the said interfaces, the YAML file also tells
inventory: Write YAML describing FRU interfaces
Write a YAML file, which for a given FRU type, tells which d-bus interfaces need to be implemented. For the said interfaces, the YAML file also tells which VPD properties need to be supported, and which OpenPOWER VPD record:keyword combination maps to said property.
Code can be generated out of this YAML file to provide the inventory-manager information needed to construct FRU d-bus objects.
Change-Id: Ie96134ac220142fff2ada0d924ba1eb4575bb3c2 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
174caf68 | 25-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
parser : implement entry method
Implement the run() method, which serves as the entry point to parse out OpenPOWER VPD.
Change-Id: I966c38c6257f1a69b814518932c0c5c0a8386a08 Signed-off-by: Deepak Ko
parser : implement entry method
Implement the run() method, which serves as the entry point to parse out OpenPOWER VPD.
Change-Id: I966c38c6257f1a69b814518932c0c5c0a8386a08 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
683bf721 | 24-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
parser : parse keyword section of a record
For a given OpenPOWER VPD record, get to it's keyword section and find all contained keywords, and read the data for each of those.
Change-Id: I87001b3bc0
parser : parse keyword section of a record
For a given OpenPOWER VPD record, get to it's keyword section and find all contained keywords, and read the data for each of those.
Change-Id: I87001b3bc0a7b842543aa387e319b98aac8ca3ff Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
4a475bda | 24-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
parser : parse keyword data section
For keywords contained in an OpenPOWER VPD record, read the keyword data. The data may be raw or encoded in ascii. Return the resultant data as a string.
Some ke
parser : parse keyword data section
For keywords contained in an OpenPOWER VPD record, read the keyword data. The data may be raw or encoded in ascii. Return the resultant data as a string.
Some keywords, such as B1 (MAC address) need to be decoded specially.
Change-Id: I64c16c60dc94e173586b20fb6a92809fbb0ac89e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
a1143460 | 24-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
parser : process OpenPOWER VPD record
This change adds implementation to look at record information within OpenPOWER VPD, check if the record is of interest to us, and if yes - proceed to read recor
parser : process OpenPOWER VPD record
This change adds implementation to look at record information within OpenPOWER VPD, check if the record is of interest to us, and if yes - proceed to read record information, for further parsing and storage.
Change-Id: Ic6df6c88c104fc588d645e626391561a754e741e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
023112f4 | 22-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
parser : read table of contents record
This change implements logic to read the OpenPOWER VPD VTOC record, which contains information about offsets to other records in the VPD.
Change-Id: Id40dee0f
parser : read table of contents record
This change implements logic to read the OpenPOWER VPD VTOC record, which contains information about offsets to other records in the VPD.
Change-Id: Id40dee0f940815766bf2e956c6ab08c875e6f79b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
810c9def | 22-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
parser : implement header check
This change implements a parser method to check if the OpenPOWER VPD has the mandatory header record, VHDR.
Change-Id: I9e4cebd8f69e47e1ab0f1b569fe4af2c82a5a137 Sign
parser : implement header check
This change implements a parser method to check if the OpenPOWER VPD has the mandatory header record, VHDR.
Change-Id: I9e4cebd8f69e47e1ab0f1b569fe4af2c82a5a137 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
fc1023d6 | 22-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Implement parse API
This change implements the parse API, which parses input OpenPOWER VPD.
Change-Id: I646e75c642cf5872252633fef03a864e287f696b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> |
e08fcad4 | 22-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
parser: define implementation class
This change introduces a class that serves as the OpenPOWER VPD parser. The class provides an API to construct itself with binary OpenPOWER VPD, and an API to run
parser: define implementation class
This change introduces a class that serves as the OpenPOWER VPD parser. The class provides an API to construct itself with binary OpenPOWER VPD, and an API to run the parser.
Change-Id: Ifcb360a8b67ac4d2a5116e2515cf689c552819b4 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
158c0464 | 21-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Implement access to parsed OpenPOWER VPD
This change implements the access API to retrieve parsed OpenPOWER VPD. Access is provided only to supported and valid VPD. This is achieved by having templa
Implement access to parsed OpenPOWER VPD
This change implements the access API to retrieve parsed OpenPOWER VPD. Access is provided only to supported and valid VPD. This is achieved by having template specializations for a valid record:keyword combination.
Change-Id: I1ec39a94bf947bebade861fd7d9c74ccaa4ac96d Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
86c7388c | 21-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Add API to parse OpenPOWER VPD
This change defines an API to parse OpenPOWER format VPD. The API expects OpenPOWER binary VPD as input, parses the same and returns a Store object. The Store object s
Add API to parse OpenPOWER VPD
This change defines an API to parse OpenPOWER format VPD. The API expects OpenPOWER binary VPD as input, parses the same and returns a Store object. The Store object stores parsed VPD, and makes it easy to access the same.
Change-Id: Icfb62d848dd92205ab3ab49f05c6521297434c72 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
35c7fb16 | 21-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Add API to provide access to parsed OpenPOWER VPD
This change adds the Store class, which serves as a store for parsed OpenPOWER VPD, as well as provides access to the VPD specified by a record:keyw
Add API to provide access to parsed OpenPOWER VPD
This change adds the Store class, which serves as a store for parsed OpenPOWER VPD, as well as provides access to the VPD specified by a record:keyword combination.
Change-Id: Ie9efe5825a3e799d78b59333c06955b0214a6823 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
1ea0233f | 20-Nov-2016 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Add enums for OpenPOWER records and keywords
OpenPOWER VPD is represented in a record/keyword format. This change adds enum definitions for records and record-contained keywords that the BMC is inte
Add enums for OpenPOWER records and keywords
OpenPOWER VPD is represented in a record/keyword format. This change adds enum definitions for records and record-contained keywords that the BMC is interested to parse out from an OpenPOWER VPD eeprom.
Change-Id: I3ee0d85e509de15d192e795cb9b253688cad70a5 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|
9b3a25d4 | 20-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Initial commit |