commit | 0635df219c24cc9b052bd0b1e877d309fd4223fa | [log] [tgz] |
---|---|---|
author | Shawn McCarney <shawnmm@us.ibm.com> | Tue Mar 02 11:58:00 2021 -0600 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Tue Mar 02 19:15:26 2021 +0000 |
tree | 2f8393d7b5ab7eaa8896c70eaf18150f6b28e321 | |
parent | 9a507db58398db80b3eb2f0f290bd6986102a1d7 [diff] |
regulators: Temporarily allow boot w/missing cfg Temporarily allow the boot to continue if the regulators JSON configuration file is missing or invalid. The EntityManager application publishes the system type information on D-Bus using a "compatible" interface. This information is used to find the correct regulator config file. A problem was discovered where a boot can be attempted before EntityManager has published the system type information. This was resulting in the regulators application stopping the boot since it didn't have a valid configuration file yet. The long-term direction is to enhance the regulators application to wait for the EntityManager information during the boot if necessary. However, a short-term fix is required right now. The current behavior of logging a critical error and stopping the boot is being temporarily commented out. Tested: * Verified that boot is not longer stopped if config file is missing/invalid. Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: I2e60f9892d3f72143a0e3c28bce19c55b4659f47
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", }