openbmc / phosphor-host-ipmid

dbus-based ipmid for host-endpoint IPMI commands
Apache License 2.0
37 stars 74 forks source link

Cannot load the provider of dynamic sensors #190

Open jannyau opened 1 year ago

jannyau commented 1 year ago

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

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.

jack206 commented 8 months ago

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

jack206 commented 7 months ago

Has this problem been solved?

jack206 commented 7 months ago

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',

jack206 commented 7 months ago

image

songyunpeng1211 commented 7 months ago

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

songyunpeng1211 commented 7 months ago

image

songyunpeng1211 commented 7 months ago

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

songyunpeng1211 commented 7 months ago

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