From 643fffab6736c25231738a617e2aff10d54b8f0b Mon Sep 17 00:00:00 2001 From: Antoine Labour Date: Fri, 19 Mar 2010 18:17:11 -0700 Subject: [PATCH] arm: don't truncate the mbr when installing the boot script. bad things happen otherwise Review URL: http://codereview.chromium.org/1117005 --- build_image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_image b/build_image index edc0429fd8..8b692ef0d1 100755 --- a/build_image +++ b/build_image @@ -379,7 +379,7 @@ if [[ "$ARCH" = "arm" ]]; then "$MKIMAGE" -A "${ARCH}" -O linux -T script -a 0 -e 0 -n "COS boot" \ -d ${MBR_SCRIPT} ${MBR_SCRIPT_UIMG} dd bs=1 count=`stat --printf="%s" ${MBR_SCRIPT_UIMG}` \ - if="$MBR_SCRIPT_UIMG" of="$MBR_IMG" + if="$MBR_SCRIPT_UIMG" of="$MBR_IMG" conv=notrunc hexdump -v -C "$MBR_IMG" else echo "Error: u-boot mkimage not found or not executable."