From e7c76b475c03ee7f907dbbef87ca7d755bcef6d1 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Sun, 10 Feb 2013 16:05:26 -0800 Subject: snow: make build script erase 192KB instead of 128KB This will make the build script wipe out more flash memory content. Our image is a bit bigger now that we're testing with payloads, so this is just added paranoia to prevent weird surprises caused by not flashing the full image. Change-Id: I31969922079e96886573d9d802266eb0052277cd Signed-off-by: David Hendricks Reviewed-on: http://review.coreboot.org/2352 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/vendorcode/google/chromeos/build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/vendorcode/google/chromeos/build b/src/vendorcode/google/chromeos/build index 13f7d925c9..a749ba535a 100755 --- a/src/vendorcode/google/chromeos/build +++ b/src/vendorcode/google/chromeos/build @@ -16,11 +16,11 @@ die() { exit 1 } -create_diff_128k() { +create_diff_192k() { local image_file="$1" local diff_file="$2" cp -f "$image_file" "$diff_file" - dd if=/dev/zero of=$diff_file bs=1 count=$((128*1024)) conv=notrunc + dd if=/dev/zero of=$diff_file bs=1 count=$((192*1024)) conv=notrunc } fast_flash_image() { @@ -67,7 +67,7 @@ is_servod_ready() { main() { make merge_bl1 "$OUTPUT" - create_diff_128k "$OUTPUT" "$TMP_DIFF" + create_diff_192k "$OUTPUT" "$TMP_DIFF" echo "OK: Generated image (with BL1) in $OUTPUT" if is_servod_ready; then echo "servod detected - flashing into device." -- cgit v1.2.3