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:
parent
5d994634a2
commit
e7c76b475c
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue