diff options
| author | Bin Meng <[email protected]> | 2022-10-17 00:42:06 +0800 |
|---|---|---|
| committer | Leo Yu-Chi Liang <[email protected]> | 2022-10-20 15:22:33 +0800 |
| commit | cb052d771200b15717eeb68f185cf7caa2dcfea0 (patch) | |
| tree | 25dbd98d84f70e54ec1044feba4f9dc41a01ee45 /disk/Makefile | |
| parent | e77ef0bb74c0df010e83a1f60a1c3004f00703da (diff) | |
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 <[email protected]>
Signed-off-by: Bin Meng <[email protected]>
Tested-by: Yangjie Zhang <[email protected]>
Reviewed-by: Rick Chen <[email protected]>
Diffstat (limited to 'disk/Makefile')
0 files changed, 0 insertions, 0 deletions
