From: Jaehoon Chung Date: Fri, 15 Mar 2024 04:26:09 +0000 (+0900) Subject: scripts: tizen: sd_fusing.py: Display an information during flashing X-Git-Tag: accepted/tizen/unified/20240319.020727^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f78bf12c0eba95ebb203868856899fdcec2935c;p=platform%2Fkernel%2Fu-boot.git scripts: tizen: sd_fusing.py: Display an information during flashing Display an information during flashing. Developer can see what script is doing. Change-Id: Id6ffd67b885f623f8778db9a51e7606a7896c71a Signed-off-by: Jaehoon Chung --- diff --git a/scripts/tizen/sd_fusing.py b/scripts/tizen/sd_fusing.py index 3130c55e69..bc67deb5f2 100755 --- a/scripts/tizen/sd_fusing.py +++ b/scripts/tizen/sd_fusing.py @@ -756,16 +756,16 @@ def do_fuse_file(f, name, target): 'oflag=direct', 'iflag=fullblock', 'conv=nocreat', + 'status=progress', f"of={pdevice}"] logging.debug(" ".join(argv)) proc_dd = subprocess.Popen(argv, bufsize=(4 << 20), stdin=subprocess.PIPE, stdout=None, stderr=None) - logging.info(f"Writing {name} to {pdevice}") + print('\033[32m'+f"Writing {name} to {pdevice}"+'\033[0m') buf = f.read(4 << 20) while len(buf) > 0: - #TODO: progress proc_dd.stdin.write(buf) buf = f.read(4 << 20) proc_dd.communicate()