diff options
author | Wei Liang Lim <weiliang.lim@starfivetech.com> | 2023-03-02 05:09:55 +0300 |
---|---|---|
committer | Wei Liang Lim <weiliang.lim@starfivetech.com> | 2023-03-02 05:10:22 +0300 |
commit | 10dc4fff199b4861ca28c29d198cfa61304a29a4 (patch) | |
tree | 85620d87ed3c6fb36d81da248ec4c73bb541f169 | |
parent | 6b5188ca14e59ce7bf71afe4e7d3d557c3d31bf8 (diff) | |
download | opensbi-10dc4fff199b4861ca28c29d198cfa61304a29a4.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/objects.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/generic/objects.mk b/platform/generic/objects.mk index 136853e..9e1eb03 100644 --- a/platform/generic/objects.mk +++ b/platform/generic/objects.mk @@ -32,7 +32,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 |