add conv=fsync to dd command #13

Closed
jmlich wants to merge 2 commits from jmlich/master into master

View File

@ -199,7 +199,7 @@ echo "Some commands require root permissions, you might be asked to enter your s
#create loop file for raw.img #create loop file for raw.img
if [ $DEVICE_NODE == "raw" ]; then 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" DEVICE_NODE="./sdcard.img"
fi fi
@ -237,10 +237,10 @@ sudo mkfs.ext4 -F -L data $DATAPART # 2nd partition = data
# Flashing u-boot # Flashing u-boot
echo -e "\e[1mFlashing U-boot...\e[0m" echo -e "\e[1mFlashing U-boot...\e[0m"
if [ "$CUSTOM" != "" ]; then 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 else
unzip "${UBOOT_JOB}.zip" unzip "${UBOOT_JOB}.zip"
sudo dd if="./u-boot-sunxi-with-spl-pinephone.bin" of="$DEVICE_NODE" bs=8k seek=1 sudo dd if="./u-boot-sunxi-with-spl-pinephone.bin" of="$DEVICE_NODE" bs=8k seek=1 conv=fsync
fi fi
sync sync