From 24522f57c03319a8d0236222e03142bcc1dff6a2 Mon Sep 17 00:00:00 2001 From: nagurram-in Date: Fri, 12 Jan 2018 01:31:25 -0600 Subject: Added back ATTR_PERM partition processing for P8 platforms Removal of ATTR_PERM partition to enable HDAT parition created IPL break for P8 platforms, since P8 still has the ATTR_PERM partition in P8 pnor layout. --- create_pnor_image.pl | 1 + update_image.pl | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/create_pnor_image.pl b/create_pnor_image.pl index 4f7f9a3..17c4ee1 100755 --- a/create_pnor_image.pl +++ b/create_pnor_image.pl @@ -154,6 +154,7 @@ if ($release eq "p9"){ if ($release eq "p8"){ $build_pnor_command .= " --binFile_SBEC $scratch_dir/$sbec_binary_filename"; $build_pnor_command .= " --binFile_WINK $scratch_dir/$wink_binary_filename"; + $build_pnor_command .= " --binFile_ATTR_PERM $scratch_dir/attr_perm.bin.ecc"; } else { $build_pnor_command .= " --binFile_SBKT $scratch_dir/SBKT.bin"; $build_pnor_command .= " --binFile_HCODE $scratch_dir/$wink_binary_filename"; diff --git a/update_image.pl b/update_image.pl index 849d131..e627ae2 100755 --- a/update_image.pl +++ b/update_image.pl @@ -272,6 +272,11 @@ sub processConvergedSections { $sections{SECBOOT}{out} = "$scratch_dir/secboot.bin.ecc"; $sections{RINGOVD}{out} = "$scratch_dir/ringOvd.bin"; + if($release eq "p8") + { + $sections{ATTR_PERM}{out} = "$scratch_dir/attr_perm.bin.ecc"; + } + if(-e $wof_binary_filename) { $sections{WOFDATA}{in} = "$wof_binary_filename"; @@ -488,6 +493,13 @@ else # Create blank binary file for ATTR_TMP partition run_command("dd if=/dev/zero bs=28K count=1 | tr \"\\000\" \"\\377\" > $scratch_dir/hostboot.temp.bin"); run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $scratch_dir/attr_tmp.bin.ecc --p8"); + + # Create blank binary file for ATTR_PERM partition + if($release eq "p8") + { + run_command("dd if=/dev/zero bs=28K count=1 | tr \"\\000\" \"\\377\" > $scratch_dir/hostboot.temp.bin"); + run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $scratch_dir/attr_perm.bin.ecc --p8"); + } # Create blank binary file for FIRDATA partition run_command("dd if=/dev/zero bs=8K count=1 | tr \"\\000\" \"\\377\" > $scratch_dir/hostboot.temp.bin"); -- cgit v1.2.1