[RFC PATCH 0/0] Move the address of FW_JUMP_FDT_ADDR forward
Xiang W
wxjstz at 126.com
Thu Aug 11 02:44:28 PDT 2022
在 2022-08-11星期四的 16:58 +0800,Nylon Chen写道:
> From: "Nylon.Chen" <nylon.chen at sifive.com>
>
> 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?
>
> Signed-off-by: Nylon Chen <nylon.chen at sifive.com>
> --
> 2.36.1
>
>
Overwriting may occur regardless of the bit value adjustment.
You can build with:
make ... FW_JUMP_FDT_ADDR=xxx ...
Regards,
Xiang W
More information about the opensbi
mailing list