Platform configuration and the host-tool questions
Hi Kun,
I'd like to add a platform configuration file for blob basd id and sysfile path, but I always get the return error, "Encountered error when parsing config file". Is my config file format wrong or something I missed ?
My example config.json:
{
"blobBaseId": "/skm/hss/",
"sysFilePath": "/sys/class/i2c-dev/i2c-8/device/8-0058/eeprom", "offsetBytes": 256,
"maxSizeBytes": 1024
}
BTW, is there the utility such as the host-tool of phosphor-ipmi-flash to test ?
Thanks.
Best Regards
George Hung
Research Division - Software Engineer
Quanta Computer Inc.
Ext: 16830
E-Mail : [email protected]
Hi George,
Sorry for the late reply. The current configuration expected is an array, so you would need:
[{
"blobBaseId": "/skm/hss/",
"sysFilePath": "/sys/class/i2c-dev/i2c-8/device/8-0058/eeprom", "offsetBytes": 256,
"maxSizeBytes": 1024
}]
The documentation on the configuration file format isn't super clear. I will send a patch to improve it.
Currently there is no host-side tools like phosphor-ipmi-flash. Hope this helps.
Quoted 29 lines · George Hung (洪忠敬)
Hi Kun,
I'd like to add a platform configuration file for blob basd id and sysfile path, but I always get the return error, "Encountered error when parsing config file".
Is my config file format wrong or something I missed ?My example config.json:
{
"blobBaseId": "/skm/hss/",
"sysFilePath": "/sys/class/i2c-dev/i2c-8/device/8-0058/eeprom", "offsetBytes": 256,
"maxSizeBytes": 1024
}BTW, is there the utility such as the host-tool of phosphor-ipmi-flash to test ?
Thanks.
Best Regards
George Hung
Research Division - Software Engineer
Quanta Computer Inc.
Ext: 16830
E-Mail : [email protected]
Signature · 2 lines
Regards, Kun