summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Hoffa <wihoffa@gmail.com>2017-03-17 10:15:19 -0500
committerGitHub <noreply@github.com>2017-03-17 10:15:19 -0500
commit52b1b91ea5ea7651688802f72d168139c29c4780 (patch)
tree5d200dae5a11fdd74e071d93457b4d8204a3351f
parentcf990e357d11d3a379f0d5d097e2e23a320769de (diff)
parent8dba33d581e175b40cc7ef34124a879823b37629 (diff)
downloadpnor-52b1b91ea5ea7651688802f72d168139c29c4780.tar.gz
pnor-52b1b91ea5ea7651688802f72d168139c29c4780.zip
Merge pull request #60 from sannerd/hcode.bin
Switch to using the raw HCODE image for P9
-rwxr-xr-xupdate_image.pl20
1 files changed, 19 insertions, 1 deletions
diff --git a/update_image.pl b/update_image.pl
index 1376962..c4ff02a 100755
--- a/update_image.pl
+++ b/update_image.pl
@@ -218,7 +218,25 @@ run_command("cp $scratch_dir/openpower_version.temp $openpower_version_filename"
#Copy Binary Data files for consistency
run_command("cp $hb_binary_dir/$sbec_binary_filename $scratch_dir/");
run_command("cp $hb_binary_dir/$sbe_binary_filename $scratch_dir/");
-run_command("cp $hb_binary_dir/$wink_binary_filename $scratch_dir/");
+if ($release eq "p8")
+{
+ run_command("cp $hb_binary_dir/$wink_binary_filename $scratch_dir/");
+}
+else
+{
+ #WINK (STOP) image name is passed in in final form. Find the pre header/ecc version
+ my $stop_basename = $wink_binary_filename;
+ $stop_basename =~ s/.hdr.bin.ecc//;
+ run_command("env echo -en VERSION\\\\0 > $scratch_dir/${stop_basename}.sha.bin");
+ run_command("sha512sum $hb_binary_dir/$stop_basename.bin | awk \'{print \$1}\' | xxd -pr -r >> $scratch_dir/${stop_basename}.sha.bin");
+ run_command("dd if=$scratch_dir/${stop_basename}.sha.bin of=$scratch_dir/${stop_basename}.temp.bin ibs=4k conv=sync");
+ run_command("cat $hb_binary_dir/${stop_basename}.bin >> $scratch_dir/${stop_basename}.temp.bin");
+ run_command("dd if=$scratch_dir/${stop_basename}.temp.bin of=$scratch_dir/${stop_basename}.hdr.bin ibs=1M conv=sync");
+ run_command("ecc --inject $scratch_dir/${stop_basename}.hdr.bin --output $scratch_dir/${stop_basename}.hdr.bin.ecc --p8");
+}
+
+
+
#Encode Ecc into IMA_CATALOG Partition
if ($release eq "p8")
OpenPOWER on IntegriCloud