diff options
author | Lei YU <mine260309@gmail.com> | 2016-12-29 11:33:53 +0800 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-02-24 16:55:32 +0000 |
commit | 7b9294f17f1cea3a3f58b29ddaf0c383c7551a1e (patch) | |
tree | 987895ada73c78a8cab258140675d30ab5c317ac | |
parent | b24fb1ff30a58d5a862dde912289cf5f161d9dd2 (diff) | |
download | talos-openbmc-7b9294f17f1cea3a3f58b29ddaf0c383c7551a1e.tar.gz talos-openbmc-7b9294f17f1cea3a3f58b29ddaf0c383c7551a1e.zip |
meta-romulus: Make vcs_workaround execute after avsbus-enable
This is a workaround for Romulus, that pgood will not be ready before
CPLD triggers it, and vcs_workaround is expected to be done before CPLD
trigger.
The common vcs_workaround is executed after pgood is asserted, so on
Romulus it will not get executed since pgood won't be asserted.
This commit moves vcs_workaround after avsbus-enable and before CPLD
trigger, so it will be executed in a proper step.
Change-Id: I3899153023070a995393e7c8554c37b7f1b86996
Signed-off-by: Lei YU <mine260309@gmail.com>
2 files changed, 16 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/op-pdbg-host-control/vcs_workaround@.service b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/op-pdbg-host-control/vcs_workaround@.service new file mode 100644 index 000000000..cf02d2519 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/op-pdbg-host-control/vcs_workaround@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Run VCS workaround on host%i +Wants=obmc-host-start-pre@%i.target +Before=obmc-host-start-pre@%i.target +Wants=avsbus-enable@%i.service +After=avsbus-enable@%i.service +Conflicts=obmc-chassis-stop@%i.target + +[Service] +ExecStart={bindir}/vcs_workaround.sh {MACHINE} +Type=oneshot +RemainAfterExit=yes + +[Install] +WantedBy=obmc-chassis-start@%i.target diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/p9-vcs-workaround.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/p9-vcs-workaround.bbappend new file mode 100644 index 000000000..8e1072c3f --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/host/p9-vcs-workaround.bbappend @@ -0,0 +1 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/op-pdbg-host-control:" |