commit | bb1dfb6a5aeefba70b09dff77f75887f201d5cd9 | [log] [tgz] |
---|---|---|
author | Andrew Geissler <geissonator@yahoo.com> | Fri Aug 13 14:11:06 2021 -0400 |
committer | Andrew Geissler <geissonator@yahoo.com> | Fri Aug 13 14:11:06 2021 -0400 |
tree | f4c02f5fa4ce851dcd7864a2c6cd4a5e2c404b24 | |
parent | 539b608f4a79cd48d2a41830f4ac535643573e95 [diff] |
reg-config: ensure runs before chassis power on openbmc/phosphor-state-manager#16 documents an issue with the obmc-power-start-pre@.target. Root cause is unknown at this point. Until root cause is understood there, set the service dependency directly to ensure this service always runs prior to chassis power being turned on. Tested: - Ran 10 power on/off and verified this service always ran before power was turned on to the chassis. Change-Id: I6192d8226f6916ba36b01407f271215bd53c2ab3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
This repository contains applications for configuring and monitoring devices that deliver power to the system.
To build all applications in this repository:
meson build ninja -C build
To clean the repository and remove all build output:
rm -rf build
You can specify meson options to customize the build process. For example, you can specify:
Several applications in this repository require a PSU JSON config to run. The JSON config file provides information for:
There is an example psu.json to describe the necessary configurations.
inventoryPMBusAccessType
defines the pmbus access type, which tells the service which sysfs type to use to read the attributes. The possible values are:/sys/bus/i2c/devices/3-0069/
/sys/bus/i2c/devices/3-0069/hwmon/hwmonX/
/sys/kernel/debug/pmbus/hwmonX/
/sys/kernel/debug/pmbus/hwmonX/cffps1/
fruConfigs
defines the mapping between the attribute file and the FRU inventory interface and property. The configuration example below indicates that the service will read part_number
attribute file from a directory specified by the above pmbus access type, and assign to PartNumber
property in xyz.openbmc_project.Inventory.Decorator.Asset
interface."fruConfigs": [ { "propertyName": "PartNumber", "fileName": "part_number", "interface": "xyz.openbmc_project.Inventory.Decorator.Asset" } ]
psuDevices
defines the kernel device dir for each PSU in inventory. The configuration example below indicates that powersupply0
's device is located in /sys/bus/i2c/devices/3-0069
."psuDevices": { "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0" : "/sys/bus/i2c/devices/3-0069", }