diff options
Diffstat (limited to 'cmd/load.c')
-rw-r--r-- | cmd/load.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cmd/load.c b/cmd/load.c index 3bfc1b41ec..fab30fe894 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -12,6 +12,8 @@ #include <console.h> #include <cpu_func.h> #include <env.h> +#include <flash.h> +#include <image.h> #include <s_record.h> #include <net.h> #include <exports.h> @@ -108,7 +110,7 @@ static int do_load_serial(cmd_tbl_t *cmdtp, int flag, int argc, rcode = 1; } else { printf("## Start Addr = 0x%08lX\n", addr); - load_addr = addr; + image_load_addr = addr; } #ifdef CONFIG_SYS_LOADS_BAUD_CHANGE @@ -484,12 +486,12 @@ static int do_load_serial_bin(cmd_tbl_t *cmdtp, int flag, int argc, addr = load_serial_bin(offset); if (addr == ~0) { - load_addr = 0; + image_load_addr = 0; printf("## Binary (kermit) download aborted\n"); rcode = 1; } else { printf("## Start Addr = 0x%08lX\n", addr); - load_addr = addr; + image_load_addr = addr; } } if (load_baudrate != current_baudrate) { @@ -980,7 +982,7 @@ static ulong load_serial_ymodem(ulong offset, int mode) rc = flash_write((char *) ymodemBuf, store_addr, res); if (rc != 0) { - flash_perror (rc); + flash_perror(rc); return (~0); } } else |