pdata provides infrastructure (tools) to generate cec device tree and metadata files (attributes_info.H and attributes_info.db) but, it will expect few files with the required information so, please refer below steps for preparing those files to get the cec device tree and metadata files for the new POWER processor.
-
Create new power processor version specific folder here.
Note: Folder name should be processor version i.e p9|p10|p11.
-
Prepare the required hwp's and non-hwp targets list to filter.
Note:
- File name should be
filter_TargetsList.lsv
. - Required target name should be same as mrw target id.
- Please refer sample here.
- File name should be
-
Prepare the required attributes list to filter.
Note:
- File name should be
filter_AttributesList.lsv
. - All attribute should have respective prefix based on attribute usage i.e. hwp or non-hwp attribute.
- Please refer sample here.
- File name should be
-
Prepare the list of required hwp's targets type list and its corresponding mrw target id in the new file. This is mainly used to convert hwp target type into mrw target id to make it unique across all steps.
Note:
- File name should be
FAPITargetsNameMapList.lsv
. - Please refer sample here.
- File name should be
-
Prepare the required targets (hwp and non-hwp) list with mrw target id value and its corresponding pdbg compatible property value.
Note:
- File name should be 'pdbg_compatible_propMapping.lsv`.
- Please refer sample here.
-
Prepare the required targets (hwp's and non-hwp targets) definition and its non-hwp attributes list. The hwp's target the definition will use to map all hwp's attributes which are present in the required hwp's attributes xml file into respective targets so, please make sure all required hwp's targets definition information is added or not and also few non-hwp attributes are common to more than one targets so, please make sure those attributes are added to the respective target and added that target id as a parent into required child targets.
Note:
- File name should be
target_types_obmc.xml
. - target definition should be as mrw target xml format.
- Please refer sample here.
- File name should be
-
Prepare the required hwp's attributes xml filename list to process from the pub-ekb repository to get the required attributes.
Note:
-
File name should be
reqEkbAttrsXmlFileList.lsv
. -
Please refer sample here.
-
Also, same filename list needs to add into op-build ekb package by using
EKB_HWP_ATTRS_XML_FILES
and openBMC ekb recipe by usingREQ_ATTRS_XMLS
variable.p10 References for example:
-
-
Prepare the required non-hwp attributes definition.
Note:
- File name should be
attribute_types_obmc.xml
. - attribute definition should be same as mrw attribute xml format.
- Please refer sample here.
- File name should be
-
Prepare the hardware procedure attribute list to overwrite with the platform specific defalut value.
Note:
- File name should be
bmc_customized_ekb_attrs.xml
. - Please refer sample here.
- File name should be
-
Prepare the attributes list to preserve.
Note:
- File name should be
preserved_attrs_list
to preserve attributes value during the service pack update (aka, code update). - File name should be
reinit_devtree_attrs_list
to reinit attributes value during the cold boot. - Please refer samples : preserved_attrs_list and reinit_devtree_attrs_list.
- File name should be
-
Once prepared all above required files then use configure option i.e
CHIP
to pass new processor version to build device tree and meta-data. Please follow build steps to get require files.Note: For op-build and openBMC build, need to use
CHIP
configuration parameter to pass expected processor version.