cmd: mtd: solve bad block support in erase command
[oweals/u-boot.git] / cmd / ximg.c
index 920a80edc88036d6d7aca6985efc5fcd5df5cb17..dccd1143a7a5bc5c3dc46ad13bc3a7a13c27f278 100644 (file)
@@ -13,6 +13,8 @@
  */
 #include <common.h>
 #include <command.h>
+#include <cpu_func.h>
+#include <env.h>
 #include <gzip.h>
 #include <image.h>
 #include <mapmem.h>
@@ -31,7 +33,7 @@
 static int
 do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 {
-       ulong           addr = load_addr;
+       ulong           addr = image_load_addr;
        ulong           dest = 0;
        ulong           data, len;
        int             verify;