From 6af2efc9f4eaa53f80ec9c6a4ee476f230af7b1c Mon Sep 17 00:00:00 2001 From: Thu Ba Nguyen Date: Thu, 5 May 2022 11:15:54 +0700 Subject: meta-ampere: state-manager: disable host boot retry Ampere system supports host EEPROM failover which switches boot EEPROM from main to secondary EEPROM when the system is failed to boot. This causes trying to reboot the system after the first failure of power on is unnecessary. This commit changes boot retry from 3 to 1. Tested: 1. Make sure BMC does not retry to power on the host after first failure. Signed-off-by: Thu Ba Nguyen Change-Id: I3bfdabc7ab968a9b673ffec9ae5dc208966a548a --- .../recipes-phosphor/state/phosphor-state-manager_%.bbappend | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend b/meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend index 703ff48eba..62c6f96805 100644 --- a/meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend +++ b/meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend @@ -2,7 +2,10 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" DEPENDS += "gpioplus libgpiod" -EXTRA_OEMESON:append = " -Dhost-gpios=enabled" +EXTRA_OEMESON:append = " \ + -Dhost-gpios=enabled \ + -Dboot-count-max-allowed=1 \ + " FILES:${PN} += "${systemd_system_unitdir}/*" FILES:${PN}-host += "${bindir}/phosphor-host-condition-gpio" -- cgit v1.2.3