openbmc/phosphor-host-ipmid

Cannot load the provider of dynamic sensors

jannyau opened this issue · 8 comments

Versions:
openbmc: 18caa97591
phosphor-host-ipmid: 68e8294

Platforms:
QEMU ast2600-evb & ast2500-evb

Description:
Enable the dynamic-sensors option in phosphor-ipmi-host_git.bbappend:
PACKAGECONFIG:append = " dynamic-sensors"

and then build the code. It successfully created libdynamiccmds.so.1 under the IPMI provider folder. However, the library couldn't be loaded during ipmid start-up. Then, because the SDR commands in this library were not registered and the default ones were disabled by this option, all the SDR commands became invaild.

I also encountered this problem. Have you solved it now?

Has this problem been solved?

diff --git a/dbus-sdr/meson.build b/dbus-sdr/meson.build
index bfdbde1..67af6de 100644
--- a/dbus-sdr/meson.build
+++ b/dbus-sdr/meson.build
@@ -19,5 +19,6 @@ dbus_sdr_pre = declare_dependency(
dbus_sdr_src = [
'dbus-sdr/sdrutils.cpp',
'dbus-sdr/sensorcommands.cpp',

  • 'dbus-sdr/storagecommands.cpp'
  • 'dbus-sdr/storagecommands.cpp',
  • 'entity_map_json.cpp'
    ]
    These revisions could solve this problem。

I have a question.
I set option dynamic-sensors enabled in meson.options.
By Meson.build Log , Compilation did not work and dynamic-sensors is disabled.
image

If I force a change in meson.build.
This command ipmitool sensor list displays the sensors I added later. Configure the Entity Manager and virtual sensors
image
image

I found that the reason is that meta-phosphor\recipes-phosphor\ipmi\phosphor-ipmi-host_git.bb overwrites meson.options
image