From 13d4e4d8f79d9e6ea739185923b124c36bd61bdc Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Sun, 21 Apr 2019 08:13:57 +0000 Subject: Remove proprietary CAPP microcode partition entirely Increase PNOR version partition to 8k --- create_pnor_image.pl | 1 - p9Layouts/defaultPnorLayout_64.xml | 16 +++------------- update_image.pl | 20 -------------------- 3 files changed, 3 insertions(+), 34 deletions(-) diff --git a/create_pnor_image.pl b/create_pnor_image.pl index 563f64a..030dc2c 100755 --- a/create_pnor_image.pl +++ b/create_pnor_image.pl @@ -164,7 +164,6 @@ $build_pnor_command .= " --binFile_ATTR_TMP $scratch_dir/attr_tmp.bin.ecc"; $build_pnor_command .= " --binFile_OCC $occ_binary_filename.ecc"; $build_pnor_command .= " --binFile_ATTR_PERM $scratch_dir/attr_perm.bin.ecc"; $build_pnor_command .= " --binFile_FIRDATA $scratch_dir/firdata.bin.ecc"; -$build_pnor_command .= " --binFile_CAPP $scratch_dir/cappucode.bin.ecc"; $build_pnor_command .= " --binFile_SECBOOT $scratch_dir/secboot.bin.ecc"; $build_pnor_command .= " --binFile_VERSION $scratch_dir/openpower_pnor_version.bin"; $build_pnor_command .= " --binFile_IMA_CATALOG $scratch_dir/ima_catalog.bin.ecc"; diff --git a/p9Layouts/defaultPnorLayout_64.xml b/p9Layouts/defaultPnorLayout_64.xml index 9d6feb8..ce1e4bd 100644 --- a/p9Layouts/defaultPnorLayout_64.xml +++ b/p9Layouts/defaultPnorLayout_64.xml @@ -251,14 +251,13 @@ Layout Description
- CAPP Lid (144K) - CAPP + PNOR Version (8K) + VERSION 0x3944000 - 0x24000 + 0x2000 A -
BMC Inventory (36K) @@ -298,15 +297,6 @@ Layout Description
-
- PNOR Version (4K) - VERSION - 0x3988000 - 0x1000 - A - - -
IMA Catalog (256K) IMA_CATALOG diff --git a/update_image.pl b/update_image.pl index fffe2ea..ee61d7b 100755 --- a/update_image.pl +++ b/update_image.pl @@ -22,7 +22,6 @@ my $sbe_binary_filename = ""; my $sbec_binary_filename = ""; my $wink_binary_filename = ""; my $occ_binary_filename = ""; -my $capp_binary_filename = ""; my $ima_catalog_binary_filename = ""; my $openpower_version_filename = ""; my $payload = ""; @@ -116,11 +115,6 @@ while (@ARGV > 0){ $occ_binary_filename = $ARGV[1] or die "Bad command line arg given: expecting a config type.\n"; shift; } - elsif (/^-capp_binary_filename/i){ - #This filename is necessary if the file exists, but if it's not given, we add a blank partition - $capp_binary_filename = $ARGV[1] or die "Bad command line arg given: execting a config type.\n"; - shift; - } elsif (/^-ima_catalog_binary_filename/i){ $ima_catalog_binary_filename = $ARGV[1] or die "Bad command line arg given: execting a config type.\n"; shift; @@ -345,16 +339,6 @@ sub processConvergedSections { } $sections{CVPD}{out} = "$scratch_dir/cvpd.bin.ecc"; - if(-e $capp_binary_filename) - { - $sections{CAPP}{in} = "$capp_binary_filename"; - } - else - { - print "WARNING: CAPP partition is not found, including blank binary instead\n"; - } - $sections{CAPP}{out} = "$scratch_dir/cappucode.bin.ecc"; - # Build up the system bin files specification my $system_bin_files; foreach my $section (keys %sections) @@ -509,10 +493,6 @@ else run_command("dd if=$occ_binary_filename of=$scratch_dir/hostboot.temp.bin ibs=1M conv=sync"); run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $occ_binary_filename.ecc --p8"); - # Inject ECC into CAPP partition binary - run_command("dd if=$capp_binary_filename bs=144K count=1 > $scratch_dir/hostboot.temp.bin"); - run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $scratch_dir/cappucode.bin.ecc --p8"); - # Stage PAYLOAD partition run_command("cp $payload.bin $scratch_dir/$payload_filename"); -- cgit v1.2.1