diff options
| author | Stephen Cprek <smcprek@us.ibm.com> | 2017-06-20 16:48:07 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-07-20 15:54:48 -0400 |
| commit | 781d316517240e869cc76ceff5cde3eb1fe6bc48 (patch) | |
| tree | 22009f9a9b34b9fe4456e72ce8bd5ce783aa0074 /src/makefile | |
| parent | 22d6e4636c815eecdcf778c417ef217e32878fba (diff) | |
| download | blackbird-hostboot-781d316517240e869cc76ceff5cde3eb1fe6bc48.tar.gz blackbird-hostboot-781d316517240e869cc76ceff5cde3eb1fe6bc48.zip | |
Increase HBB PNOR section max size to 1MB with ECC
Change-Id: Icfd9411deac792d9772e89e35e7da5df272a7ecc
RTC: 175114
CMVC-prereq: 1027576
CMVC-prereq: 1027947
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42170
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/makefile')
| -rw-r--r-- | src/makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/makefile b/src/makefile index dd584241f..a6f2c126e 100644 --- a/src/makefile +++ b/src/makefile @@ -385,14 +385,16 @@ $(IMGDIR)/hbotStringFile : $(IMAGES) $(ROOTPATH)/src/build/trace/tracehash_hb.pl -c -d $(ROOTPATH)/obj -s $@ .PHONY: imgsizecheck -#make sure base image isn't over 508k (512K - 4K for secure header) -#PROCESS: get size of hbicore.bin, sort with respect to 508k (520192), then see if -#last word is 508k. If not, the base image is too big. +#make sure base image isn't over 904K (908K - 4K for secure header) +#PROCESS: get size of hbicore.bin, sort with respect to 904k (925696), then see +# if last word is 904k. If not, the base image is too big. +#NOTE: HBB size is 1MB in pnor layout. 908K is the size without ECC rounded down +# to the nearest 4K page. #make sure bootloader image isn't over 32k (32K = 12K for exception vectors + #20K for bootloader code and data) #PROCESS: get size of hbibl.bin, sort with respect to 32k (32768), #then see if last word is 32k. If not, the bootloader image is too big. -MAX_BASE_SIZE = 520192 +MAX_BASE_SIZE = 925696 MAX_BTLDR_SIZE = 32768 imgsizecheck: ${IMGDIR}/hbicore.bin ${IMGDIR}/hbibl.bin $(if $(findstring $(shell (stat -c%s ${IMGDIR}/hbicore.bin; echo $(MAX_BASE_SIZE)) | sort -n | tail -n1), $(MAX_BASE_SIZE)),true, @echo ERROR: ${IMGDIR}/hbicore.bin too large. Max allowed size is $(MAX_BASE_SIZE); false) |

