Skip to content

RFC Move the address of FW_JUMP_FDT_ADDR forward

Nylon Chen opensbi 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 patches 0 repliesNew

Patches in v1 No applies recorded yet

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/0] Move the address of FW_JUMP_FDT_ADDR forward

From: "Nylon.Chen" <[email protected]>

A while ago.
when we boot from QEMU by OpenSBI Jump mode with initramfs kerenl.

The kernel encountered panic because the kernel's section was overwritten, and the address was FW_JUMP_FDT_ADDR.

we find out the the rule $(FW_TEXT_START) + 0x2200000 in platform/generic/config.mk

The situation is our kernel size big than it.

e.g.

# readelf -h vmlinux 
init.bss's LMA is "0x00000000024a96a0", and when we use this rule, it
exceeds its size.

0x24a96a0 > 0x2200000

After our experiment, we can add offset FW_JUMP_FDT_ADDR, and the problem is solved.

But in my opinion, this is not a good method because the next time the kernel size increases, the same situation occurs again.

So maybe we can move the address forward and normalize the address to FW_JUMP_FDT_ADDR?

Signature · 1 line
2.36.1