summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLey Foon Tan <leyfoon.tan@starfivetech.com>2021-08-04 08:38:43 +0300
committerLey Foon Tan <leyfoon.tan@starfivetech.com>2021-08-04 11:05:02 +0300
commit4ad25b455be55b31f38404e82225e6d757704e26 (patch)
tree19612ba03a3580e8967ce47eaddf5b6012d23343
parente928472e67f86d73c00537dfa6d5cef5d646426d (diff)
downloadopensbi-starfive-dubhe.tar.xz
platform: generic: Change FW_JUMP_FDT_ADDR to 128MB offsetREL_DUBHE_SEPT2021REL_DUBHE_PRERELEASEstarfive-dubhe
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 <leyfoon.tan@starfivetech.com>
-rw-r--r--platform/generic/config.mk2
1 files changed, 1 insertions, 1 deletions
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