summaryrefslogtreecommitdiffstats
path: root/import/tools/imageProcs
Commit message (Collapse)AuthorAgeFilesLines
* OCMB explorer initCompiler supportClaus Michael Olsen2018-09-194-7/+7
| | | | | | | | | Change-Id: I2778965fbd071d6821f6de3990b11a9c85e753b4 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/63156 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Reviewed-by: Benjamin Gass <bgass@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* Revert "Self Restore: Integrated support for build of self-restore code in EKB."Gregory S. Still2018-09-191-1/+1
| | | | | | | | | This reverts commit dcebd90d5d9518bfe9809dac395f8410d67f5ee6. Change-Id: I588f0798c0f1914e10f7aef218e9e377b12aa3c2 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/61066 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Self Restore: Integrated support for build of self-restore code in EKB.Prem Shanker Jha2018-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | Self restore binary used to get built by a shell script standalone. It used to get checked in to EKB. Hardware image build infrastructure used to just pick that binary and insert it into the hardware image. This commit augments the EKB build flow by incorporating a capability to build self restore binary like any other executable generated during EKB build. Syntax to build binary: ekb build p9_core_restore_routines Key_Cronus_Test=PM_REGRESS Change-Id: Ifdcf31df6ceded564222f6962d94a3459072a3d3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57345 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Kahn C. Evans <kahnevan@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Revert "Self Restore: Integrated build with rest of the EKB build flow."Prem Shanker Jha2018-09-191-1/+1
| | | | | | | | | | | This reverts commit 9a74fd0f1b933fa171eaa10e0a60540160ce7aca. Change-Id: Id362411dea9054c9836bfbf9f57b42e727da44e1 Original-Change-Id: Id935d8de4ccca6a41d25e8b9465f69fad8941188 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56661 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* Self Restore: Integrated build with rest of the EKB build flow.Prem Shanker Jha2018-09-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | Self restore binary used to get built by a shell script standalone. It used to get checked in to EKB. Hardware image build infrastructure used to just pick that binary and insert it into the hardware image. This commit augments the EKB build flow by incorporating a capability to build self restore binary like any other executable generated during EKB build. Syntax to build binary: ekb build p9_core_restore_routines Key_Cronus_Test=PM_REGRESS Change-Id: I63abaafb398de14c33ad8f36580d5a6d9b72f6c2 Original-Change-Id: I68b2587eab2798b7b8a2a188187767fa53aaf12f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55259 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* Characterization Default ImageAdam Hale2017-10-232-2/+19
| | | | | | | | | | | Change-Id: I24ce2816a6e5583824f94db4f200cba9e0a2ec74 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43407 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
* CME/SGPE/PGPE/Restore Image Build: pick up per-chip/EC level filesMartin Peschke2017-10-234-12/+26
| | | | | | | | | | | | | | | | | | | | introduces a new image build macro that is an easy-to-use wrapper for the p9_dd_container_tool, which is the base for this support calls new macro in various XIP sub-image build flows to generate DD level containers for some section content, and picks these files up in XIP image build flows DD level specific files to be handled include HCODE for CME/SGPE/PGPE and CPMR/PPMR/QPMR headers. Change-Id: Ia78e99bfa508cbddcb6599ef0c980deca0993d66 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39590 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
* HW Image Build Flow: per-chip XIP sub-imagesMartin Peschke2017-10-234-64/+173
| | | | | | | | | | | | | | | | prereq for supporting multiple DD level HCODE build changes to generate <chipid>.<name>_image.bin files follow-up commits will pick up per-chip section content that is provided by others and their build flows Change-Id: Ief6ed91e1feb8dbf56802efd0f38ec9b75db2c05 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40755 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
* Increased the size of buildTag in xip header by another 4BytesRaja Das2017-10-234-12/+4
| | | | | | | | | | | | RTC:170829 Change-Id: I82b6a6fbe0816ab3cf205aa4e7b5dfe1fda2c8bb Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38195 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
* PM: Added support for PGPE Boot/PGPE integrationPrem Shanker Jha2017-10-232-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - support for P-State parameter block - implements a compact image layout of PGPE similar to CME/SGPE. - adds PGPE boot progress code as a field in PPMR header. - implements PGPE boot loader and PGPE boot copier. - incorporates ability to generate PPMR header in the build flow. - change logic for calculating CME's first block copy length. - Turned on generated tables in PGPE Hcode - Fixed up pointers to generated tables - add ATTR_PGPE_HCODE_FUNCTION_ENABLE attribute to control PGPE ops - fix p9_pstate_parameter_build bug with AVS timing attributes - Make OCC Pstate Parameter block a fixed offset (128KB) in PPMR - Make Pstate Table from PGPE a fixed offset (144KB) in PPMR to ease debug - Fix Endianes issues in OCC PPB and input slope calcs - Added PGPE Hcode Length to PGPE header so that GPPB SRAM location is known. - Build flag for OCc Immediate IPC response - Build flag to no use temp boot settings - Expanding tracing for debug - Added default values for PBAX attributes as placeholders for MRW in firmware - Added WOF VFRT structure definions to headers; movement into HOMER NOT yet supported - Addressed review comments and rebased - Rebased with ATTR_PGPE_HCODE_FUNCTION_ENABLE in separate commit for Cronus Change-Id: I4752debbc7fb3275d4e79804333654511de427ff Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26115 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: ASHISH A. MORE <ashish.more@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
* Add build_tag to xip image headerPrachi Gupta2017-10-234-8/+20
| | | | | | | | | | | | | | | | | When releasing an image to FW, we would like to keep track of which release tag was used to build this image. Later on, that release tag can be used to rebuild the same image. Change-Id: I734b9a642e1b1c0a63a1cc25ab9c61beb35b25f3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26930 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
* HW Image Build Flow: Remove obsolete image sectionsMartin Peschke2017-10-236-81/+9
| | | | | | | | | | | | | | These sections have never been used but were integrated into the respective code sections of the CME, SGPE and Restore images. Change-Id: I474206c2f7047cc4beacc33e44e17d0fb9a0a59d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25336 Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
* Intermittent jenkins failures related to xip tool ops on image filesRichard J. Knight2017-10-234-5/+5
| | | | | | | | | | | | | -Corrected .bin image dependencies for xip tool operations on raw image bin file. Dependency was incorrectly specified as setbuild_user should be setbuild_host as the final op. Change-Id: Ic0296dd4ef0970eef44a9a46afb30caa740bf358 RTC:155667 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25442 Tested-by: Jenkins Server Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
* Add remaining sub images to hw_imageRichard J. Knight2017-10-232-12/+24
| | | | | | | | | | | | | | -Update pstate_gpe_image.mk to append the lvl1, lvl2 boot loader bin files to pgpe xip image. -Update sgpe_image.mk to append the lvl1, lvl2 boot loader bin files to the sgpe xip image. Change-Id: Iab04adb67d3d1bf204b9a39924aecf3433b83f7c RTC:153726 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25132 Tested-by: Jenkins Server Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
* Add pgpe image to hw imageRichard J. Knight2017-10-233-0/+287
| | | | | | | | | | | | -Auto generate pstate_gpe image -Stitch together pgpe image parts into an XIP image Change-Id: I2ddd4f133ac917d565eb9ab85aaa5fda7a62ae18 RTC:153673 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24347 Tested-by: Jenkins Server Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
* Add restore image to hw imageRichard J. Knight2017-10-231-4/+14
| | | | | | | | | | | | -Auto generate cpmr_header image -Stitch together SelfRestore image parts into an XIP image Change-Id: Idd2e6c9020c200873544710bb4418e472230936b RTC:152668 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24346 Tested-by: Jenkins Server Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
* Add SGPE image to hw imageRichard J. Knight2017-10-231-4/+9
| | | | | | | | | | | | -Auto generate sgpe image -Stitch together SGPE parts into an XIP image Change-Id: Icb4f555248bd62e732a8f8e79094b7c933329584 RTC:152670 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24345 Tested-by: Jenkins Server Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
* Add CME image to hw_imageRichard J. Knight2017-10-233-5/+19
| | | | | | | | | | | | | | -Use new make recipes to create cme sub image -Modify .mk file to include actual cme hcode. -Resolved parallel build issues related to xip tool operations Change-Id: I31b9d871a66fcae10760f298cacfe1bd5d9bc080 RTC:152666 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24330 Tested-by: Jenkins Server Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
* Make changes to build cme stop_gpe pstate_gpe binary imagesDoug Gilbert2017-10-233-3/+3
| | | | | | | | | | | Change-Id: Idb1f5d629e17eb8266df8c05556fccf7cae9c332 RTC:151762 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23751 Tested-by: Jenkins Server Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
* Auto HW image generation frameworkMartin Peschke2017-10-233-11/+18
| | | | | | | | | | | | | | | | -Moved generic XIP image build recipes to tools/build/image.dir -Updated existing makefiles to enable users to create an unsigend hardware image using "ekb build hw_image" The hw_image.bin built with this commit contains dummy sections for some sub images, actual content will be added in later commits. Change-Id: I9b5e7e716378cf93a10ca1fb21e930425281e946 RTC:149766 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23243 Tested-by: Jenkins Server Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
* P9-XIP: improved image reportsMartin Peschke2017-10-233-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - enlarged build host string to avoid truncation - provide both section start and end offset in section table - provide section aligment in section table - fix "(null)" section name - aligning some fields Magic Number : 0x5849502053475045 "XIP SGPE" Header Version : 0x09 Link Address : 0x0000000080000000 L1 Loader Address : 0x00000000 L2 Loader Address : 0x00000000 Kernel Address : 0x00000000 Image Size : 0x000074f0 (29936) Normalized : Yes TOC Sorted : Yes <removed a line to silence Jenkins mistaking this for something else> Build Time : 14:22 Build User : mpeschke Build Host : hdrhapcc.boeblingen.de.ibm.com Section Table : Name Alignment Start End Size .header 1 0x00000000 0x0000015b 0x0000015c (348) .fixed 1 0x00000000 0x00000000 (0) .fixedtoc 1 0x00000000 0x00000000 (0) .toc 4 0x0000015c 0x000001f7 0x0000009c (156) .strings 1 0x000001f8 0x00000291 0x0000009a (154) .qpmr 8 0x00000298 0x00000697 0x00000400 (1024) .lvl1_bl 8 0x00000698 0x00000a97 0x00000400 (1024) .lvl2_bl 8 0x00000a98 0x00000e97 0x00000400 (1024) .hcode 8 0x00000e98 0x000074ef 0x00006658 (26200) 1 0x00000000 0x00000000 (0) 1 0x00000000 0x00000000 (0) 1 0x00000000 0x00000000 (0) 1 0x00000000 0x00000000 (0) 1 0x00000000 0x00000000 (0) 1 0x00000000 0x00000000 (0) Change-Id: I729a482504d5b3d310f93b982ad782fd4d254073 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22659 Tested-by: Jenkins Server Tested-by: Hostboot CI Tested-by: PPE CI Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
* HW Image Build Flow: CleanupsMartin Peschke2017-10-236-29/+2
| | | | | | | | | | | | | | | | | | Various changes that should be pushed to respective commits: - no attributes => no .fixed section for CME image - no attributes => no .fixed section for HW image - no bootloaders and kernel for HW image => no TOC entries - no bootloaders for CME image => no TOC entries - no bootloaders for Restore image => no TOC entries - moved ADD_IMAGE_INCDIR call from build flows to BUILD_IMAGE - removed some extra white space Change-Id: I7260df35beb084e1279a55c3d43f42e9c1f749cf Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22430 Tested-by: Jenkins Server Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
* Self-Restore Image Build FlowMartin Peschke2017-10-233-0/+270
| | | | | | | | Change-Id: I68f9d98aa94223d6ed56e0c16a5ab2a6a610505c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22386 Tested-by: Jenkins Server Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
* SGPE Image Build FlowMartin Peschke2017-10-233-0/+293
| | | | | | | | | | | | Preliminary content: - some dummy sections with 1kB zeros instead of real content - hcode contains stop_gpe.bin (not sure if this is the right thing) Change-Id: I8f3dc3f855c08946a2ba36ebe16fe83338c1a0c7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22284 Tested-by: Jenkins Server Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
* CME Image Build FlowPrachi Gupta2017-10-233-0/+299
Added 1K of zeros to vect, cme_image_header,and hcode section cme_image_header does not contain "XIP CMEM" as first 8 bytes Should this be in this header or XIP header? Change-Id: I9eda19696d86d26dcd9a28956e22aae21ea273c0 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22265 Tested-by: Jenkins Server Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com>
OpenPOWER on IntegriCloud