update_cbi¶
Source code: update_cbi.py
A test to update CBI data to EEPROM.
Description¶
A test to set CBI data from device data to EEPROM by using ectool cbi
.
Available device data are component.sku, component.dram_part_num and
component.pcb_supplier. When updating the SKU ID, if the FW Config can be
queried from the cros_config, then the FW Config will be updated as well.
If you want to run the pytest model_sku with the SKU ID set by this pytest,
you need to reboot the DUT first.
Test Procedure¶
This is an automatic test that doesn’t need any user interaction.
Dependency¶
ectool
utility.cros_config_mock
utility.chromeos-base/cros-config-api
.
Examples¶
To set SKU_ID, DRAM_PART_NUM and PCB_SUPPLIER from device data to CBI, add this in test list:
{
"pytest_name": "update_cbi",
"args": {
"cbi_data_names": ['SKU_ID', 'DRAM_PART_NUM', 'PCB_SUPPLIER']
}
}
To set SKU ID and run the pytest model_sku, add this in test list:
{
"subtests": [
{
"pytest_name": "update_cbi",
"args": {
"cbi_data_names": ['SKU_ID']
}
},
"FullRebootStep",
{
"pytest_name": "model_sku"
}
]
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
cbi_data_names |
list |
List of CBI data names to update |
force |
bool |
(optional; default: |
sku_id_source |
[‘device_data’, ‘hardcode’] |
(optional; default: |
hardcode_sku_id |
int, None |
(optional; default: |
config_source |
[‘config_jsonproto’, ‘cros_config_mock’, ‘model_sku’] |
(optional; default: |
program |
str, None |
(optional; default: |
project |
str, None |
(optional; default: |
product_name |
str, None |
(optional; default: |
enable_factory_server |
bool |
(optional; default: |