summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThu Ba Nguyen <tbnguyen@amperecomputing.com>2022-05-05 07:15:54 +0300
committerThang Q. Nguyen <thang@os.amperecomputing.com>2022-06-22 17:41:16 +0300
commit6af2efc9f4eaa53f80ec9c6a4ee476f230af7b1c (patch)
tree01e5500756638d11cb560478897fec5323cae7e4
parenta8d258f6f444814acdfcac3631febe2116057de4 (diff)
downloadopenbmc-6af2efc9f4eaa53f80ec9c6a4ee476f230af7b1c.tar.xz
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 <tbnguyen@amperecomputing.com> Change-Id: I3bfdabc7ab968a9b673ffec9ae5dc208966a548a
-rw-r--r--meta-ampere/meta-common/recipes-phosphor/state/phosphor-state-manager_%.bbappend5
1 files changed, 4 insertions, 1 deletions
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"