From nobody Tue Feb 10 02:27:45 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=chromium.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1634087494798643.9230573827194; Tue, 12 Oct 2021 18:11:34 -0700 (PDT) Received: from localhost ([::1]:55170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maSnt-00027r-Pw for importer@patchew.org; Tue, 12 Oct 2021 21:11:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maSeL-00085U-Ru for qemu-devel@nongnu.org; Tue, 12 Oct 2021 21:01:41 -0400 Received: from mail-oi1-x22a.google.com ([2607:f8b0:4864:20::22a]:39742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maSeI-0005Cn-Sf for qemu-devel@nongnu.org; Tue, 12 Oct 2021 21:01:41 -0400 Received: by mail-oi1-x22a.google.com with SMTP id m67so1623226oif.6 for ; Tue, 12 Oct 2021 18:01:38 -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) 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=jiB1YHd/kxqbZVIodB1II4oSJ1NTciyh93TEDsnz3zVTLpWP0MvbnR6DILXJln1GSs Bw+SoPHw3U/QLT7nTZveJgyj6qDEoWxb5VZEYWJJlLbasQ9ioWl+5KR5tWYZPAekm/dB f59S3ik+fzn/9CXoqQZDlfEvS083j+qsxBUGy4D5MvfkRaHabwUP4Sh+ZgCYyL2Yola5 Mn6uQLv+sSY7aFe699WfrGfM6UWAv1xt/ENgpfezDI2aTB8TI6wYSiReQDxVFNTZbLNk X6o0IHlOZujUa/tz1ZWY1rbADBD/oecRns461B0TdudNnhF2sPtzO704CiQ09z7EoQal p8vg== X-Gm-Message-State: AOAM530OM4BXH3M9RBklmjziHN30z1g4AL1vYoNHFtzM5bf/VruOrHkt rEgEhcm110PbjGnHRORw89R1mw== 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) From: Simon Glass To: U-Boot Mailing List 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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=sjg@chromium.org; helo=mail-oi1-x22a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.049, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom Rini , Simon Glass , Ilias Apalodimas , qemu-devel@nongnu.org, Albert Aribaud Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1634087496311100001 Content-Type: text/plain; charset="utf-8" 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-ar= m.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=3Dy CONFIG_DEBUG_UART_BASE=3D0x9000000 CONFIG_DEBUG_UART_CLOCK=3D0 + +Obtaining the QEMU devicetree +----------------------------- + +QEMU generates its own devicetree to pass to U-Boot and does this by defau= lt. +You can use `-dtb u-boot.dtb` to force QEMU to use U-Boot's in-tree versio= n. + +To obtain the devicetree that qemu generates, add `-machine dumpdtb=3Ddtb.= dtb`, +e.g.:: + + qemu-system-aarch64 -machine virt -nographic -cpu cortex-a57 \ + -bios u-boot.bin -machine dumpdtb=3Ddtb.dtb --=20 2.33.0.882.g93a45727a2-goog