summaryrefslogtreecommitdiffstats
path: root/src/build/simics/hb-pnor-vpd-preload.py
diff options
context:
space:
mode:
authorAdam Muhle <armuhle@us.ibm.com>2012-10-30 16:49:45 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-11-03 14:51:59 -0500
commit9f3a481a4535326c3da36b55240e22a4736d60d0 (patch)
tree815dfc8f6dc34cc73d7281fcc32003e81c71fcbd /src/build/simics/hb-pnor-vpd-preload.py
parenta577e41f193dafd6d866e67c754b3c1a30e34f59 (diff)
downloadtalos-hostboot-9f3a481a4535326c3da36b55240e22a4736d60d0.tar.gz
talos-hostboot-9f3a481a4535326c3da36b55240e22a4736d60d0.zip
Update VBU PNOR layout to include Winkle and Error Log partitions
-Reduced the size of VPD partitions to squeeze in Winkle and Error log paritions. -Winkle and Error log partitions are smaller than production size to fit within fake-PNOR, but big enough to be functional -Deliviring more tools as part of VPO release to enable automation of figuring out VPD offsets, generating VPD, etc. Change-Id: I901cc895fbdb04837bd662329dc0c02d26e4b63f RTC: 49033 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2181 Tested-by: Jenkins Server Reviewed-by: Terry J. Opie <opiet@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/simics/hb-pnor-vpd-preload.py')
-rwxr-xr-xsrc/build/simics/hb-pnor-vpd-preload.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/build/simics/hb-pnor-vpd-preload.py b/src/build/simics/hb-pnor-vpd-preload.py
new file mode 100755
index 000000000..1617d2387
--- /dev/null
+++ b/src/build/simics/hb-pnor-vpd-preload.py
@@ -0,0 +1,37 @@
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: src/build/simics/hb-pnor-mvpd-preload.py $
+#
+# IBM CONFIDENTIAL
+#
+# COPYRIGHT International Business Machines Corp. 2012
+#
+# p1
+#
+# Object Code Only (OCO) source materials
+# Licensed Internal Code Source Materials
+# IBM HostBoot Licensed Internal Code
+#
+# The source code for this program is not published or other-
+# wise divested of its trade secrets, irrespective of what has
+# been deposited with the U.S. Copyright Office.
+#
+# Origin: 30
+#
+# IBM_PROLOG_END_TAG
+import os,sys
+import subprocess
+import shlex
+
+#------------------------------------------------------------------------------
+# Call a perl script to build up the VPD data for PNOR.
+#------------------------------------------------------------------------------
+toolLoc = os.environ.get("HB_TOOLPATH");
+thisSys = os.environ.get("HB_MACHINE").upper();
+numProcs = os.environ.get( "GFW_P8_%s_NUM_PROCS" % thisSys );
+numCentaurPerProc = os.environ.get( "GFW_P8_%s_CENTAURS_PER_PROC" % thisSys );
+cmd = toolLoc + "/hb-pnor-vpd-preload.pl --numProcs " + numProcs + " --numCentPerProc " + numCentaurPerProc + " --machine " + thisSys + " --dataPath " + toolLoc
+print "Generate PNOR VPD for " + numProcs + " processor(s), and " + numCentaurPerProc + " Centaur(s) per Processor.";
+args = shlex.split( cmd );
+subprocess.call( args );
OpenPOWER on IntegriCloud