<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:新細明體;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@新細明體";
        panose-1:2 1 6 1 0 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Microsoft YaHei";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@Microsoft YaHei";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"新細明體",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"新細明體",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-TW" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D">Hi Landon,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D">According your question, provide some suggestions for you refer it.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D">You can check journal log first for keyword “power-control” to debug why your x86-power-control cannot be activated.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D">BTW, x86-power-control uses default json file (power-config-host0.json) for GPIO configuration.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D">You also need to check this json file according your hardware.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D">For busctl set command debugging, you can use dbus-monitor to get more information why the name of property/interface is not activatable.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif;color:#1F497D">Tim<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> openbmc <openbmc-bounces+chli30=nuvoton.com@lists.ozlabs.org>
<b>On Behalf Of </b>Landon<br>
<b>Sent:</b> Monday, June 13, 2022 3:50 PM<br>
<b>To:</b> patrick@stwcx.xyz; jason.m.bills@linux.intel.com; openbmc@lists.ozlabs.org<br>
<b>Subject:</b> OpenBMC state manager problem<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif">hello~<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div id="ntes-pcmail-quote">
<div>
<blockquote>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif">now I use aspeed ast2600 openbmc.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#333333;background:#F7F8FA">At first, I set pwer state command: but failed!</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B9BBBE;background:#2F3136">root@ast2600-emmc:~# busctl set-property xyz.openbmc_project.State.Host /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Host CurrentHostState
 s "xyz.openbmc_project.State.Host.HostState.Off" Failed to set property CurrentHostState on interface xyz.openbmc_project.State.Host: The name is not activatable root@ast2600-emmc:~# busctl set-property xyz.openbmc_project.State.Host /xyz/openbmc_project/state/host0
 xyz.openbmc_project.State.Host CurrentHostState s "xyz.openbmc_project.State.Host.HostState.Running" Failed to set property CurrentHostState on interface xyz.openbmc_project.State.Host: The name is not activatable</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B9BBBE;background:#2F3136"><img width="1444" height="65" style="width:15.0416in;height:.6805in" id="_x0000_i1025" src="cid:image001.png@01D88195.67F688F0"><br>
<br>
</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif">so I modify the "\meta-aspeed-sdk\meta-ast2600-sdk\conf\machine\ast2600-emmc.conf", remove the "x86-power-control"...  :<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif">PREFERRED_PROVIDER_virtual/obmc-system-mgmt = "packagegroup-aspeed-obmc"<br>
PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw = "phosphor-ipmi-kcs"<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif;color:#FF4312"># I remove the 2 lines :<br>
#VIRTUAL-RUNTIME_obmc-host-state-manager ?= "x86-power-control"<br>
#VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "x86-power-control"</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><br>
EXTRA_IMAGEDEPENDS:append = "\<br>
   aspeed-image-recoveryuart \<br>
   aspeed-image-emmcboot \<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif">After,  </span><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#333333;background:#F7F8FA">I set pwer state command OK
 :</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B9BBBE;background:#2F3136">root@ast2600-emmc:~# busctl set-property xyz.openbmc_project.State.Host /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Host CurrentHostState
 s "xyz.openbmc_project.State.Host.HostState.Off" root@ast2600-emmc:~# busctl set-property xyz.openbmc_project.State.Host /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Host CurrentHostState s "xyz.openbmc_project.State.Host.HostState.Running"</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif">but, after I update openbmc for the lastest the version, it can't enter the system.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><img width="1439" height="380" style="width:14.993in;height:3.9583in" id="_x0000_i1026" src="cid:image002.png@01D88195.67F688F0"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif">and I open the 2 lines :<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif;color:#FF4312">VIRTUAL-RUNTIME_obmc-host-state-manager ?= "x86-power-control"<br>
VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "x86-power-control"</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#333333;background:#F7F8FA">the system is OK.</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#333333;background:#F7F8FA">b</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#10053E;background:#F7F8FA">ut, th</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#333333;background:#F7F8FA">e </span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif;color:#FF4312">"x86-power-control"</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#333333;background:#F7F8FA"> is
 disable, I set pwer state command is failed !</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B9BBBE;background:#2F3136">root@ast2600-emmc:~# busctl set-property xyz.openbmc_project.State.Host /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Host CurrentHostState
 s "xyz.openbmc_project.State.Host.HostState.Off"</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:Consolas;color:#B9BBBE;background:#2F3136">Failed to set property CurrentHostState on interface xyz.openbmc_project.State.Host: The name is not activatable root@ast2600-emmc:~# busctl
 set-property xyz.openbmc_project.State.Host /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Host CurrentHostState s "xyz.openbmc_project.State.Host.HostState.Running" Failed to set property CurrentHostState on interface xyz.openbmc_project.State.Host:
 The name is not activatable</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#333333;background:#F7F8FA">so how to solve the problem for the set pwer state command ?</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#333333;background:#F7F8FA">Thank you very much !</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#001E58;background:#F7F8FA"><br>
<br>
</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#333333;background:#F7F8FA"><br>
<br>
</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Tahoma",sans-serif;color:#333333;background:#F7F8FA"><br>
<br>
</span><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Microsoft YaHei",sans-serif"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
<hr align="center" width="100%">
<span style="font-size:12pt;line-height:0.7;font-family: 'Arial'; color:#808080">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>
</body>
</html>