summaryrefslogtreecommitdiffstats
path: root/meta-openpower
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-01-21 06:41:07 -0600
committerTimothy Pearson <tpearson@raptorengineering.com>2019-04-25 08:01:50 +0000
commit272c2158cfaf0c1537881aab72c91dd7724c539e (patch)
tree818911588c6b998064c9f87996a3be45a8e6aea4 /meta-openpower
parent0cd975483fb609c8f807ede9f5fc6919d9f877c4 (diff)
downloadtalos-openbmc-272c2158cfaf0c1537881aab72c91dd7724c539e.tar.gz
talos-openbmc-272c2158cfaf0c1537881aab72c91dd7724c539e.zip
Enable OCC service after IPL completion
Diffstat (limited to 'meta-openpower')
-rwxr-xr-xmeta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh3
-rw-r--r--meta-openpower/recipes-phosphor/occ/openpower-occ-control/op-occ-enable@.service8
2 files changed, 6 insertions, 5 deletions
diff --git a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
index a6097e527..c005c7dd8 100755
--- a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
+++ b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
@@ -14,6 +14,9 @@ fi
OCC_CONTROL_SERVICE="org.open_power.OCC.Control"
+# Rescan bus to find OCCs
+openpower-proc-control scanFSI
+
busctl tree $OCC_CONTROL_SERVICE --list | grep occ | xargs -r -n1 -I{} \
busctl set-property $OCC_CONTROL_SERVICE {} org.open_power.OCC.Status \
OccActive b $value
diff --git a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/op-occ-enable@.service b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/op-occ-enable@.service
index b97253cf0..2e969b8e8 100644
--- a/meta-openpower/recipes-phosphor/occ/openpower-occ-control/op-occ-enable@.service
+++ b/meta-openpower/recipes-phosphor/occ/openpower-occ-control/op-occ-enable@.service
@@ -4,14 +4,12 @@ Conflicts=obmc-host-stop@%i.target
Conflicts=op-occ-disable@%i.service
Wants=org.open_power.OCC.Control.service
After=org.open_power.OCC.Control.service
-Wants=fsi-scan@%i.service
-After=fsi-scan@%i.service
-ConditionPathExists=/run/openbmc/host@%i-on
+Wants=obmc-host-ipl-complete@%i.target
+After=obmc-host-ipl-complete@%i.target
+ConditionPathExists=/run/openbmc/host@0-ipl-complete
[Service]
ExecStart=/usr/bin/env occ-active.sh enable
SyslogIdentifier=occ-active.sh
Type=oneshot
-[Install]
-WantedBy=obmc-host-start@%i.target
OpenPOWER on IntegriCloud