From 9e976c21a7ad721fcc02eb60d5d92fb661966b16 Mon Sep 17 00:00:00 2001 From: Junghoon Kim Date: Thu, 21 May 2020 12:56:23 +0900 Subject: [PATCH] scripts: sd_fusing: Increase the block size upon the image flashing Fine-grained IO degrades the image flashing performance due to the IO stack overhead. Increase the block size upon the dd operation to improve the flashing performance. Change-Id: I937ca401d07045f055d3f55ca9f52a3261ee4fb4 Signed-off-by: Junghoon Kim --- scripts/tizen/sd_fusing_rpi3.sh | 9 ++++----- scripts/tizen/sd_fusing_xu4.sh | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/scripts/tizen/sd_fusing_rpi3.sh b/scripts/tizen/sd_fusing_rpi3.sh index 085bf1f8f2..f00aca867e 100755 --- a/scripts/tizen/sd_fusing_rpi3.sh +++ b/scripts/tizen/sd_fusing_rpi3.sh @@ -13,14 +13,13 @@ declare -i FUS_ENTRY_NUM=0 # binary name | part number | bs declare -a PART_TABLE=( - "boot.img" 1 512 + "boot.img" 1 4M "rootfs.img" 2 4M "system-data.img" 3 4M "user.img" 5 4M - "modules.img" 6 512 - "ramdisk.img" 7 512 - "ramdisk-recovery.img" 8 512 - "inform.img" 9 512 + "modules.img" 6 4M + "ramdisk.img" 7 4M + "ramdisk-recovery.img" 8 4M ) declare -r -i PART_TABLE_ROW=3 diff --git a/scripts/tizen/sd_fusing_xu4.sh b/scripts/tizen/sd_fusing_xu4.sh index 6b374c9472..9a9853f19f 100755 --- a/scripts/tizen/sd_fusing_xu4.sh +++ b/scripts/tizen/sd_fusing_xu4.sh @@ -18,12 +18,12 @@ declare -a PART_TABLE=( "u-boot-mmc.bin" "" 63 512 "tzsw.bin.hardkernel" "" 2111 512 "params.bin" "" 6272 512 - "boot.img" 1 0 512 + "boot.img" 1 0 4M "rootfs.img" 2 0 4M "system-data.img" 3 0 4M "user.img" 5 0 4M - "modules.img" 6 0 512 - "ramdisk.img" 7 0 512 + "modules.img" 6 0 4M + "ramdisk.img" 7 0 4M ) declare -r -i PART_TABLE_COL=4 -- 2.34.1