From 083dd8bc4233a2b54bc33517b5d6702f6bc71455 Mon Sep 17 00:00:00 2001 From: Nick Bofferding Date: Thu, 6 Jul 2017 22:26:49 -0500 Subject: Inject correct ECC into WOFDATA partition - Inject correct ECC into WOFDATA partition to avoid ECC UE --- update_image.pl | 4 ++-- 1 file 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") -- cgit v1.2.1