diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2017-02-13 11:37:41 -0600 |
---|---|---|
committer | Dan Crowell <dcrowell@us.ibm.com> | 2017-03-01 21:06:17 -0600 |
commit | f1171ceec45bd0f308a437d50fefb6eba603675f (patch) | |
tree | 815585a6997f2d56005ff8bf61dafcaa152fda60 | |
parent | 66ac8ba49a036f643bd16c36c62aebd40fccdc92 (diff) | |
download | pnor-f1171ceec45bd0f308a437d50fefb6eba603675f.tar.gz pnor-f1171ceec45bd0f308a437d50fefb6eba603675f.zip |
Add WOFDATA to pnor layout
Add the WOFDATA partition to the P9 PNOR layout xml files in
preparation to have code consume it.
Note - just filling partition with blank data for now, real data
will eventually come from system repos.
-rwxr-xr-x | create_pnor_image.pl | 3 | ||||
-rw-r--r-- | p9Layouts/defaultPnorLayout_128.xml | 10 | ||||
-rw-r--r-- | p9Layouts/defaultPnorLayout_32.xml | 10 | ||||
-rw-r--r-- | p9Layouts/defaultPnorLayout_64.xml | 10 | ||||
-rwxr-xr-x | update_image.pl | 7 |
5 files changed, 40 insertions, 0 deletions
diff --git a/create_pnor_image.pl b/create_pnor_image.pl index 1f4ba8c..c35e454 100755 --- a/create_pnor_image.pl +++ b/create_pnor_image.pl @@ -131,6 +131,9 @@ $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 $openpower_version_filename"; $build_pnor_command .= " --binFile_IMA_CATALOG $scratch_dir/ima_catalog.bin.ecc"; +if ($release eq "p9"){ + $build_pnor_command .= " --binFile_WOFDATA $scratch_dir/wofdata.bin.ecc"; +} if ($release eq "p8"){ $build_pnor_command .= " --binFile_SBEC $scratch_dir/$sbec_binary_filename"; $build_pnor_command .= " --binFile_WINK $scratch_dir/$wink_binary_filename"; diff --git a/p9Layouts/defaultPnorLayout_128.xml b/p9Layouts/defaultPnorLayout_128.xml index 6fd8f15..3487ea1 100644 --- a/p9Layouts/defaultPnorLayout_128.xml +++ b/p9Layouts/defaultPnorLayout_128.xml @@ -288,4 +288,14 @@ Layout Description <physicalRegionSize>0x20000</physicalRegionSize> <side>A</side> </section> + <section> + <description>VFRT data for WOF (3MB)</description> + <!-- We need 266KB per module sort, going to support + 10 sorts by default, plus ECC --> + <eyeCatch>WOFDATA</eyeCatch> + <physicalOffset>0x27C4000</physicalOffset> + <physicalRegionSize>0x300000</physicalRegionSize> + <side>A</side> + <ecc/> + </section> </pnor> diff --git a/p9Layouts/defaultPnorLayout_32.xml b/p9Layouts/defaultPnorLayout_32.xml index c3b720b..ec818af 100644 --- a/p9Layouts/defaultPnorLayout_32.xml +++ b/p9Layouts/defaultPnorLayout_32.xml @@ -288,4 +288,14 @@ Layout Description <physicalRegionSize>0x20000</physicalRegionSize> <side>A</side> </section> + <section> + <description>VFRT data for WOF (3MB)</description> + <!-- We need 266KB per module sort, going to support + 10 sorts by default, plus ECC --> + <eyeCatch>WOFDATA</eyeCatch> + <physicalOffset>0x27C4000</physicalOffset> + <physicalRegionSize>0x300000</physicalRegionSize> + <side>A</side> + <ecc/> + </section> </pnor> diff --git a/p9Layouts/defaultPnorLayout_64.xml b/p9Layouts/defaultPnorLayout_64.xml index b555298..ba0fe8c 100644 --- a/p9Layouts/defaultPnorLayout_64.xml +++ b/p9Layouts/defaultPnorLayout_64.xml @@ -287,5 +287,15 @@ Layout Description <physicalOffset>0x2830000</physicalOffset> <physicalRegionSize>0x20000</physicalRegionSize> <side>A</side> + </section> + <section> + <description>VFRT data for WOF (3MB)</description> + <!-- We need 266KB per module sort, going to support + 10 sorts by default, plus ECC --> + <eyeCatch>WOFDATA</eyeCatch> + <physicalOffset>0x2850000</physicalOffset> + <physicalRegionSize>0x300000</physicalRegionSize> + <side>A</side> + <ecc/> </section> </pnor> diff --git a/update_image.pl b/update_image.pl index 978f7fa..1376962 100755 --- a/update_image.pl +++ b/update_image.pl @@ -234,6 +234,13 @@ else run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $scratch_dir/ima_catalog.bin.ecc --p8"); +#Create blank binary file for WOF/VFRT (WOFDATA) Partition (for now) +if ($release eq "p9") { + run_command("dd if=/dev/zero bs=2730K count=1 | tr \"\\000\" \"\\377\" > $scratch_dir/hostboot.temp.bin"); + run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $scratch_dir/wofdata.bin.ecc --p8"); +} + + #END MAIN #------------------------------------------------------------------------- |