summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2017-05-17 00:24:45 +0300
committerDongjin Kim <tobetter@gmail.com>2017-06-14 02:30:00 +0300
commitf9a34305b098cf3e78d2e53f467668ba51881e91 (patch)
treebf48a17d78603c323917f65e20b80cd26b16d098
parenteb651f4a17f6501cdc417c031086d9a751fa3ab2 (diff)
downloadu-boot-f9a34305b098cf3e78d2e53f467668ba51881e91.tar.xz
odroid-c2: sd_fusing.sh: avoid truncating image
When using sd_fusing.sh to write to a file base image the image should not be truncated. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rwxr-xr-xsd_fuse/sd_fusing.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd_fuse/sd_fusing.sh b/sd_fuse/sd_fusing.sh
index 52e1895dde..c5a517ca75 100755
--- a/sd_fuse/sd_fusing.sh
+++ b/sd_fuse/sd_fusing.sh
@@ -24,9 +24,9 @@ if [ ! -f $UBOOT ]; then
exit 1
fi
-sudo dd if=$BL1 of=$1 conv=fsync bs=1 count=442
-sudo dd if=$BL1 of=$1 conv=fsync bs=512 skip=1 seek=1
-sudo dd if=$UBOOT of=$1 conv=fsync bs=512 seek=97
+sudo dd if=$BL1 of=$1 conv=fsync,notrunc bs=1 count=442
+sudo dd if=$BL1 of=$1 conv=fsync,notrunc bs=512 skip=1 seek=1
+sudo dd if=$UBOOT of=$1 conv=fsync,notrunc bs=512 seek=97
sync