cmd: usbdown: use full path of loaded file for writing fat part 57/140457/6
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 25 Jul 2017 05:29:47 +0000 (14:29 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 27 Jul 2017 03:15:36 +0000 (12:15 +0900)
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 <sw0312.kim@samsung.com>
cmd/usbdown.c

index 28d1eed..6e4aede 100644 (file)
@@ -410,7 +410,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;