From 19779b223550af97e9751457849b385fece2ad55 Mon Sep 17 00:00:00 2001 From: Jozef Mlich Date: Tue, 13 Oct 2020 18:35:28 +0200 Subject: [PATCH] add conv=fsync to dd command --- flash-it.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flash-it.sh b/flash-it.sh index 8e4c384..36c95df 100755 --- a/flash-it.sh +++ b/flash-it.sh @@ -174,7 +174,7 @@ echo "Some commands require root permissions, you might be asked to enter your s #create loop file for raw.img if [ $DEVICE_NODE == "raw" ]; then - sudo dd if=/dev/zero of=sdcard.img bs=1 count=0 seek=4G + sudo dd if=/dev/zero of=sdcard.img bs=1 count=0 seek=4G conv=fsync DEVICE_NODE="./sdcard.img" fi @@ -212,10 +212,10 @@ sudo mkfs.ext4 -F -L data $DATAPART # 2nd partition = data # Flashing u-boot echo -e "\e[1mFlashing U-boot...\e[0m" if [ "$CUSTOM" != "" ]; then -sudo dd if="${CUSTOM}/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1 +sudo dd if="${CUSTOM}/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1 conv=fsync else unzip "${UBOOT_JOB}.zip" -sudo dd if="./u-boot-bootloader/u-boot/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1 +sudo dd if="./u-boot-bootloader/u-boot/u-boot-sunxi-with-spl.bin" of="$DEVICE_NODE" bs=8k seek=1 conv=fsync fi sync -- 2.30.2