[PATCH 1/3] riscv: qemu: Enable booting from NVMe

From: LekKit 50500857+LekKit@users.noreply.github.com
QEMU supports NVMe devices, but U-Boot only tries to boot from Virtio. This is problematic when explicitly using NVMe, so fix that.
Additionally, RVVM virtual machine is almost fully compatible with QEMU, except it only implements NVMe drives instead of VirtIO. --- include/configs/qemu-riscv.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h index 2f594bfc..cf4fcb90 100644 --- a/include/configs/qemu-riscv.h +++ b/include/configs/qemu-riscv.h @@ -22,6 +22,7 @@ "stderr=serial,vidconsole\0"
#define BOOT_TARGET_DEVICES(func) \ + func(NVME, nvme, 0) \ func(VIRTIO, virtio, 0) \ func(VIRTIO, virtio, 1) \ func(SCSI, scsi, 0) \

On Sun, Sep 22, 2024 at 01:11:00PM +0300, lekkit@at.encryp.ch wrote:
[EXTERNAL MAIL]
From: LekKit 50500857+LekKit@users.noreply.github.com
QEMU supports NVMe devices, but U-Boot only tries to boot from Virtio. This is problematic when explicitly using NVMe, so fix that.
Additionally, RVVM virtual machine is almost fully compatible with QEMU, except it only implements NVMe drives instead of VirtIO.
include/configs/qemu-riscv.h | 1 + 1 file changed, 1 insertion(+)
Reviewed-by: Leo Yu-Chi Liang ycliang@andestech.com
participants (2)
-
lekkit@at.encryp.ch
-
Leo Liang