Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDB2BC433EF for ; Wed, 13 Oct 2021 01:02:35 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 125E860E0C for ; Wed, 13 Oct 2021 01:02:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 125E860E0C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6BC7C83769; Wed, 13 Oct 2021 03:02:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="IULdiWfy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4C22E8374D; Wed, 13 Oct 2021 03:01:52 +0200 (CEST) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 17D1D83556 for ; Wed, 13 Oct 2021 03:01:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x22b.google.com with SMTP id o204so1565568oih.13 for ; Tue, 12 Oct 2021 18:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Sonr4+QlvB0BD70L0wqOWK7lNp2oGE8bokzvEATHsxw=; b=IULdiWfylgMEqb7ZX7WxrlbC7ZWz/4stAzDL1QEClcHsFz+WdykP7QLgtXvI8HgOye SYu0BQg9TGXBj7wtbD3MoGJW3VwTfVbNRGOn7t3n1cWcSTLxnzXp0ZG4FRh+qdVAYMwh I8FgqsL2YGzVANtJRb6BDmbZy8k5BZizDHZvo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Sonr4+QlvB0BD70L0wqOWK7lNp2oGE8bokzvEATHsxw=; b=P7ex/ZgiEvpupJYP4QvSD1Tjbelw7l7GqrIxSShxY5aR5zN/BxAFgNFkL7T8vPDK19 jzSpW8CCyBhUx7RQsH6qENGL6Rk5xjgSVtHneLuCgNdV9RNIiqwg5ELNew0js4F0jsw5 eth9Kqu6lAR+cU7/KY9/1yCU2hAWN2uSEAlGyK/yaYu9zXYvVZVB4EaT7VrQdBY31UoV CMJnCrqcOi9hDHW/UI5GpKJNeukfdIQpZfCV1+1K+ye2X68rxNfEdkCTbCvOXWBzDq6k uO8f9bZ+FhkGfwa1mCsVRUIb7g5uJ9ZEQcq2iyBBaM4gI78a7a3uGQ9WzjsRF2JLRcvH ehMg== X-Gm-Message-State: AOAM530xyOwYaO/GrBZPIaWJ0fs6inTRoZW5nw9rFpdjB+qy3nYu3QS+ zq8S6elApUer2fetEq2oqPRtMZfqLScUkg== X-Google-Smtp-Source: ABdhPJyzRRGmUw1PYMsQ8E4RUbqs0C3BPnGoY5PGZNZApFMbc67lS6kXNSXS+KXIitcpd38sLWiBwg== X-Received: by 2002:aca:c046:: with SMTP id q67mr5996611oif.33.1634086891402; Tue, 12 Oct 2021 18:01:31 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id a10sm238107otb.7.2021.10.12.18.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 18:01:30 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Ilias Apalodimas , Simon Glass , Albert Aribaud , qemu-devel@nongnu.org Subject: [PATCH 02/16] arm: qemu: Explain how to extract the generate devicetree Date: Tue, 12 Oct 2021 19:01:06 -0600 Message-Id: <20211013010120.96851-3-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog In-Reply-To: <20211013010120.96851-1-sjg@chromium.org> References: <20211013010120.96851-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean QEMU currently generates a devicetree for use with U-Boot. Explain how to obtain it. Signed-off-by: Simon Glass --- doc/board/emulation/qemu-arm.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/board/emulation/qemu-arm.rst b/doc/board/emulation/qemu-arm.rst index 97b6ec64905..b458a398c69 100644 --- a/doc/board/emulation/qemu-arm.rst +++ b/doc/board/emulation/qemu-arm.rst @@ -91,3 +91,15 @@ The debug UART on the ARM virt board uses these settings:: CONFIG_DEBUG_UART_PL010=y CONFIG_DEBUG_UART_BASE=0x9000000 CONFIG_DEBUG_UART_CLOCK=0 + +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-aarch64 -machine virt -nographic -cpu cortex-a57 \ + -bios u-boot.bin -machine dumpdtb=dtb.dtb -- 2.33.0.882.g93a45727a2-goog