diff options
author | Nick Bofferding <opensource@bofferding.net> | 2017-07-06 23:16:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-06 23:16:58 -0500 |
commit | e9e092f5ebf6baa7170b9bb6c5ec681a9f6174e3 (patch) | |
tree | 2e12b8aae8e07713f5063faee701bf75dad97bab | |
parent | 660174c2c376cec27ab08893a488febb5b058a61 (diff) | |
parent | 083dd8bc4233a2b54bc33517b5d6702f6bc71455 (diff) | |
download | pnor-e9e092f5ebf6baa7170b9bb6c5ec681a9f6174e3.tar.gz pnor-e9e092f5ebf6baa7170b9bb6c5ec681a9f6174e3.zip |
Merge pull request #70 from open-power/bofferdn-fix-wof-ecc-2
Inject correct ECC into WOFDATA partition
-rwxr-xr-x | update_image.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update_image.pl b/update_image.pl index ef9e5d1..ef8ff0b 100755 --- a/update_image.pl +++ b/update_image.pl @@ -275,8 +275,8 @@ run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $scratch_dir/i #Encode ECC into WOF/VFRT (WOFDATA) Partition if ($release eq "p9" && -e $wof_binary_filename) { - run_command("dd if=$wof_binary_filename > $scratch_dir/hostboot.temp.bin"); - run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $scratch_dir/wofdata.bin.ecc"); + run_command("dd if=$wof_binary_filename ibs=2728K conv=sync > $scratch_dir/hostboot.temp.bin"); + run_command("ecc --inject $scratch_dir/hostboot.temp.bin --output $scratch_dir/wofdata.bin.ecc --p8"); } #Print error and blank binary if wof file does not exist elsif ($release eq "p9") |