diff options
author | Ley Foon Tan <leyfoon.tan@starfivetech.com> | 2021-08-04 08:38:43 +0300 |
---|---|---|
committer | Jun Liang Tan <junliang.tan@linux.starfivetech.com> | 2022-10-27 11:11:25 +0300 |
commit | 361530eceac3fe7209adc47341afb68130b224f2 (patch) | |
tree | fbc2669d75fceddceb27a217e5defd3d0654375f | |
parent | 4489876e933d8ba0d8bc6c64bae71e295d45faac (diff) | |
download | opensbi-361530eceac3fe7209adc47341afb68130b224f2.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.mk | 2 |
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 |