Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load the provider of dynamic sensors #190

Open
jannyau opened this issue May 13, 2023 · 8 comments
Open

Cannot load the provider of dynamic sensors #190

jannyau opened this issue May 13, 2023 · 8 comments

Comments

@jannyau
Copy link

jannyau commented May 13, 2023

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.

@jack206
Copy link

jack206 commented Mar 1, 2024

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

@jack206
Copy link

jack206 commented Mar 27, 2024

Has this problem been solved?

@jack206
Copy link

jack206 commented Mar 28, 2024

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。

@jack206
Copy link

jack206 commented Mar 28, 2024

image

@songyunpeng1211
Copy link

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
Copy link

image

@songyunpeng1211
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants