commit | 0d771d2303129cc0b333c0d34db7c9ec2aacd951 | [log] [tgz] |
---|---|---|
author | Thang Tran <thuutran@amperecomputing.com> | Fri Mar 18 14:00:52 2022 +0700 |
committer | Thang Q. Nguyen <thang@os.amperecomputing.com> | Fri Mar 18 08:01:22 2022 +0000 |
tree | a8034a60f50e3b8c9c6ba655411096fce4043cff | |
parent | 05d7bed2f1ca43c12291fb36294fd89d8e90d34e [diff] |
meta-ampere: remove creating host@%i-on file The /run/openbmc/host@0-on file is created/removed by phosphor-state-manager, platform should not touch to this file. Host-on-host-check service is called by obmc-host-startmin target, it is not depended on the /run/openbmc/host@0-on file. This file is only used during BMC booting phase. Tested: 1. Turn off/on the host 100 times. 2. Check the sel log. ipmitool sel list 3. BMC does not display any log relate to over threshold. 4. Check the host-on-check service is called before host'state is running Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: I1ec90a00a7685007e31b89876ff2a5d57191fc53
diff --git a/meta-ampere/meta-common/recipes-phosphor/host/ampere-hostctrl/ampere-host-on-host-check@.service b/meta-ampere/meta-common/recipes-phosphor/host/ampere-hostctrl/ampere-host-on-host-check@.service index 7698052..e3c8739 100644 --- a/meta-ampere/meta-common/recipes-phosphor/host/ampere-hostctrl/ampere-host-on-host-check@.service +++ b/meta-ampere/meta-common/recipes-phosphor/host/ampere-hostctrl/ampere-host-on-host-check@.service
@@ -6,7 +6,6 @@ Conflicts=phosphor-reset-host-check@%i.service OnFailure=obmc-host-quiesce@%i.target OnFailureJobMode=flush -ConditionPathExists=!/run/openbmc/host@%i-on [Service] Type=oneshot
diff --git a/meta-ampere/meta-common/recipes-phosphor/host/ampere-hostctrl/ampere_host_check.sh b/meta-ampere/meta-common/recipes-phosphor/host/ampere-hostctrl/ampere_host_check.sh index 532b139..9759b88 100644 --- a/meta-ampere/meta-common/recipes-phosphor/host/ampere-hostctrl/ampere_host_check.sh +++ b/meta-ampere/meta-common/recipes-phosphor/host/ampere-hostctrl/ampere_host_check.sh
@@ -18,9 +18,6 @@ Get ss xyz.openbmc_project.Condition.HostFirmware \ CurrentFirmwareCondition | cut -d"." -f6) if [ "$st" == "Running\"" ]; then - mkdir -p /run/openbmc - echo "Creating /run/openbmc/host@0-on" - touch /run/openbmc/host@0-on exit 0 fi sleep 1
diff --git a/meta-ampere/meta-jade/recipes-ampere/platform/mtjade-gpio-config/ampere_gpio_utils.sh b/meta-ampere/meta-jade/recipes-ampere/platform/mtjade-gpio-config/ampere_gpio_utils.sh index 67e601c..28c67b5 100644 --- a/meta-ampere/meta-jade/recipes-ampere/platform/mtjade-gpio-config/ampere_gpio_utils.sh +++ b/meta-ampere/meta-jade/recipes-ampere/platform/mtjade-gpio-config/ampere_gpio_utils.sh
@@ -10,7 +10,6 @@ set_gpio_power_off() { echo "Setting GPIO before Power off" - rm -f /run/openbmc/host@0-on } set_gpio_power_on() {