]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: sifive: unmatched: move kernel load address to 0x80200000
authorYong-Xuan Wang <yongxuan.wang@sifive.com>
Thu, 26 Oct 2023 03:22:52 +0000 (03:22 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 2 Nov 2023 07:15:29 +0000 (15:15 +0800)
U-boot initially loads the kernel image to the kernel_addr_r, and
subsequently relocates it to memory address 0x80200000. Setting
kernel_addr_r to 0x80200000 can eliminate one copy operation.

Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
include/configs/sifive-unmatched.h

index 74150b7d4b064d0801f76b0285752ae1ff37c8ac..de8bfc1123bfc05f3ab96c71be6e3554f658ed35 100644 (file)
@@ -36,7 +36,7 @@
        "name=system,size=-,bootable,type=${type_guid_gpt_system};"
 
 #define CFG_EXTRA_ENV_SETTINGS \
-       "kernel_addr_r=0x84000000\0" \
+       "kernel_addr_r=0x80200000\0" \
        "kernel_comp_addr_r=0x88000000\0" \
        "kernel_comp_size=0x4000000\0" \
        "fdt_addr_r=0x8c000000\0" \