Skip to content

Commit

Permalink
Enable secure boot in Axone simics
Browse files Browse the repository at this point in the history
SECUREBOOT::enabled() was returning 0.
secure_jumper access was changed in Axone.
Updating startup.simics to use new method.

Change-Id: I55baac73172dd43257b14850575b61241e9d8083
RTC:201738
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/81456
Reviewed-by: Hieu C Nguyen <hieu.nguyen@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Roland Veloz <rveloz@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: Daniel M Crowell <dcrowell@us.ibm.com>
  • Loading branch information
mderkse1 authored and dcrowell77 committed Aug 2, 2019
1 parent 15b0afe commit 3a14615
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/build/simics/startup.simics
Expand Up @@ -112,6 +112,7 @@ try {
run-python-file (lookup-file hbfw/hb-simdebug.py)
} except { echo "ERROR: Failed to load Hostboot debug tools (hb-simdebug.py)" }


# Determine security state
$hw_security=(shell "echo $SECURITY_HW_POLICY")
if($hw_security == "") {
Expand All @@ -133,13 +134,27 @@ if($hw_security == "1") {
$jumperApplied=FALSE
}

# Load jumper state to each processor
foreach $procX in (get-object-list p9_proc) {

if ($hb_machine == "AXONE") {
# Set logical jumper state in SIMICS based on HW policy
# "TRUE"=jumper applied(security disabled, default)
# "FALSE"=jumper removed(security enabled)
(($procX)->secure_jumper=$jumperApplied)

# Load jumper state to the master processor
$hb_masterproc.set-secure-jumper value = $jumperApplied

# Load jumper state to all slave processors
foreach $procS in ($hb_masterproc.get-slave-procs) {
$procS.set-secure-jumper value = $jumperApplied
}
} else {
# Load jumper state to each processor
foreach $procX in (get-object-list p9_proc) {

# Set logical jumper state in SIMICS based on HW policy
# "TRUE"=jumper applied(security disabled, default)
# "FALSE"=jumper removed(security enabled)
(($procX)->secure_jumper=$jumperApplied)
}
}

if ($hb_mode == 0) {
Expand Down

0 comments on commit 3a14615

Please sign in to comment.