diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-01-15 13:31:58 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-15 13:31:58 +1100 |
commit | b7aad501e62c36f2e7341f4e1101969bad2e8f21 (patch) | |
tree | 1cef0db42ed3edd2cd604660c38980c08d9dda19 | |
parent | 4c844a5ef7efc6605c4c877b6c92cf0a1a0df0b5 (diff) | |
parent | 24522f57c03319a8d0236222e03142bcc1dff6a2 (diff) | |
download | pnor-b7aad501e62c36f2e7341f4e1101969bad2e8f21.tar.gz pnor-b7aad501e62c36f2e7341f4e1101969bad2e8f21.zip |
Merge pull request #87 from nagendraIBM/master
Added back ATTR_PERM partition processing for P8 platforms
-rwxr-xr-x | create_pnor_image.pl | 1 | ||||
-rwxr-xr-x | update_image.pl | 12 |
2 files changed, 13 insertions, 0 deletions
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"); |