From: Piotr Dymacz Date: Fri, 16 Jun 2017 13:13:40 +0000 (+0200) Subject: Set also fileaddr env variable after successful load{b,s,y} X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f6b4086971708ea48334079c243792d8816a656;p=oweals%2Fu-boot_mod.git Set also fileaddr env variable after successful load{b,s,y} --- diff --git a/u-boot/common/cmd_load.c b/u-boot/common/cmd_load.c index b8be6ee..4c2588b 100644 --- a/u-boot/common/cmd_load.c +++ b/u-boot/common/cmd_load.c @@ -209,6 +209,9 @@ static ulong load_serial(ulong offset) sprintf(buf, "0x%lX", size); setenv("filesize", buf); + sprintf(buf, "0x%lX", addr); + setenv("fileaddr", buf); + return addr; case SREC_START: break; @@ -518,6 +521,9 @@ int do_load_serial_bin(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) sprintf(buf, "0x%X", size_dl); setenv("filesize", buf); + + sprintf(buf, "0x%lX", address); + setenv("fileaddr", buf); } else { puts("\n"); printf_err("downloaded data size is zero!\n");