arm: don't truncate the mbr when installing the boot script. bad things happen otherwise

Review URL: http://codereview.chromium.org/1117005
This commit is contained in:
Antoine Labour 2010-03-19 18:17:11 -07:00
parent 8142fd6b35
commit 643fffab67

View File

@ -379,7 +379,7 @@ if [[ "$ARCH" = "arm" ]]; then
"$MKIMAGE" -A "${ARCH}" -O linux -T script -a 0 -e 0 -n "COS boot" \ "$MKIMAGE" -A "${ARCH}" -O linux -T script -a 0 -e 0 -n "COS boot" \
-d ${MBR_SCRIPT} ${MBR_SCRIPT_UIMG} -d ${MBR_SCRIPT} ${MBR_SCRIPT_UIMG}
dd bs=1 count=`stat --printf="%s" ${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" hexdump -v -C "$MBR_IMG"
else else
echo "Error: u-boot mkimage not found or not executable." echo "Error: u-boot mkimage not found or not executable."