From 4ad25b455be55b31f38404e82225e6d757704e26 Mon Sep 17 00:00:00 2001 From: Ley Foon Tan Date: Wed, 4 Aug 2021 13:38:43 +0800 Subject: platform: generic: Change FW_JUMP_FDT_ADDR to 128MB offset OpenSBI defaults to place the FDT 32MB after the start of the kernel but this is not sufficient for a kernel with a large builtin initrd rootfs. This patch change FW_JUMP_FDT_ADDR to 128MB after the FW_TEXT_START to support > 32MB kernel image. This is known limitation, see detail in https://github.com/riscv/opensbi/issues/169 Signed-off-by: Ley Foon Tan --- platform/generic/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/generic/config.mk b/platform/generic/config.mk index 8151974..950cf5b 100644 --- a/platform/generic/config.mk +++ b/platform/generic/config.mk @@ -28,7 +28,7 @@ else # This needs to be 2MB aligned for 64-bit system FW_JUMP_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x200000))) endif -FW_JUMP_FDT_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x2200000))) +FW_JUMP_FDT_ADDR=$(shell printf "0x%X" $$(($(FW_TEXT_START) + 0x8000000))) FW_PAYLOAD=y ifeq ($(PLATFORM_RISCV_XLEN), 32) # This needs to be 4MB aligned for 32-bit system -- cgit v1.2.3