diff options
author | Raptor Engineering Development Team <support@raptorengineering.com> | 2018-05-12 19:42:01 -0500 |
---|---|---|
committer | Raptor Engineering Development Team <support@raptorengineering.com> | 2018-05-12 19:42:01 -0500 |
commit | 26839f66a5934a47114e1eaf8b079bd0c45346c3 (patch) | |
tree | ee40e23cf09be503e9ebbe77d5889be87b7ea1a2 | |
parent | 2b45b3f7adc88ed52f3fcfa654aeb40cb12d7cab (diff) | |
download | talos-openbmc-26839f66a5934a47114e1eaf8b079bd0c45346c3.tar.gz talos-openbmc-26839f66a5934a47114e1eaf8b079bd0c45346c3.zip |
Do not attempt to bind OCC drivers until IPL is complete
-rwxr-xr-x | meta-openbmc-machines/meta-openpower/common/recipes-phosphor/occ/openpower-occ-control/occ-active.sh | 8 |
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) |