Boot from sbe side 0 when boot count is greater than 0
Recent code changes now decrement the boot count at
the start of every boot. The sbe side select design
is to boot from side 0 twice, then side 1 on the
last attempt. Now that the boot count is decremented
at the start of the boot (and the total boot count is 3),
the software needs to use side 0 when the boot count
is greater than or equal to 1.
Resolves openbmc/openbmc#2169
Change-Id: Ic08bed34d58de3d40b742ce52ca83627976d8fee
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/procedures/p9/start_host.cpp b/procedures/p9/start_host.cpp
index 3049eac..541252e 100644
--- a/procedures/p9/start_host.cpp
+++ b/procedures/p9/start_host.cpp
@@ -68,7 +68,7 @@
// Choose seeprom side to boot from
cfam_data_t sbeSide = 0;
- if(getBootCount() > 1)
+ if(getBootCount() > 0)
{
sbeSide = 0;
log<level::INFO>("Setting SBE seeprom side to 0",