]> git.sur5r.net Git - u-boot/commitdiff
ARM: uniphier: allow to run zImage rather than uImage
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 18 Dec 2015 05:52:32 +0000 (14:52 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 22 Dec 2015 15:08:59 +0000 (00:08 +0900)
UniPhier SoC family adopt ARM Multi-platform in Linux since the first
upstreaming.  Because CONFIG_ARM_PATCH_PHYS_VIRT is defined, the
kernel image is completely position-independent.  There is no reason
to decide the load address on compile time, but it is up to the boot
loader.  Now, zImage is handier than uImage, also it allows to skip
the relocation of the kernel image.

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

index b1106deef0534011a8001947fb083c02ec9a811d..463c6871c09fbf7b201a3507cb6882dd920431ca 100644 (file)
        "tftpboot=tftpboot $fit_addr_r $bootfile &&" \
                "bootm $fit_addr_r\0"
 #else
-#define CONFIG_BOOTFILE                        "uImage"
+#define CONFIG_CMD_BOOTZ
+#define CONFIG_BOOTFILE                        "zImage"
 #define LINUXBOOT_ENV_SETTINGS \
        "fdt_addr=0x00100000\0" \
        "fdt_addr_r=0x84100000\0" \
        "fdt_size=0x00008000\0" \
        "kernel_addr=0x00200000\0" \
-       "kernel_addr_r=0x84200000\0" \
+       "kernel_addr_r=0x80208000\0" \
        "kernel_size=0x00800000\0" \
        "ramdisk_addr=0x00a00000\0" \
        "ramdisk_addr_r=0x84a00000\0" \
        "norboot=setexpr kernel_addr $nor_base + $kernel_addr &&" \
                "setexpr ramdisk_addr $nor_base + $ramdisk_addr &&" \
                "setexpr fdt_addr $nor_base + $fdt_addr &&" \
-               "bootm $kernel_addr $ramdisk_addr $fdt_addr\0" \
+               "bootz $kernel_addr $ramdisk_addr $fdt_addr\0" \
        "nandboot=nand read $kernel_addr_r $kernel_addr $kernel_size &&" \
                "nand read $ramdisk_addr_r $ramdisk_addr $ramdisk_size &&" \
                "nand read $fdt_addr_r $fdt_addr $fdt_size &&" \
-               "bootm $kernel_addr_r $ramdisk_addr_r $fdt_addr_r\0" \
+               "bootz $kernel_addr_r $ramdisk_addr_r $fdt_addr_r\0" \
        "tftpboot=tftpboot $kernel_addr_r $bootfile &&" \
                "tftpboot $ramdisk_addr_r $ramdisk_file &&" \
                "tftpboot $fdt_addr_r $fdt_file &&" \
-               "bootm $kernel_addr_r $ramdisk_addr_r $fdt_addr_r\0"
+               "bootz $kernel_addr_r $ramdisk_addr_r $fdt_addr_r\0"
 #endif
 
 #define        CONFIG_EXTRA_ENV_SETTINGS                               \