summaryrefslogtreecommitdiff
path: root/src/vendorcode/google
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2013-02-10 16:05:26 -0800
committerRonald G. Minnich <rminnich@gmail.com>2013-02-11 02:33:19 +0100
commite7c76b475c03ee7f907dbbef87ca7d755bcef6d1 (patch)
tree42ff0d4c0a4ca08e88b9dab21dad80583bc9277b /src/vendorcode/google
parent5d994634a268d29b61c98f40f4793334078509c4 (diff)
downloadcoreboot-e7c76b475c03ee7f907dbbef87ca7d755bcef6d1.tar.xz
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>
Diffstat (limited to 'src/vendorcode/google')
-rwxr-xr-xsrc/vendorcode/google/chromeos/build6
1 files changed, 3 insertions, 3 deletions
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."