summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-05-12 19:42:01 -0500
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-05-12 19:42:01 -0500
commit26839f66a5934a47114e1eaf8b079bd0c45346c3 (patch)
treeee40e23cf09be503e9ebbe77d5889be87b7ea1a2
parent2b45b3f7adc88ed52f3fcfa654aeb40cb12d7cab (diff)
downloadtalos-openbmc-26839f66a5934a47114e1eaf8b079bd0c45346c3.tar.gz
talos-openbmc-26839f66a5934a47114e1eaf8b079bd0c45346c3.zip
Do not attempt to bind OCC drivers until IPL is complete
-rwxr-xr-xmeta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
index 9be4e807e..1a7b19b14 100755
--- a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh
@@ -14,6 +14,14 @@ else
exit -1
fi
+if [ "$value" == "true" ]; then
+ # Verify host IPL is complete
+ while [ ! -e /run/openbmc/host@0-ipl-complete ]; do
+ echo "Waiting for host IPL to complete before engaging OCC interface..."
+ sleep 1
+ done
+fi
+
# Get CPU count
CPU_COUNT=1
STATUS_FLAGS=$(i2cget -y 12 0x31 0x7)
OpenPOWER on IntegriCloud