commit | a2461b349db989190f8a09ea42f6dbb563692a32 | [log] [tgz] |
---|---|---|
author | Shawn McCarney <shawnmm@us.ibm.com> | Thu Oct 24 18:53:01 2019 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Wed Oct 30 21:00:46 2019 +0000 |
tree | 68c56755685645a7ce561b445dde16d3a4f5f8bd | |
parent | aff6548e9009524ddfc3c597babece3fdd6c6d07 [diff] |
Create stubs for regulator Device, Rail, and Rule Create stub versions of the Device, Rail, and Rule classes for the phosphor-regulators application. Having a stub version of these classes is a pre-requisite for implementing the action framework. Also updated the top level meson.build file to build the phosphor-regulators directory. Created new meson.build files for several phosphor-regulators sub-directories. Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I50b018db744191acd1e473652019906a8506745f
Code for detecting and analyzing power faults on Witherspoon.
To build this package, do the following steps: 1. meson build 2. ninja -C build To clean the repository again run `rm -rf build`.
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", }