Browse Source

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>
Ley Foon Tan 2 years ago
parent
commit
ef516dcf9b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/generic/config.mk

+ 1 - 1
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