forked from openbmc/openbmc
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meta-ampere: ampere-host-check: Overide [email protected]…
…rvice When BMC boots, phosphor-host-check uses the software interfaces (IPMI inband Hearbeat command or PLDM interface) to verify the host state and create the host on indicator file. Ampere Altra SoCs don't support those software interfaces. They use the GPIO interface. GPIO pin S0_FW_BOOT_OK go high when the host is on. This commit appends [email protected] to phosphor-state-manager This service will replaces the role of [email protected]. Tested: 1. Boot up BMC with the host is off/on. Verify CurrentHostState. Signed-off-by: Thu B Nguyen <[email protected]>
- Loading branch information
1 parent
7190f22
commit eb0522e
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...eta-common/recipes-phosphor/state/phosphor-state-manager/[email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Unit] | ||
Description=Check Host%i status on BMC reset | ||
Wants=phosphor-ipmi-host.service | ||
After=phosphor-ipmi-host.service | ||
Wants=obmc-host-reset-running@%i.target | ||
Before=obmc-host-reset-running@%i.target | ||
Wants=op-reset-chassis-on@%i.service | ||
After=op-reset-chassis-on@%i.service | ||
Conflicts=obmc-host-stop@%i.target | ||
OnFailure=obmc-host-quiesce@%i.target | ||
OnFailureJobMode=flush | ||
ConditionPathExists=!/run/openbmc/host@%i-on | ||
|
||
[Service] | ||
RemainAfterExit=yes | ||
Type=oneshot | ||
ExecStart=/usr/sbin/ampere_host_check.sh 1 0 | ||
|
||
[Install] | ||
WantedBy=obmc-host-reset@%i.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,20 @@ DEPS_CFG = "resetreason.conf" | |
DEPS_TGT = "[email protected]" | ||
SYSTEMD_OVERRIDE_${PN}-discover_append = "${DEPS_CFG}:${DEPS_TGT}.d/${DEPS_CFG}" | ||
|
||
SRC_URI += " \ | ||
file://[email protected] \ | ||
" | ||
|
||
# We don't want the obmc-host-shutdown (softoff) to require | ||
# obmc-chassis-poweroff. obmc-chassis-poweroff will be activated once | ||
# the Shutdown ACK pin is toggled (monitored by phosphor-gpio-monitor) | ||
HOST_STOP_FMT = "" | ||
HOST_REBOOT_FMT = "" | ||
AMPERE_RESET_HOST_CHECK_TMPL = "[email protected]" | ||
|
||
do_install_append() { | ||
install -m 0644 ${WORKDIR}/${AMPERE_RESET_HOST_CHECK_TMPL} ${D}${systemd_unitdir}/system/phosphor-reset-host-check@.service | ||
} | ||
|
||
pkg_postinst_${PN}-obmc-targets_append() { | ||
rm "$D$systemd_system_unitdir/[email protected]/[email protected]" | ||
|