]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: qemu: Enable booting from NVMe
authorLekKit <50500857+LekKit@users.noreply.github.com>
Sun, 22 Sep 2024 10:11:00 +0000 (13:11 +0300)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 28 Oct 2024 08:11:33 +0000 (16:11 +0800)
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.
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
include/configs/qemu-riscv.h

index 2f594bfcfd69f65f898c16bd30d9ad5bfc659c29..cf4fcb90b047bb641d702124f2efa451408c0b16 100644 (file)
@@ -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) \