Improve upgrade-trigger.sh flashing speed. 63/264563/1 accepted/tizen/6.5/unified/20211028.120308 accepted/tizen/unified/20210926.235801 submit/tizen/20210924.144745 submit/tizen_6.5/20211028.162501 tizen_6.5.m2_release
authorErnest Borowski <e.borowski@samsung.com>
Wed, 22 Sep 2021 10:49:07 +0000 (10:49 +0000)
committerErnest Borowski <e.borowski@samsung.com>
Fri, 24 Sep 2021 10:15:04 +0000 (10:15 +0000)
Change-Id: I0e9f6d29b1971893f34b773c8343a466a942018e
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
scripts/upgrade-trigger.sh

index 500a56157b8ec86a25a38c2353c863461ede7ce3..62167f763ae52e54e297d6e96e201957aacc247b 100755 (executable)
@@ -79,7 +79,7 @@ flash_pre_image() {
                        fi
 
                        log "[Info] Flashing $DELTA_NAME... to $DEV" "$LOG_FILE"
-                       dd if="$FOTA_DIR/$DELTA_NAME" of="$DEV" bs=1024
+                       dd if="$FOTA_DIR/$DELTA_NAME" of="$DEV" bs=4096
                        rm -f "$FOTA_DIR/$DELTA_NAME"
                fi
        done < "$FOTA_DIR/$CONFIG_FILE"
@@ -167,8 +167,6 @@ flash_pre_image
 # Extract delta.ua
 log "[Info] Extract delta.ua..." "$LOG_FILE"
 /bin/tar xvfp "$DELTA_TAR" -C "$FOTA_DIR" delta.ua
-sync
-sleep 1
 
 # FOTA: /usr/bin/rw-update-prepare.sh