Re: [PATCH] riscv: qemu: spl: Fix booting Linux kernel with OpenSBI 1.0+

2022-10-16 Thread Rick Chen
> From: Bin Meng > Sent: Monday, October 17, 2022 12:42 AM > To: Rick Jian-Zhi Chen(陳建志) ; Leo Yu-Chi Liang(梁育齊) > ; u-boot@lists.denx.de > Cc: fal...@tinylab.org; Yangjie Zhang > Subject: [PATCH] riscv: qemu: spl: Fix booting Linux kernel with OpenSBI 1.0+ > > Since Ope

[PATCH] riscv: qemu: spl: Fix booting Linux kernel with OpenSBI 1.0+

2022-10-16 Thread Bin Meng
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 0x8100, and it creates