[PATCH] Added FDT PAD memory size while reserving memory for FDT to avoid some memory corruption issue
Tom Rini
trini at konsulko.com
Fri Feb 9 14:40:27 CET 2024
On Fri, Feb 09, 2024 at 01:22:08PM +0530, Selvakumar Velandi wrote:
> Hi,
>
> Issue:
> Linux kernel getting crash after loading kernel in VM system using RISCV
> QEMU.
>
> RootCause:
> Memory corruption in uboot FDT memory while launching a VM system in RISCV
> QEMU.
>
> Fix:
> In the board_f.c file the FDT memory region is reserved without FDT padding
> bytes. uboot will add some params like bootargs while launching linux.
> While relocate the FDT, if its decided as run in the Fixed memory location
> i.e fdy_high is set as -1, then the padding bytes not added while
> relocating the FDT,
Do not disable fdt relocation. The RISC-V platforms which do this today
are broken.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240209/1cb2f2dc/attachment.sig>
More information about the U-Boot
mailing list