diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c index afaf854c81..a62c0d7a51 100644 --- a/common/cmd_ximg.c +++ b/common/cmd_ximg.c @@ -247,10 +247,9 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) return 1; } puts("OK\n"); + flush_cache(dest, len); } - flush_cache(dest, len); - setenv_hex("fileaddr", data); setenv_hex("filesize", len);