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 <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/2352
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
David Hendricks 2013-02-10 16:05:26 -08:00 committed by Ronald G. Minnich
parent 5d994634a2
commit e7c76b475c
1 changed files with 3 additions and 3 deletions

View File

@ -16,11 +16,11 @@ die() {
exit 1 exit 1
} }
create_diff_128k() { create_diff_192k() {
local image_file="$1" local image_file="$1"
local diff_file="$2" local diff_file="$2"
cp -f "$image_file" "$diff_file" 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() { fast_flash_image() {
@ -67,7 +67,7 @@ is_servod_ready() {
main() { main() {
make make
merge_bl1 "$OUTPUT" merge_bl1 "$OUTPUT"
create_diff_128k "$OUTPUT" "$TMP_DIFF" create_diff_192k "$OUTPUT" "$TMP_DIFF"
echo "OK: Generated image (with BL1) in $OUTPUT" echo "OK: Generated image (with BL1) in $OUTPUT"
if is_servod_ready; then if is_servod_ready; then
echo "servod detected - flashing into device." echo "servod detected - flashing into device."