All of lore.kernel.org
 help / color / mirror / Atom feed
From: "CHLI30@nuvoton.com" <CHLI30@nuvoton.com>
To: Landon <cld795@163.com>, "patrick@stwcx.xyz" <patrick@stwcx.xyz>,
	"jason.m.bills@linux.intel.com" <jason.m.bills@linux.intel.com>,
	"openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>,
	"CHLI30@nuvoton.com" <CHLI30@nuvoton.com>
Subject: RE: OpenBMC state manager problem
Date: Thu, 16 Jun 2022 07:34:24 +0000	[thread overview]
Message-ID: <HK0PR03MB50902D198B1164E38F39A00CCFAC9@HK0PR03MB5090.apcprd03.prod.outlook.com> (raw)
In-Reply-To: <3b1b4818.3c21.1815c0a2c47.Coremail.cld795@163.com>


[-- Attachment #1.1: Type: text/plain, Size: 4351 bytes --]

Hi Landon,
According your question, provide some suggestions for you refer it.

You can check journal log first for keyword “power-control” to debug why your x86-power-control cannot be activated.
BTW, x86-power-control uses default json file (power-config-host0.json) for GPIO configuration.
You also need to check this json file according your hardware.

For busctl set command debugging, you can use dbus-monitor to get more information why the name of property/interface is not activatable.

Best regards,
Tim
From: openbmc <openbmc-bounces+chli30=nuvoton.com@lists.ozlabs.org> On Behalf Of Landon
Sent: Monday, June 13, 2022 3:50 PM
To: patrick@stwcx.xyz; jason.m.bills@linux.intel.com; openbmc@lists.ozlabs.org
Subject: OpenBMC state manager problem

hello~
now I use aspeed ast2600 openbmc.
At first, I set pwer state command: but failed!
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
[cid:image001.png@01D88195.67F688F0]

so I modify the "\meta-aspeed-sdk\meta-ast2600-sdk\conf\machine\ast2600-emmc.conf", remove the "x86-power-control"...  :
PREFERRED_PROVIDER_virtual/obmc-system-mgmt = "packagegroup-aspeed-obmc"
PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw = "phosphor-ipmi-kcs"
# I remove the 2 lines :
#VIRTUAL-RUNTIME_obmc-host-state-manager ?= "x86-power-control"
#VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "x86-power-control"
EXTRA_IMAGEDEPENDS:append = "\
   aspeed-image-recoveryuart \
   aspeed-image-emmcboot \

After,  I set pwer state command OK :
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"
but, after I update openbmc for the lastest the version, it can't enter the system.
[cid:image002.png@01D88195.67F688F0]
and I open the 2 lines :
VIRTUAL-RUNTIME_obmc-host-state-manager ?= "x86-power-control"
VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "x86-power-control"
the system is OK.
but, the "x86-power-control" is disable, I set pwer state command is failed !
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
so how to solve the problem for the set pwer state command ?
Thank you very much !







________________________________
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.

[-- Attachment #1.2: Type: text/html, Size: 15735 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 74026 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 315630 bytes --]

  reply	other threads:[~2022-06-18  0:32 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.0.1637828525.15424.openbmc@lists.ozlabs.org>
2021-11-25  8:29 ` openBMC pwm-fan control policy Landon
2021-11-25  8:46   ` Paul Fertser
2021-11-26  5:26     ` Landon
2021-11-26  5:55       ` Landon
2021-11-26 21:57         ` Paul Fertser
2021-11-29  9:43           ` Landon
2021-11-29 10:22             ` Andrei Kartashev
2021-12-02  9:11               ` Landon
2021-12-07  1:45                 ` Landon
2021-12-07  7:37                   ` Landon
2021-12-07  8:05                     ` Andrei Kartashev
2021-12-15  2:39                       ` Landon
2021-12-15  3:21                       ` OpenBMC web sometimes jump back to the login screen problem Landon
2021-12-15  3:46                         ` OpenBMC appear SQUASHFS error problem Landon
2021-12-15  5:36                           ` Landon
2021-12-16  3:19                           ` Landon
2021-12-17  6:39                           ` Landon
2021-12-17 13:09                           ` Patrick Williams
2021-12-15 18:51                         ` OpenBMC web sometimes jump back to the login screen problem Bills, Jason M
2021-12-16  7:05                       ` Landon
2021-12-17 13:10                         ` Patrick Williams
2022-01-21  3:12                           ` OpenBMC Switching function of web Landon
2022-01-21  4:24                           ` Landon
2022-01-24  8:24                             ` Landon
2022-06-13  7:49                               ` OpenBMC state manager problem Landon
2022-06-16  7:34                                 ` CHLI30 [this message]
2022-06-13  8:13                               ` Landon
2022-06-14  1:58                                 ` Landon
2022-06-15  7:42                                   ` Landon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HK0PR03MB50902D198B1164E38F39A00CCFAC9@HK0PR03MB5090.apcprd03.prod.outlook.com \
    --to=chli30@nuvoton.com \
    --cc=cld795@163.com \
    --cc=jason.m.bills@linux.intel.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=patrick@stwcx.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.