]> git.sur5r.net Git - u-boot/commitdiff
ARM: uniphier: set initrd_high environment to skip initrd relocation
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 27 Jan 2017 21:53:51 +0000 (06:53 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 29 Jan 2017 11:59:08 +0000 (20:59 +0900)
The boot_ramdisk_high() checks the environment "initrd_high" and,
if it is set to (ulong)-1, skip the initrd relocation.  This is
useful for faster booting when we know the initrd is already located
within the reach of the kernel.

Change "norboot" to copy images in order to make it work without
depending on the automatic relocation.

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

index 5507f84f71fa0f85c6b0b68c4d9798e42cb558ad..d6dd5eca3a3196a926985bc3116d16d897ec001e 100644 (file)
        "norboot=setexpr kernel_addr_nor $nor_base + $kernel_addr && " \
                "setexpr kernel_size_div4 $kernel_size / 4 && " \
                "cp $kernel_addr_nor $kernel_addr_load $kernel_size_div4 && " \
-               "setexpr ramdisk_addr_r $nor_base + $ramdisk_addr &&" \
-               "setexpr fdt_addr_r $nor_base + $fdt_addr &&" \
+               "setexpr ramdisk_addr_nor $nor_base + $ramdisk_addr && " \
+               "setexpr ramdisk_size_div4 $ramdisk_size / 4 && " \
+               "cp $ramdisk_addr_nor $ramdisk_addr_r $ramdisk_size_div4 && " \
+               "setexpr fdt_addr_nor $nor_base + $fdt_addr && " \
+               "setexpr fdt_size_div4 $fdt_size / 4 && " \
+               "cp $fdt_addr_nor $fdt_addr_r $fdt_size_div4 && " \
                "run boot_common\0" \
        "nandboot=nand read $kernel_addr_load $kernel_addr $kernel_size && " \
                "nand read $ramdisk_addr_r $ramdisk_addr $ramdisk_size &&" \
 #define        CONFIG_EXTRA_ENV_SETTINGS                               \
        "netdev=eth0\0"                                         \
        "verify=n\0"                                            \
+       "initrd_high=0xffffffffffffffff\0"                      \
        "nor_base=0x42000000\0"                                 \
        "sramupdate=setexpr tmp_addr $nor_base + 0x50000 &&"    \
                "tftpboot $tmp_addr u-boot-spl.bin &&"          \