writefrudata: validate multi-record data
It is fail to parse FRU data with multi-record area available as its
header data is different from other areas.
Support validate multi-record data so that can parse FRU data with
multi-record enabled.
Tested:
1. Check if the FRU with multi-record can be parsed.
2. Check IPMI fru print command.
FRU Device Description : Builtin FRU Device (ID 0)
Chassis Type : Rack Mount Chassis
Chassis Serial : A1A1-A000-0000000000123
Board Mfg Date : Tue Feb 4 00:00:00 2020 UTC
Board Mfg : AmpereComputing(R)
Board Product : MT.JADE
Board Serial : 9510002CJ0LA
Board Part Number : B81.03010.0001
Product Manufacturer : AmpereComputing(R)
Product Name : MT.JADE
Product Part Number : AC82830AC10C
Product Version : PR010
Product Serial : AMPX3A1-A000-0000000000123
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: I163c5c7bff2f7315e9c6b610f5074c37bc167ccf
2 files changed