<div dir="ltr"><div><span style="color:rgb(80,0,80)">Hi Tim, </span></div><div><span style="color:rgb(80,0,80)">Thank you for your reply. Actually, I am wondering how did </span><font color="#0000ff"><b>xyz.openbmc_project.Control.Host</b> </font><font color="#000000">service get the </font><span style="color:rgb(80,0,80)">HostFirmwareCondition. How could I get the </span></div><div><font color="#0000ff"><b></b></font></div><span style="color:rgb(80,0,80)"><div>HostFirmwareCondition via this service? Any comments or suggestions would be appreciated.</div></span><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)">Best regards,</span></div><div><span style="color:rgb(80,0,80)">Jordan</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><a href="mailto:CHLI30@nuvoton.com">CHLI30@nuvoton.com</a> <<a href="mailto:CHLI30@nuvoton.com">CHLI30@nuvoton.com</a>> 於 2022年4月26日 週二 上午8:06寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="ZH-TW">
<div class="gmail-m_5717829814505486698WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Jordan,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">According your busctl test command that you can get CurrentFirmwareCondition property currently.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">Here, the service is xyz.openbmc_project.State.HostCondition.Gpio and path is /xyz/openbmc_project/Gpios/host0.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">root@siad:~# busctl get-property
<b>xyz.openbmc_project.State.HostCondition.Gpio </b> <b>/xyz/openbmc_project/Gpios/host0</b> xyz.openbmc_project.Condition.HostFirmware CurrentFirmwareCondition<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">s "xyz.openbmc_project.Condition.HostFirmware.FirmwareCondition.Running"<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">However, your error log seems using wrong service and path to get this CurrentFirmwareCondition property.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Ufi:
<b>path=/xyz/openbmc_project/control/host0</b><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Ufi:
<b>services=xyz.openbmc_project.Control.Host</b><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Error reading HostFirmware condition, error: sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name
is not activatable, service: xyz.openbmc_project.Control.Host path: /xyz/openbmc_project/control/host0<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">If you change path and services as your busctl test command that might be fixed your issue.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hopefully, I didn’t misunderstand your question. Thanks.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">Best regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)">Tim<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> openbmc <<a href="mailto:openbmc-bounces+chli30=nuvoton.com@lists.ozlabs.org" target="_blank">openbmc-bounces+chli30=nuvoton.com@lists.ozlabs.org</a>>
<b>On Behalf Of </b>Jordan Chang<br>
<b>Sent:</b> Monday, April 18, 2022 6:31 PM<br>
<b>To:</b> <a href="mailto:openbmc@lists.ozlabs.org" target="_blank">openbmc@lists.ozlabs.org</a><br>
<b>Subject:</b> [phosphor-state-manager] Error reading HostFirmware condition, error: sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Sir/Madam,<br>
I am implementing the power control mechanisms for my platform, and encounter the problem in below:<br>
<i>phosphor-host-state-manager[341]: Error reading HostFirmware condition, error: sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable, service: xyz.openbmc_project.Control.Host path: /xyz/openbmc_project/control/host0</i><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I am using the host0-ready gpio pin to determine the HostFirmwareCondition is running or not. However, the service <i>xyz.openbmc_project.State.Host.HostState</i> could not be established since the dbus call method of <i>xyz.openbmc_project.Control.Host
</i>returns an error. Therefore, I have printed some debug messages starting with Ufi to ensure the xyz.openbmc_project.State.HostCondition.Gpio service is involved in phosphor-host-state-manager. Not sure why the bus call function of
<i>xyz.openbmc_project.Control.Host service</i> failed. Which packages or settings should I configure to enable this service? Could someone give me some instructions or suggestions? Thank you!<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><br>
```<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">root@siad:~# obmcutil state<br>
CurrentBMCState : xyz.openbmc_project.State.BMC.BMCState.NotReady<br>
CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.On<br>
Error finding '/xyz/openbmc_project/state/host0' service: Input/output error<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">---------------------------------------------------------------------------------------------------------------------------<u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">root@siad:~# busctl call xyz.openbmc_project.ObjectMapper /xyz/openbmc_project /object_mapper xyz.openbmc_project.ObjectMapper GetSubTree sias "" 0 1 "xyz.op enbmc_project.Condition.HostFirmware"<br>
a{sa{sas}} 2 "/xyz/openbmc_project/Gpios/host0" 1 "xyz.openbmc_project.State.Hos tCondition.Gpio" 4 "org.freedesktop.DBus.Introspectable" "org.freedesktop.DBus.P eer" "org.freedesktop.DBus.Properties" "xyz.openbmc_project.Condition.HostFirmwa re" "/xyz/openbmc_project/control/host0"
1 "xyz.openbmc_project.Control.Host" 5 "org.freedesktop.DBus.Introspectable" "org.freedesktop.DBus.Peer" "org.freedeskt op.DBus.Properties" "xyz.openbmc_project.Condition.HostFirmware" "xyz.openbmc_pr oject.Control.Host"<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">---------------------------------------------------------------------------------------------------------------------------<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">root@siad:~# busctl get-property xyz.openbmc_project.State.HostCondition.Gpio /xyz/openbmc_project/Gpios/host0 xyz.openbmc_project.Condition.HostFirmware CurrentFirmwareCondition<br>
s "xyz.openbmc_project.Condition.HostFirmware.FirmwareCondition.Running"<u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">---------------------------------------------------------------------------------------------------------------------------<u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">root@siad:~# journalctl | grep -i phosphor-host-state-manager<br>
Apr 18 08:19:13 siad phosphor-host-state-manager[341]: Check if host is running<br>
Apr 18 08:19:13 siad phosphor-host-state-manager[341]: Ufi: mapper1=/xyz/openbmc_project/Gpios/host0<br>
Apr 18 08:19:13 siad phosphor-host-state-manager[341]: Ufi: mapper1=/xyz/openbmc_project/control/host0<br>
Apr 18 08:19:13 siad phosphor-host-state-manager[341]: Ufi: mapper2=xyz.openbmc_project.State.HostCondition.Gpio<br>
Apr 18 08:19:13 siad phosphor-host-state-manager[341]: Ufi: mapper2=xyz.openbmc_project.Control.Host<br>
Apr 18 08:19:14 siad phosphor-host-state-manager[341]: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError'<br>
Apr 18 08:19:14 siad phosphor-host-state-manager[341]: what(): sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable<br>
Apr 18 08:19:13 siad phosphor-host-state-manager[341]: Ufi: path=/xyz/openbmc_project/control/host0<br>
Apr 18 08:19:13 siad phosphor-host-state-manager[341]: Ufi: services=xyz.openbmc_project.Control.Host<br>
Apr 18 08:19:14 siad phosphor-host-state-manager[341]: Error reading HostFirmware condition, error: sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable, service: xyz.openbmc_project.Control.Host path: /xyz/openbmc_project/control/host0<br>
Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Check if host is running<br>
Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Ufi: mapper1=/xyz/openbmc_project/Gpios/host0<br>
Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Ufi: mapper1=/xyz/openbmc_project/control/host0<br>
Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Ufi: mapper2=xyz.openbmc_project.State.HostCondition.Gpio<br>
Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Ufi: mapper2=xyz.openbmc_project.Control.Host<br>
Apr 18 08:19:24 siad phosphor-host-state-manager[366]: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError'<br>
Apr 18 08:19:24 siad phosphor-host-state-manager[366]: what(): sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable<br>
Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Ufi: path=/xyz/openbmc_project/control/host0<br>
Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Ufi: services=xyz.openbmc_project.Control.Host<br>
Apr 18 08:19:24 siad phosphor-host-state-manager[366]: Error reading HostFirmware condition, error: sd_bus_call: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable, service: xyz.openbmc_project.Control.Host path: /xyz/openbmc_project/control/host0<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">```<br>
<br>
Best regards,<br>
Jordan Chang<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt">******************************</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt">This e-mail is confidential. If you are not the intended recipient, you must not disclose, distribute or use the information in it as this could be a breach of confidentiality.If you have received
this message in error, please advise us immediately by return e-mail and delete the document. The address from which this message has been sent is strictly for business mail only and the company reserves the right to monitor the contents of communications
and take action where and when it is deemed necessary.</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt">Thank you for your co-operation.</span><span lang="EN-US"><u></u><u></u></span></p>
</div>
</div>
<hr align="center" width="100%">
<span style="font-size:12pt;line-height:0.7;font-family:Arial;color:rgb(128,128,128)">The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the
addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly
appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.
</span>
</div>
</blockquote></div>
<br>
<div><font size="2">******************************</font></div><div><font size="2">This e-mail is confidential. If you are not the intended recipient, you must not disclose, distribute or use the information in it as this could be a breach of confidentiality.If you have received this message in error, please advise us immediately by return e-mail and delete the document. The address from which this message has been sent is strictly for business mail only and the company reserves the right to monitor the contents of communications and take action where and when it is deemed necessary.</font></div><div><font size="2">Thank you for your co-operation.</font></div>