summaryrefslogtreecommitdiffstats
path: root/src/build/buildpnor/buildpnor.pl
Commit message (Collapse)AuthorAgeFilesLines
* Clear ECC sections marked "clearOnEccErr" on errorDean Sanner2017-09-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | - Add the capability for Hostboot to recover (with reboot) when it consumes an ECC error - PNOR layout needs to be updated to flag the recoverable sections (generally cached or throw away data like *VPD HBEL, and GUARD partitions) - Upon bad ECC detection, Hostboot will check partition flag and if set, it will clear and write good ECC to PNOR. It will then throw the normal error and terminate, waiting for the BMC to issue a reboot Change-Id: Ie4f4c0637d3962e9d4871e84a0bda8c256a74440 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/44608 Reviewed-by: Stephen M. Cprek <smcprek@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: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add HB_VOLATILE PNOR section flagDean Sanner2017-06-161-0/+4
| | | | | | | | | | | Change-Id: I8431edec1178cc062fdda943e5cade08acc5014c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41687 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Support gracefully adding signing headers to PNOR sectionsNick Bofferding2017-05-081-4/+6
| | | | | | | | | | | | | Change-Id: Ie8ce7672a41c0b6230918911f59ada5443c552f5 RTC: 170650 CMVC-Coreq: 1022416 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39869 Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Support Provisioning PNOR partition XML element.Matt Spinler2017-03-081-1/+1
| | | | | | | | | | | | | | | | | If the element is present, set a flag in the PNOR TOC. Other code, like BMC code, would then erase these partitions when the system is reprovisioned. RTC: 143305 Forwardport: yes Change-Id: I457895f65d81e0a971bf301f16be2921dc21a24a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/20576 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Port secureboot build infrastructure from P8 to P9Stephen Cprek2016-11-161-373/+15
| | | | | | | | | | | Change-Id: Ief0412848818c45ee9b49476926cd742b9fa78f3 RTC:163081 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31591 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Update Bootloader to handle moving the TOC of PNOR aroundcrgeddes2016-08-251-62/+81
| | | | | | | | | | | | | | | | | | | Moved 1 of the PNOR TOCs from 0x8000 to TOP_OF_FLASH - 64KB. Updated bootloader and pnor access code to handle new toc location. Update the defaultPnorLayout to reflect these changes Also added a FSP default pnor xml that will generate a 128 MB image for FSP boxes to use. RTC: 154286 Change-Id: I0253590299ff9714b0d5ab12a02ac9d653b115fa Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27461 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Double size of Hostboot Extended Image(HBI) (630000 - > C60000)crgeddes2016-07-181-1/+1
| | | | | | | | | | Change-Id: I4e8c029d56c81b0dc8011b97385cee7c0b324b64 RTC:154286 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27112 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Changing XZ decompressor to verify without pnor changesElizabeth Liner2016-07-181-26/+0
| | | | | | | | | | | | | This patch set is reverting previous pnor changes for XZ verification, and instead is checking the MAGIC_HEADER to verify if a section is XZ compressed. Change-Id: I17c6ec76aef0261e07042f91df550ef34c3d60b3 RTC:149915 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26728 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Adding xz decompression functionality for the skiboot imageElizabeth Liner2016-03-211-1/+27
| | | | | | | | | | Change-Id: I50d1eaa8bc76a030b42f982e2a967773e113f123 RTC:125550 depends-on: I2a104ec955966a6fcb9ed94dde54ab763c30210a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21854 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Fix buildpnor.pl to both work and be slightly more deterministicStewart Smith2016-02-191-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | The current code seems to rely on perl hash ordering in order to create the PNOR file successfully. What was occuring was that we were writing the backup TOCs in an order that meant we triggered an error in fpart (from open-power/ffs): > fpart: unexpected : ../src/libffs.c(968) : (code=-1) 'BACKUP_PART' > at offset 33521664 and size 32768 overlaps 'part' at offset 33521664 > and size 4096 This patch enforces order in the universe and increases the determinism of the pnor creation process. Change-Id: I3bbaf977542a1bebaf1e0b0b528538a7c54541fa Reported-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Patrick Williams <iawillia@us.ibm.com> Forwardport: yes Github: fixes open-power/hostboot#44 Github: closes open-power/hostboot#45 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23183 Tested-by: Jenkins Server Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23187
* Fix and simplify error handling in buildpnor scriptStephen Cprek2015-11-191-219/+88
| | | | | | | | | | | | Change-Id: I90db0c0018dbdfa81babaec4155162d1545c8ff1 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21939 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Allow dynamic sizing of HBI when test cases are runStephen Cprek2015-09-291-5/+57
| | | | | | | | | | | | | Change-Id: I30947cb19125e616c57af89434acd8a9811b1a74 RTC:135217 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20735 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Reviewed-by: Thi N. Tran <thi@us.ibm.com> Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Christopher J. Engel <cjengel@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Set flag for pseudo-partition as indicator to BMC code updateBill Schwartz2015-07-171-0/+18
| | | | | | | | | | | | | | | Set flag in the FFS to indicate that OTHER_SIDE and BACKUP_PART are not real partitions and should be ignored when doing section-based pnor updates. Change-Id: Id193ad88e1ebe5d62fef2cf793811f599ba2162d RTC: 129057 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/18990 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Created 2-sided and golden-side pnor layoutsPrachi Gupta2015-02-111-65/+189
| | | | | | | | | RTC:120062 Change-Id: I416e6ebc2ef59608bc673a5a497bfce3263b3fc8 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15278 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support for Redundant Copy of HB code in PNORStephen Cprek2015-02-021-239/+351
| | | | | | | | | | | | | - 2 TOC's per side - side, sideless, preserved, and readOnly tags - Determine which SEEPROM side HB booted from - Modify gaurd code to not run when gaurd section DNE Change-Id: I62dd27c9aa79c3111d27e647f1b66a7c938ad6e8 RTC:109398 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14629 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update PNOR build script to handle two sidesDean Sanner2014-10-211-25/+56
| | | | | | | | | | Change-Id: I61db4d83ba8ea7ddc61c776625b43a07ee0039b0 RTC: 115870 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13479 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change copyright prolog for all files to Apache.Patrick Williams2014-05-211-10/+10
| | | | | | | Change-Id: I5664587b4f889099290ef50d50fa9ce5e580e1eb Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11167 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add sha512perEC to SBEC and version to WINKStephen Cprek2014-03-211-4/+10
| | | | | | | | | | Change-Id: I2e5dadc3b8b8280d8eaa5e7662e9ecbc4dda5d88 RTC: 96020 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9211 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Speed up buildpnor.Patrick Williams2014-03-071-3/+14
| | | | | | | | Change-Id: Id213a80e01e8a4a05e5cbe7c619393cfc1a9e1c7 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9224 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Handle Multiple TOCs and removed side codeStephen Cprek2013-12-121-25/+38
| | | | | | | | | | | | | Also added Hostboot Base image version header Change-Id: I0fc878a48b9449e5d4875fd14525faefe01b1ace RTC: 34764 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7276 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add version header to extended imageStephen Cprek2013-10-251-5/+22
| | | | | | | | | Change-Id: Iac1cbae0d9c7ecf74cc1d5f4b28cf5a56f24b5f2 RTC: 80985 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6858 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* change trace to non-error trace levelBrian Horton2013-10-141-1/+1
| | | | | | | | Change-Id: If4a0239b92fe880987562e7b9355e82fb0ff2794 RTC: 88448 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6664 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* PNOR ECC SupportDan Crowell2013-10-111-0/+29
| | | | | | | | | | | | | | Adding ECC support to the PNOR Resource Provider as well as the makefiles that create the images. Also fixed a bug in the PNOR DD for writes across erase blocks. Change-Id: I31ff6817cd35728badcd23a48fa73e51727142b9 RTC: 66213 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6203 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
* Replace ffs tool with fcp and fpartDean Sanner2013-07-171-61/+49
| | | | | | | | Change-Id: I06da562001e54c8e4d4b632b6d5b8815f520daef Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5344 Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Updating PNOR Layout to better match current directionAdam Muhle2013-02-141-189/+46
| | | | | | | | | | | | | The needs placed on the PNOR layout have morphed over time. I've cleaned it up to better match current requirements. Later commits will add support for features like SecureBoot, CRC, etc. Change-Id: Ie2479c362423a3034167512480631d1aa3a16bec RTC: 63897 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3136 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update build PNOR tool to detect FFS versionAdam Muhle2013-02-081-38/+20
| | | | | | | | | | | | Making the build PNOR tool look at ffs tool version to determine which set of input parms to use. Change-Id: I0aa2a19b8596c8c83533b81943de11149527c2a7 RTC: 63498 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3124 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update build PNOR tool to handle new FFS ParmsAdam Muhle2013-02-061-25/+107
| | | | | | | | | | | | | | | | The Building Block team is releasing a new version off ffs which requires new input parms. To avoid a co-req situation, I've changed buildpnor.pl to detect the new ffs binary by checking the SHA hash. This triggers using the new parms. In a few weeks this check will be removed. (Tracked in RTC) Change-Id: Ie9b14eb7cb95e7988b4afa216eaa4b75cef85cd8 RTC: 63498 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3088 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Deliver new PNOR tooling to ODE sandboxAdam Muhle2012-08-161-207/+114
| | | | | | | | | | | | | | | | | | | | | | Updating pnor build process in the following ways: -Murano/Venice/Tuleta pnor images now build in ODE sandbox -They are built using the ffs tool -hbDistribute delivers necessary files to ODE to enable building in ODE sandbox. -Delivering ffs_hb.H to CMVC to enable commonality of FFS user data with Hardware Server -Disabled failing Scom test case assoicated with new bbuild. Opened Issue to track resolution. Note, VBU image is still built the old way. That will be updated next sprint. Change-Id: Ie4cdca053c3f4221e5ca051a68157159970dfce2 RTC: 35045 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1436 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change PNORDD test cases to use test section of PNORAdam Muhle2012-07-111-14/+24
| | | | | | | | | | | | | | | Updated the PNOR Device Driver test cases to use a specially created test section of PNOR. The test cases will only run if the TEST section exists. Disabled the fake-pnor related test cases as the test section offset does not exist in the fake-pnor address space. Opened a story to fix this later. Change-Id: I1b5fd4989ee775c14034430226d9ffe844995f96 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1335 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update PNOR RP to parse FFS Partition TableAdam Muhle2012-07-091-3/+13
| | | | | | | | | | | | This function allows us to support varied PNOR layouts in Hostboot. Change-Id: I7294999d3619692aaab424dca1ae608a0a84fa81 RTC: 35057 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1274 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update buildpnor.pl to build FFS data when creating PNOR image.Adam Muhle2012-06-261-91/+234
| | | | | | | | | | | | Updated the buildpnor.pl tool to create partition information which matchies the FFS data structure instead of the previously defined TOC implementation. Change-Id: I37f55911da867b12ddfcf44861771c94680a5d5c RTC: 43075 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1195 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Fix deprecated hash-ref warnings in buildpnor.pl.Adam Muhle2012-04-161-18/+18
| | | | | | | | | | | | Tweaking how hash references are accessed in buildpnor.pl to avoid a deprecated method of accessing hashes, which raises an error in newer version of perl. Change-Id: Ifda48409fc07feb3ebd50a2d28ffec22d7505c48 RTC: 35043 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/891 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Automating creation of PNOR image with TOC and Section data.Adam Muhle2012-04-041-0/+691
Wrote buildpnor.pl which builds PNOR image based on pnorLayout.xml file and input binary files. Setup makefiles to create PNOR if input files change and to handle make clean. Updated PNORRP to support new section offsets and new MVPD and DIMM VPD sections. Also updated PNORDD to use 4 MB of L3 Cache as fake-PNOR. Change-Id: Ic40670a45a53211a2414570d7fe5632e19bd44ed RTC: 35043 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/819 Reviewed-by: Terry J. Opie <opiet@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud