Exposing sensors to IPMI over dbus

AKASH G J akashgj91 at gmail.com
Thu Dec 19 20:12:06 AEDT 2019


Hi all,
I am using OpenBMC firmware for server board having Aspeed AST-2500.

Followed
https://github.com/openbmc/entity-manager/blob/master/docs/my_first_sensors.md
for populating sensor value to dbus. Entity manager configuration file is
given below.
{
    "Exposes": [
        {
            "Address": "0x4f",
            "Bus": 5,
            "Name": "cpu0_vrd_temp",
            "Thresholds": [
                {
                    "Direction": "greater than",
                    "Name": "upper critical",
                    "Severity": 1,
                    "Value": 80
                }
            ],
            "Type": "TMP75"
        }
    ],
    "Name": "Rudra Baseboard",
    "Probe": "xyz.openbmc_project.FruDevice({'PRODUCT_PRODUCT_NAME':
'RUDRA'})",
    "Type": "Board",
    "xyz.openbmc_project.Inventory.Decorator.Asset": {
        "Manufacturer": "$BOARD_MANUFACTURER",
        "Model": "$BOARD_PRODUCT_NAME",
        "PartNumber": "$BOARD_PART_NUMBER",
        "SerialNumber": "$BOARD_SERIAL_NUMBER"
    }
}

Wrote sample FRU information on eeprom with the following content. Used dd
command for writing to eeprom.

root at s2600wf:/sys/bus/i2c/devices/3-0056# cat eeprom
Product:
  MANUFACTURER  "ABC"
  PART_NUMBER   "12345"
  PRODUCT_NAME  "SAMPLENAME"
  SERIAL_NUMBER "12312490840"

The dbus tree not showing /xyz/openbmc_project/FruDevice/SAMPLENAME

root at s2600wf:~# busctl tree --no-pager xyz.openbmc_project.FruDevice
`-/xyz
  `-/xyz/openbmc_project
    `-/xyz/openbmc_project/FruDevice

In journalctl log the following messages are printed.

systemd[1]: Started Hwmon Temp Sensor.
hwmontempsensor[120]: Error communicating to entity manager
hwmontempsensor[120]: error communicating to entity manager

Look like FruDevice daemon is not parsing the contents of eeprom and
publish them to dbus.

Is there any thing missing in configuration? Please help to resolve the
problem.



Thanks,

Akash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191219/def627ce/attachment-0001.htm>


More information about the openbmc mailing list