
9 Feb
2024
9 Feb
'24
2:40 p.m.
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