summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrachi Gupta <pragupta@us.ibm.com>2017-06-27 14:47:51 -0500
committerGitHub <noreply@github.com>2017-06-27 14:47:51 -0500
commit72509b808f8857504a571eb9de6176e101307249 (patch)
tree5b57ce74000fa84f775d7addee26e9b1511f4eb7
parent453fbc709da1582e7990d3a3c7456a9142ab5c91 (diff)
parentecce92a981a13a4e873f971e0ed5bbc728e2e577 (diff)
downloadpnor-72509b808f8857504a571eb9de6176e101307249.tar.gz
pnor-72509b808f8857504a571eb9de6176e101307249.zip
Merge pull request #67 from sannerd/pad.sbe.partition
Pad SBE image to 520K
-rwxr-xr-xupdate_image.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/update_image.pl b/update_image.pl
index d4eb12b..ef9e5d1 100755
--- a/update_image.pl
+++ b/update_image.pl
@@ -178,6 +178,9 @@ if ($release eq "p9") {
#SBE image prep
if ($release eq "p9") {
run_command("python $sbe_binary_dir/sbeOpDistribute.py --install --buildSbePart $hb_image_dir/buildSbePart.pl --hw_ref_image $hb_binary_dir/p9n.ref_image.bin --sbe_binary_filename $sbe_binary_filename --scratch_dir $scratch_dir --sbe_binary_dir $sbe_binary_dir");
+ run_command("cp -f $scratch_dir/$sbe_binary_filename $scratch_dir/tmp_$sbe_binary_filename ");
+ run_command("dd if=$scratch_dir/tmp_$sbe_binary_filename of=$scratch_dir/$sbe_binary_filename bs=520K count=1 conv=sync"); #0s is good ECC
+
}
else {
run_command("cp $hb_binary_dir/$sbe_binary_filename $scratch_dir/");
OpenPOWER on IntegriCloud