PSU inventory

Deng Tyler tyler.sabdon at gmail.com
Fri Jul 17 19:41:23 AEST 2020


Hi All:
    I am developing PSU monitor module on my platform and investigating
phosphor-power first. I have some question about phosphor-power
1. in power-supply-monitor at .service file
...
Description=Power Supply %I Monitor
Wants=mapper-wait@
-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service
After=mapper-wait@
-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service
...
I know Wants and After in systemd service file but I don't understand what
is  mapper-wait at -xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service
mean? It seems not a service.
I also execute psu-monitor binary as below
...
root at test:~# psu-monitor --path=/sys/bus/i2c/devices/13-0068 --instance=0
--inventory=/system/chassis/motherboard/powersupply0
terminate called after throwing an instance of
'sdbusplus::exception::SdBusError'
  what():  sd_bus_call: org.freedesktop.DBus.Error.UnknownObject: Unknown
object
'/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0'.
Aborted
...
PSU inventory is not exist. Which service need to create PSU inventory and
how to create it?
Thanks.

Tyler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200717/59b82dcb/attachment.htm>


More information about the openbmc mailing list