From: Seung-Woo Kim Date: Tue, 25 Jul 2017 05:29:47 +0000 (+0900) Subject: cmd: usbdown: use full path of loaded file for writing fat part X-Git-Tag: accepted/tizen/unified/20191107.062134~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74c1c07f9ee9b48a34453313ba7683ea6a92fb57;p=platform%2Fkernel%2Fu-boot.git cmd: usbdown: use full path of loaded file for writing fat part The update command to FAT partition has wrong file load command with file name without path which causes reading failure always. Use full path of loaded file instead of file name for the case of writing fat partition. Change-Id: Iee12f440bd4539c5c7a2ec8d197f067ce1fe34d3 Signed-off-by: Seung-Woo Kim --- diff --git a/cmd/usbdown.c b/cmd/usbdown.c index 9257304..8dca3d3 100644 --- a/cmd/usbdown.c +++ b/cmd/usbdown.c @@ -413,7 +413,7 @@ int do_update(cmd_tbl_t *cmdtp, int flags, int argc, char * const argv[]) sprintf(cmd_buf + strlen(cmd_buf), " %p", (void *)addr); sprintf(cmd_buf + strlen(cmd_buf), - " %s", usbdown->name); + " %s", filename); ret = run_command(cmd_buf, 0); if (ret != CMD_RET_SUCCESS) return ret;