summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Hoffa <wihoffa@gmail.com>2018-01-18 16:01:00 -0600
committerGitHub <noreply@github.com>2018-01-18 16:01:00 -0600
commitde0f8e47de145df11a18d065742c7d583307f307 (patch)
tree1896ebfde9440749b97fd49877f9945d136d1e29
parentb7aad501e62c36f2e7341f4e1101969bad2e8f21 (diff)
parent22a9eadc0b2afbd2aca1e054faa2cca90e7760c2 (diff)
downloadpnor-de0f8e47de145df11a18d065742c7d583307f307.tar.gz
pnor-de0f8e47de145df11a18d065742c7d583307f307.zip
Merge pull request #88 from crgeddes/master
Enable ATTR_PERM section in pnor for all CEC levels
-rwxr-xr-xcreate_pnor_image.pl2
-rw-r--r--p9Layouts/defaultPnorLayout_64.xml6
-rwxr-xr-xupdate_image.pl13
3 files changed, 4 insertions, 17 deletions
diff --git a/create_pnor_image.pl b/create_pnor_image.pl
index 17c4ee1..bf3bb7d 100755
--- a/create_pnor_image.pl
+++ b/create_pnor_image.pl
@@ -140,6 +140,7 @@ $build_pnor_command .= " --binFile_DJVPD $scratch_dir/djvpd_fill.bin.ecc";
$build_pnor_command .= " --binFile_CVPD $scratch_dir/cvpd.bin.ecc";
$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";
@@ -154,7 +155,6 @@ 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/p9Layouts/defaultPnorLayout_64.xml b/p9Layouts/defaultPnorLayout_64.xml
index 8547494..6cacf72 100644
--- a/p9Layouts/defaultPnorLayout_64.xml
+++ b/p9Layouts/defaultPnorLayout_64.xml
@@ -282,11 +282,6 @@ Layout Description
<side>A</side>
<reprovision/>
</section>
-<!-- Commenting this temporarily as a workaround for accomadating
- new partition. Due to incorrect Toc size assumption, currently
- we are unable to create more than 31 partitions. Until the
- proper fix comes in, commenting this out based on internal
- discussion.
<section>
<description>Permanent Attribute Override (32K)</description>
<eyeCatch>ATTR_PERM</eyeCatch>
@@ -297,7 +292,6 @@ Layout Description
<reprovision/>
<clearOnEccErr/>
</section>
--->
<section>
<description>PNOR Version (4K)</description>
<eyeCatch>VERSION</eyeCatch>
diff --git a/update_image.pl b/update_image.pl
index e627ae2..e360949 100755
--- a/update_image.pl
+++ b/update_image.pl
@@ -268,15 +268,11 @@ sub processConvergedSections {
$sections{MVPD}{out} = "$scratch_dir/mvpd_fill.bin.ecc";
$sections{DJVPD}{out} = "$scratch_dir/djvpd_fill.bin.ecc";
$sections{ATTR_TMP}{out} = "$scratch_dir/attr_tmp.bin.ecc";
+ $sections{ATTR_PERM}{out} = "$scratch_dir/attr_perm.bin.ecc";
$sections{FIRDATA}{out} = "$scratch_dir/firdata.bin.ecc";
$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";
@@ -495,11 +491,8 @@ else
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");
- }
+ 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