]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
x86: qemu: Enable NVMe driver
authorBin Meng <bmeng.cn@gmail.com>
Thu, 3 Aug 2017 09:31:03 +0000 (02:31 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 13 Aug 2017 19:17:33 +0000 (15:17 -0400)
QEMU supports NVMe emulation. Enable the NVMe driver on QEMU x86.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
configs/qemu-x86_defconfig
doc/README.nvme

index 293309c994407f3e606b9b13859fb3776c7e5b1f..fef396076d98830994294cee575e26e31d012bde 100644 (file)
@@ -37,6 +37,7 @@ CONFIG_EFI_PARTITION=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 CONFIG_CPU=y
+CONFIG_NVME=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_FRAMEBUFFER_SET_VESA_MODE=y
index 28ecf54000110164df4d943ad8b9dc9f60140463..3afa912a583faf956f223796f29d80b008727620 100644 (file)
@@ -76,3 +76,11 @@ Of course, file system command can be used on the NVMe hard disk as well:
 
   => fatload nvme 0:1 a0000000 /kernel.itb
   => bootm a0000000
+
+Testing NVMe with QEMU x86
+--------------------------
+QEMU supports NVMe emulation and we can test NVMe driver with QEMU x86 running
+U-Boot. Please see README.x86 for how to build u-boot.rom image for QEMU x86.
+
+Example command line to call QEMU x86 below with emulated NVMe device:
+$ ./qemu-system-i386 -drive file=nvme.img,if=none,id=drv0 -device nvme,drive=drv0,serial=QEMUNVME0001 -bios u-boot.rom