[fru-device and intel-ipmi-oem] ipmitool fru print can not output psu information

John Wang wangzqbj at inspur.com
Tue Mar 19 22:02:22 AEDT 2019


By checking the code, I found that fru-device seems to need to be used
with intel-ipmi-oem,
and it seems that no additional configuration is required(correct??).

On my machine,there are two FRU,one is /etc/fru/baseboard.fru.bin,the
other is psu fru.
(There is only one psu).

But,ipmitool fru print can only output the fru of baseboard.
$ ipmitool -I lanplus -H 100.2.76.213 -U root -P 0penBmc fru print
FRU Device Description : Builtin FRU Device (ID 0)

fru-device found psu itself and had the correct output on dbus:
busctl tree xyz.openbmc_project.FruDevice
└─/xyz
  └─/xyz/openbmc_project
    └─/xyz/openbmc_project/FruDevice
      ├─/xyz/openbmc_project/FruDevice/DPS_800AB_16_A
      └─/xyz/openbmc_project/FruDevice/ON5263M5
busctl introspect xyz.openbmc_project.FruDevice
/xyz/openbmc_project/FruDevice/DPS_800AB_16_A:      -
.ADDRESS                            property  u         80
  emits-change
.BUS                                property  u         5
  emits-change
.Common_Format_Version              property  s         "1"
  emits-change
.PRODUCT_LANGUAGE_CODE              property  s         "25"
  emits-change
.PRODUCT_MANUFACTURER               property  s         "DELTA"
  emits-change
.PRODUCT_PART_NUMBER                property  s         "          "
  emits-change
.PRODUCT_PRODUCT_NAME               property  s         "DPS-800AB-16
A" emits-change
.PRODUCT_SERIAL_NUMBER              property  s
"HERD1629002309" emits-change
.PRODUCT_VERSION                    property  s         "S2F"
  emits-change

Intel-ipmi-oem:
Commit fcce83df799d9580f48b7f793989c9c96bc882e0
Author: James Feist <james.feist at linux.intel.com>
Date: Fri Mar 1 15:46:19 2019 -0800

The configuration of psu in entity-manager is as follows:
[
    {
        "Exposes": [
            {
                "Address": "0x58",
                "Bus": "$bus",
                "Name": "Delta DPS-800AB-16 PSU Device",
                "Type": "pmbus"
            },
{
                "Address": "$address",
                "Bus": "$bus",
                "Name": "Delta DPS-800AB-16 PSU FRU",
                "Type": "EEPROM"
            }

        ],
        "Name": "PSU",
        "Probe":
"xyz.openbmc_project.FruDevice({'PRODUCT_PRODUCT_NAME': 'DPS-800AB-16
A'})",
        "Type": "PowerSupply",
        "xyz.openbmc_project.Inventory.Decorator.Asset": {
            "Manufacturer": "$PRODUCT_MANUFACTURER",
            "Model": "$PRODUCT_PRODUCT_NAME",
            "PartNumber": "$PRODUCT_PART_NUMBER",
            "SerialNumber": "$PRODUCT_SERIAL_NUMBER"
        }
    }
]


Can anyone help me figure out what configuration information is missing?


More information about the openbmc mailing list