u-boot/board/emulation
Bin Meng cb052d7712 riscv: qemu: spl: Fix booting Linux kernel with OpenSBI 1.0+
Since OpenSBI commit bf3ef53bb7f5 ("firmware: Enable FW_PIC by default"),
OpenSBI runs directly at the load address without any code movement.
This causes the SPL version of QEMU 'virt' U-Boot does not boot Linux
kernel anymore. In that case, OpenSBI is loaded and runs at 0x81000000,
and it creates a 512KiB PMP window from that address. When booting
the Linux kernel, moving kernel to its linking address 0x80200000
overlaps the PMP window, and a PMP access failure is raised.

Update SPL_OPENSBI_LOAD_ADDR to load OpenSBI to a safe address.

Reported-by: Yangjie Zhang <pyjmstr@gmail.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Yangjie Zhang <pyjmstr@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
2022-10-20 15:22:33 +08:00
..
common capsule: board: Add information needed for capsule updates 2022-04-15 10:43:18 +02:00
qemu-arm capsule: board: Add information needed for capsule updates 2022-04-15 10:43:18 +02:00
qemu-ppce500 qemu-ppce500: Move CONFIG_SYS_PCI_MAP_{START, END} to board code 2022-07-05 17:05:00 -04:00
qemu-riscv riscv: qemu: spl: Fix booting Linux kernel with OpenSBI 1.0+ 2022-10-20 15:22:33 +08:00
qemu-x86 x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
Kconfig SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00