]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: uniphier: use $loadaddr for source command
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 30 Jan 2020 13:20:38 +0000 (22:20 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 31 Jan 2020 16:14:32 +0000 (01:14 +0900)
If the "source" command is not given the address, it uses
CONFIG_SYS_LOAD_ADDR, which is compile-time determined.

Using the "loadaddr" environment variable is handier because it is
relocated according to the memory base when CONFIG_POSITION_INDEPENDENT
is enabled.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
include/configs/uniphier.h

index 29866668c491a436ea8d1f4450c383156f5be2c9..b95fb9c93fa91b00f6468d899d5628db8c3deaff 100644 (file)
                "ubi part UBI && " \
                "ubifsmount ubi0:boot && " \
                "ubifsload ${loadaddr} ${script} && " \
-               "source\0" \
+               "source $loadaddr\0" \
        "norscript=echo Running ${script} from tftp ... && " \
                "tftpboot ${script} &&" \
-               "source\0" \
+               "source $loadaddr\0" \
        "usbscript=usb start && " \
                "setenv devtype usb && " \
                "setenv devnum 0 && " \
                "run loadscript_fat\0" \
        "loadscript_fat=echo Running ${script} from ${devtype}${devnum} ... && " \
                "load ${devtype} ${devnum}:1 ${loadaddr} ${script} && " \
-               "source\0" \
+               "source $loadaddr\0" \
        "sramupdate=setexpr tmp_addr $nor_base + 0x50000 &&"    \
                "tftpboot $tmp_addr $second_image && " \
                "setexpr tmp_addr $nor_base + 0x70000 && " \