commit | 8b66288a840568cffdfa92f7cce025efcee7944d | [log] [tgz] |
---|---|---|
author | Brandon Wyman <bjwyman@gmail.com> | Fri Oct 08 17:31:51 2021 +0000 |
committer | Brandon Wyman <bjwyman@gmail.com> | Mon Oct 11 19:21:34 2021 +0000 |
tree | eaf145e1d278b29cfe17ff53c23dcf0a75885e2c | |
parent | 2aba2b25f13b175ea751e438ef2929d4451cf7a7 [diff] |
psu-ng: Move adding _PID to createError Adding the _PID value to the additional data for an error does not need to repeat every time we loop through a power supply in the configuration. Move adding that _PID value down into the createError() function. Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Change-Id: Id09b981debb2d9e35c6ddf6865cf0ec60742156f
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", }