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>
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;