Skip to content

Commit

Permalink
Merge pull request #60 from sannerd/hcode.bin
Browse files Browse the repository at this point in the history
Switch to using the raw HCODE image for P9
  • Loading branch information
wghoffa committed Mar 17, 2017
2 parents cf990e3 + 8dba33d commit 52b1b91
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion update_image.pl
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,25 @@
#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")
Expand Down

0 comments on commit 52b1b91

Please sign in to comment.