public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 8/8] x86: qemu: Enable NVMe driver
Date: Thu,  3 Aug 2017 02:31:03 -0700	[thread overview]
Message-ID: <1501752663-25088-9-git-send-email-bmeng.cn@gmail.com> (raw)
In-Reply-To: <1501752663-25088-1-git-send-email-bmeng.cn@gmail.com>

QEMU supports NVMe emulation. Enable the NVMe driver on QEMU x86.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 configs/qemu-x86_defconfig | 1 +
 doc/README.nvme            | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/configs/qemu-x86_defconfig b/configs/qemu-x86_defconfig
index 068b1cd..91eb33e 100644
--- a/configs/qemu-x86_defconfig
+++ b/configs/qemu-x86_defconfig
@@ -36,6 +36,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
diff --git a/doc/README.nvme b/doc/README.nvme
index 28ecf54..3afa912 100644
--- a/doc/README.nvme
+++ b/doc/README.nvme
@@ -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
-- 
2.9.2

  parent reply	other threads:[~2017-08-03  9:31 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-03  9:30 [U-Boot] [PATCH 0/8] nvme: Add NVM Express driver support Bin Meng
2017-08-03  9:30 ` [U-Boot] [PATCH 1/8] dm: blk: part: Add UCLASS_NVME and IF_TYPE_NVME Bin Meng
2017-08-10  1:30   ` Tom Rini
2017-08-14  0:07   ` [U-Boot] [U-Boot, " Tom Rini
2017-08-03  9:30 ` [U-Boot] [PATCH 2/8] nvme: Add NVM Express driver support Bin Meng
2017-08-10  1:30   ` Tom Rini
2017-08-14  0:07   ` [U-Boot] [U-Boot,2/8] " Tom Rini
2017-08-03  9:30 ` [U-Boot] [PATCH 3/8] nvme: Add show routine to print detailed information Bin Meng
2017-08-10  1:31   ` Tom Rini
2017-08-14  0:07   ` [U-Boot] [U-Boot, " Tom Rini
2017-08-03  9:30 ` [U-Boot] [PATCH 4/8] nvme: Add nvme commands Bin Meng
2017-08-10  1:31   ` Tom Rini
2017-08-14  0:08   ` [U-Boot] [U-Boot,4/8] " Tom Rini
2017-08-03  9:31 ` [U-Boot] [PATCH 5/8] nvme: Detect devices that are class Storage Express Bin Meng
2017-08-10  1:31   ` Tom Rini
2017-08-14  0:08   ` [U-Boot] [U-Boot, " Tom Rini
2017-08-03  9:31 ` [U-Boot] [PATCH 6/8] nvme: Fix number of blocks detection Bin Meng
2017-08-10  1:31   ` Tom Rini
2017-08-14  0:08   ` [U-Boot] [U-Boot,6/8] " Tom Rini
2017-08-03  9:31 ` [U-Boot] [PATCH 7/8] nvme: Handle zero Maximum Data Transfer Size (MDTS) Bin Meng
2017-08-10  1:31   ` Tom Rini
2017-08-14  0:08   ` [U-Boot] [U-Boot, " Tom Rini
2017-08-03  9:31 ` Bin Meng [this message]
2017-08-10  1:31   ` [U-Boot] [PATCH 8/8] x86: qemu: Enable NVMe driver Tom Rini
2017-08-14  0:08   ` [U-Boot] [U-Boot,8/8] " Tom Rini
2017-08-09 22:40 ` [U-Boot] [PATCH 0/8] nvme: Add NVM Express driver support Bin Meng
2017-08-10  1:31   ` Tom Rini
2017-08-10  1:49     ` Bin Meng
2017-08-10  1:56       ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1501752663-25088-9-git-send-email-bmeng.cn@gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox