From 6fb9d96b91878de7619e01d26a873bdb6b8dad64 Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Tue, 25 Jul 2017 14:29:47 +0900 Subject: [PATCH] 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 --- cmd/usbdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/usbdown.c b/cmd/usbdown.c index 925730473b..8dca3d3f33 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; -- 2.34.1