qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Tom Rini <trini@konsulko.com>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Simon Glass <sjg@chromium.org>, Bin Meng <bin.meng@windriver.com>,
	Rick Chen <rick@andestech.com>,
	qemu-devel@nongnu.org, Atish Patra <atish.patra@wdc.com>
Subject: [PATCH 03/16] riscv: qemu: Explain how to extract the generate devicetree
Date: Tue, 12 Oct 2021 19:01:07 -0600	[thread overview]
Message-ID: <20211013010120.96851-4-sjg@chromium.org> (raw)
In-Reply-To: <20211013010120.96851-1-sjg@chromium.org>

QEMU currently generates a devicetree for use with U-Boot. Explain how to
obtain it.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 doc/board/emulation/qemu-riscv.rst | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/doc/board/emulation/qemu-riscv.rst b/doc/board/emulation/qemu-riscv.rst
index 4b8e104a215..b3cf7085847 100644
--- a/doc/board/emulation/qemu-riscv.rst
+++ b/doc/board/emulation/qemu-riscv.rst
@@ -113,3 +113,15 @@ An attached disk can be emulated by adding::
     -device ide-hd,drive=mydisk,bus=ahci.0
 
 You will have to run 'scsi scan' to use it.
+
+Obtaining the QEMU devicetree
+-----------------------------
+
+QEMU generates its own devicetree to pass to U-Boot and does this by default.
+You can use `-dtb u-boot.dtb` to force QEMU to use U-Boot's in-tree version.
+
+To obtain the devicetree that qemu generates, add `-machine dumpdtb=dtb.dtb`,
+e.g.::
+
+    qemu-system-riscv64 -nographic -machine virt -bios u-boot \
+	    -machine dumpdtb=dtb.dtb
-- 
2.33.0.882.g93a45727a2-goog



  parent reply	other threads:[~2021-10-13  1:07 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-13  1:01 [PATCH 00/16] fdt: Make OF_BOARD a boolean option Simon Glass
2021-10-13  1:01 ` [PATCH 01/16] arm: qemu: Mention -nographic in the docs Simon Glass
2021-10-13  1:01 ` [PATCH 02/16] arm: qemu: Explain how to extract the generate devicetree Simon Glass
2021-10-13  1:19   ` François Ozog
2021-10-13 16:58     ` Simon Glass
2021-10-13 17:36       ` Tom Rini
2021-10-13  1:01 ` Simon Glass [this message]
2021-10-13  1:01 ` [PATCH 04/16] arm: qemu: Add a devicetree file for qemu_arm Simon Glass
2021-10-13  1:01 ` [PATCH 05/16] arm: qemu: Add a devicetree file for qemu_arm64 Simon Glass
2021-10-13  1:15   ` François Ozog
2021-10-27 14:44     ` Alex Bennée
2021-10-27 14:56       ` Tom Rini
2021-10-27 18:34         ` Simon Glass
2021-10-27 18:39           ` Tom Rini
2021-10-27 19:45             ` Alex Bennée
2021-10-13  1:01 ` [PATCH 06/16] riscv: qemu: Add devicetree files for qemu_riscv32/64 Simon Glass
2021-10-13  4:21   ` Heinrich Schuchardt
2021-10-13  1:29 ` [PATCH 00/16] fdt: Make OF_BOARD a boolean option Bin Meng
2021-10-13  1:34   ` Tom Rini
2021-10-13  8:02     ` François Ozog
2021-10-13 14:47     ` Simon Glass
2021-10-13 17:34       ` François Ozog
2021-10-13 18:06         ` Simon Glass
2021-10-14 14:56           ` Tom Rini
2021-10-14 15:17             ` Simon Glass
2021-10-14 15:28               ` Tom Rini
2021-10-14 17:58                 ` François Ozog
2021-10-15 18:03                 ` Simon Glass
2021-10-26  6:46                   ` Ilias Apalodimas
2021-10-27 12:59                     ` Tom Rini
2021-10-27 13:30                       ` François Ozog
2021-10-27 13:38                         ` Tom Rini
2021-10-27 13:47                           ` Ilias Apalodimas
2021-10-27 14:26                             ` Tom Rini
2021-10-27 13:48                           ` François Ozog
2021-10-27 14:30                             ` Tom Rini
2021-10-28  2:50                     ` Simon Glass
2021-10-28  8:21                       ` François Ozog
2021-10-28 14:30                         ` Simon Glass
2021-10-28 14:50                           ` François Ozog
2021-10-28 15:44                             ` Simon Glass
2021-10-28 16:25                               ` François Ozog
2021-11-02 14:59                                 ` Simon Glass
2021-11-01 11:04                       ` Ilias Apalodimas
2021-11-02 10:06                         ` Michael Walle
2021-11-02 12:34                           ` François Ozog
2021-11-02 14:59                         ` Simon Glass
2021-10-27 12:48                   ` Tom Rini
2021-10-27 13:15                     ` François Ozog
2021-10-27 13:23                       ` Heinrich Schuchardt
2021-10-27 14:55                         ` Tom Rini
2021-10-27 15:02                           ` Heinrich Schuchardt
2021-10-27 18:04                             ` Tom Rini
2021-10-27 14:54                       ` Tom Rini
2021-10-27 15:10                       ` Mark Kettenis
2021-10-27 15:24                         ` Simon Glass
2021-10-27 18:06                           ` Tom Rini
2021-10-27 18:11                             ` François Ozog
2021-10-27 21:52                           ` Mark Kettenis
2021-10-27 16:02                         ` François Ozog
2021-10-27 19:06                           ` Tom Rini
2021-10-27 22:00                             ` François Ozog
2021-10-28 14:41                               ` Tom Rini
2021-10-14 16:24               ` Andre Przywara
2021-10-14 17:48                 ` François Ozog
2021-10-14 18:12           ` François Ozog
2021-10-14 21:00             ` Simon Glass
2021-10-13 12:39   ` Philippe Mathieu-Daudé
2021-10-13 13:06     ` François Ozog
2021-10-13  4:26 ` Heinrich Schuchardt
2021-10-13 13:06   ` François Ozog
2021-10-13  9:50 ` Andre Przywara
2021-10-13 13:05   ` François Ozog

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=20211013010120.96851-4-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=atish.patra@wdc.com \
    --cc=bin.meng@windriver.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rick@andestech.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.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;
as well as URLs for NNTP newsgroup(s).