summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLey Foon Tan <leyfoon.tan@starfivetech.com>2021-08-04 08:38:43 +0300
committerJun Liang Tan <junliang.tan@starfivetech.com>2022-03-01 12:57:00 +0300
commitef516dcf9bfd979e24665c9bf4b04d667be2d30b (patch)
tree208d52586f3dd4d4782db599c42b6fb27a2a8d92
parent48f91ee9c960f048c4a7d1da4447d31e04931e38 (diff)
downloadopensbi-ef516dcf9bfd979e24665c9bf4b04d667be2d30b.tar.xz
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 <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