summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Muhle <armuhle@us.ibm.com>2012-10-17 09:45:09 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-10-19 11:13:49 -0500
commit061548ec53d76b2119a16211131536394d505a88 (patch)
tree3e96f74816ff344bacf4332de45f4d50a44c5189
parentd906a5db4a79bcddbbfea88dcdd2c9289ccde623 (diff)
downloadtalos-hostboot-061548ec53d76b2119a16211131536394d505a88.tar.gz
talos-hostboot-061548ec53d76b2119a16211131536394d505a88.zip
Changes so HWSV Loads HB patches on Tuleta in HB Dev Environment
Hardware Server is in the process of enabling function that will update PNOR with the hostboot base and extended images found on the FSP during the IPL. This change triggers a copy command to be run on the FSP which overwrites the default images with patch images when in the Hostboot Developer Environment. Note: This change is backwards compatible, so it does not need to be co-reqed with an FSP driver. Change-Id: I5f3dbc49ba66141c63522191721d3e09cd37e6d9 RTC:51082 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2076 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Terry J. Opie <opiet@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
-rwxr-xr-xsrc/build/simics/combined.simics21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/build/simics/combined.simics b/src/build/simics/combined.simics
index e69de29bb..b21247e4c 100755
--- a/src/build/simics/combined.simics
+++ b/src/build/simics/combined.simics
@@ -0,0 +1,21 @@
+#If running in Hostboot Developer Environment, copies patched base
+#and extended hostboot images onto the FSP so HWSV will load
+#pached versions to PNOR instead of the default images
+#from the FSP the driver.
+try {
+ if (python "os.environ.has_key('HOSTBOOTROOT')") {
+ echo "Running Hostboot developer patch commands"
+ $sbbase = (python "os.environ['sb']")
+ $hbsrc_dir = "/host/" + $sbbase + "/hbfw/img/"
+
+ $hbpatch_cmd = "cp " + $hbsrc_dir + "/hostboot.bin "
+ $hbpatch_cmd = $hbpatch_cmd + $hbsrc_dir + "/hostboot_extended.bin "
+ $hbpatch_cmd = $hbpatch_cmd + "/opt/fips/components/hwsv/\n"
+
+ script-branch {
+ local $con = fsp2_minicomA.con
+ $con.wait-for-string "C1001FFF"
+ $con.input $hbpatch_cmd
+ }
+ }
+} except { echo "ERROR: Failed to load tools in combined.simics." }
OpenPOWER on IntegriCloud