summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornagurram-in <nagendra.g@in.ibm.com>2018-01-12 01:31:25 -0600
committernagurram-in <nagendra.g@in.ibm.com>2018-01-12 01:31:25 -0600
commit24522f57c03319a8d0236222e03142bcc1dff6a2 (patch)
tree1cef0db42ed3edd2cd604660c38980c08d9dda19
parent4c844a5ef7efc6605c4c877b6c92cf0a1a0df0b5 (diff)
downloadpnor-24522f57c03319a8d0236222e03142bcc1dff6a2.tar.gz
pnor-24522f57c03319a8d0236222e03142bcc1dff6a2.zip
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.
-rwxr-xr-xcreate_pnor_image.pl1
-rwxr-xr-xupdate_image.pl12
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");
OpenPOWER on IntegriCloud