commit | 6ff01ae8ae7f48833065597d45c9e0fd2a1a578b | [log] [tgz] |
---|---|---|
author | Andrew Geissler <geissonator@yahoo.com> | Thu Mar 30 14:32:38 2023 -0600 |
committer | Andrew Geissler <geissonator@yahoo.com> | Thu Apr 06 13:46:32 2023 +0000 |
tree | b70cb4cfc00d33e12a37012021d0615d4d3552e4 | |
parent | 1aaf9f859d37f5de959e97da809311e75e6ffcdb [diff] |
psu-monitor: adapt do chassis state instance change phosphor-state-manager moved to a multi chassis and multi host design point. This made their corresponding service files instance based. For backwards support, instance 0 will always represent the entire system, so utilize that as the dependency in this service file. Tested: - Verified in other similar commits that this type of relationship works as expected Change-Id: If8ed9abcbb6752ed86c801755df18467cf1e9fe8 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", }