summaryrefslogtreecommitdiffstats
path: root/src/usr/errl
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sjonas@au1.ibm.com>2018-06-27 13:35:35 +1000
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-10-16 13:55:50 -0500
commitcd400323aa493e656fb839202d6f6414a3b040af (patch)
treeb1a053b10829eaa30b267051579fcbcacdfdddf4 /src/usr/errl
parentce1ebd1460c3666a8e8553d0f57e5dc8bf5aa344 (diff)
downloadblackbird-hostboot-cd400323aa493e656fb839202d6f6414a3b040af.tar.gz
blackbird-hostboot-cd400323aa493e656fb839202d6f6414a3b040af.zip
genPnorImages: Add VERSION to signed partitions
Mark VERSION as a signed partition and also check for it in the IPMI FRU setup. Change-Id: I6e8690c4f34d1f5ce92750960e6c73afcbf0a8e9 CQ:SW416159 Signed-off-by: Samuel Mendoza-Jonas <sjonas@au1.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/61439 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/errl')
-rw-r--r--src/usr/errl/errlentry.C23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C
index b1715ad41..072a31ac1 100644
--- a/src/usr/errl/errlentry.C
+++ b/src/usr/errl/errlentry.C
@@ -48,6 +48,7 @@
#include <errl/errludattribute.H>
#include <errl/errludstate.H>
#include <trace/interface.H>
+#include <config.h>
#include "../trace/entry.H"
#include <util/align.H>
@@ -667,16 +668,21 @@ void ErrlEntry::addHbBuildId()
void ErrlEntry::addVersionInfo()
{
+
+// Start of IPL only block; runtime does not support secure loading of
+// partitions
+#ifndef __HOSTBOOT_RUNTIME
+
// Version section of PNOR is only available to OpenPOWER systems.
- if (!INITSERVICE::spBaseServicesEnabled())
+ if ( !INITSERVICE::spBaseServicesEnabled()
+ && PNOR::isSectionAvailable(PNOR::VERSION))
{
- //TODO: CQ:SW416159 Uncomment when merged
- // bool l_secureSectionLoaded = false;
- errlHndl_t l_errl = nullptr/*, l_errl_loadSecureSection = nullptr*/;
+ bool l_secureSectionLoaded = false;
+ errlHndl_t l_errl = nullptr, l_errl_loadSecureSection = nullptr;
do
{
-/* TODO: CQ:SW416159 Uncomment when merged
+
#ifdef CONFIG_SECUREBOOT
l_errl_loadSecureSection = PNOR::loadSecureSection(PNOR::VERSION);
if (l_errl_loadSecureSection)
@@ -698,7 +704,7 @@ void ErrlEntry::addVersionInfo()
l_secureSectionLoaded = true;
}
#endif
-*/
+
// Get PNOR Version
PNOR::SectionInfo_t l_pnorVersionInfo;
l_errl = getSectionInfo(PNOR::VERSION, l_pnorVersionInfo);
@@ -737,7 +743,6 @@ void ErrlEntry::addVersionInfo()
ErrlUserDetailsString(l_pVersionString).addToLog(this);
} while(0);
-/* TODO: CQ:SW416159 Uncomment when merged
#ifdef CONFIG_SECUREBOOT
if (l_secureSectionLoaded)
{
@@ -757,9 +762,11 @@ void ErrlEntry::addVersionInfo()
}
}
#endif
-*/
+
}
+#endif // End of IPL only block
+
}
enum {
OpenPOWER on IntegriCloud