From mboxrd@z Thu Jan 1 00:00:00 1970 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 63F75C433F5 for ; Wed, 13 Oct 2021 01:20:16 +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 A517160EB4 for ; Wed, 13 Oct 2021 01:20:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A517160EB4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.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 0AF71833F2; Wed, 13 Oct 2021 03:20:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="uy/69YnF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9A8B2833F4; Wed, 13 Oct 2021 03:20:05 +0200 (CEST) Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (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 3FD678321C for ; Wed, 13 Oct 2021 03:20:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=francois.ozog@linaro.org Received: by mail-ed1-x52b.google.com with SMTP id g10so3317265edj.1 for ; Tue, 12 Oct 2021 18:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1oREK1vF25vCfTBpST1qr74DHki7pW+cnw+6YsFcFZY=; b=uy/69YnFDFj/W/sH7GajltKAdAuNgJ6zZzn3AeoTwHVGeOO/EAjul+oYV/XsJifSgz 3bBun7GPbwuZLdQLoKtHt0avdxUJ2JeEa+5nGUR5j+lfclooZymokexNZKxaMWQ18fyE 8FJxzhzTtqnvN+OONlNf7FCanVWMvgNlrMBIeBuPeLMtSmvobIYUfKSYf8atXfDgUZi2 xxp6MZZwtlnBiyKcfjEQgD1/Y73ZgRysa2NLZ//cDsMdN0uF4DsNAtu5hFFzso847/qL hOtxR6oJy6JmmmHUCe0cDcbVf3mTe3AMmCtOQP4VPZk5l7HNoMT+kuxptWJdIe9iYSq8 CfSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1oREK1vF25vCfTBpST1qr74DHki7pW+cnw+6YsFcFZY=; b=PCUZ2wQfMG1vZ0PXPTO+Z+TktwUZwWszTer/nr2F9ioa+QDc3nonWho5nvoYFprCtk MD/T0wG7R14DxK4AyC5jiO2C5f88lZ/K/cceHzVF39TiUPxE8Nq2jl+YLTHnBHpWSgvC diJkpQu2fSQmQUHrJqSmdR0pSQdVzDVQmPqmAWyI7eToig5xHwfdILAUb5b7fHGgZ90w 8Kxyiq4jDRbv6jz9d13TSc+6A3tTAz/M6psXpVNpB/N+kovI+oMWIQNNtNmNgV3hrw5Q Lk7Q91MMKQ5oafiRE76Jb/DtOZXynxuzxao6i+nFcHGVe45YZOGC08RR32mzp4x0ShmP VJlA== X-Gm-Message-State: AOAM533yy1r4MfFx0asfavXZvRxgSa5hF7bCLnHWTfMu/Wqp1cB4/v4N yMFEZZ7wc/V+3ig2erDZEAwT3eUc89MRWFs/XmI22A== X-Google-Smtp-Source: ABdhPJwFXqcLfd6oo1hawpFKgkbL0Zwo1rEQcyieazbdhhosQ7LPwAJO6bScpyJRqPm3WQFeoEOQIUiAy/IIVSM5dLQ= X-Received: by 2002:a50:a2a5:: with SMTP id 34mr4967274edm.180.1634087999821; Tue, 12 Oct 2021 18:19:59 -0700 (PDT) MIME-Version: 1.0 References: <20211013010120.96851-1-sjg@chromium.org> <20211013010120.96851-3-sjg@chromium.org> In-Reply-To: <20211013010120.96851-3-sjg@chromium.org> From: =?UTF-8?Q?Fran=C3=A7ois_Ozog?= Date: Wed, 13 Oct 2021 03:19:49 +0200 Message-ID: Subject: Re: [PATCH 02/16] arm: qemu: Explain how to extract the generate devicetree To: Simon Glass Cc: Albert Aribaud , Ilias Apalodimas , Tom Rini , U-Boot Mailing List , qemu-devel@nongnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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 Le mer. 13 oct. 2021 =C3=A0 03:02, Simon Glass a =C3=A9c= rit : > 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=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 > default. > +You can use `-dtb u-boot.dtb` to force QEMU to use U-Boot's in-tree > version. this is for either Qemu experts or u-boot for Qemu maintainers. Not for the kernel d=C3=A9velopper as it is recipe for problems: could you add this war= ning ? > > + > +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 > -- > 2.33.0.882.g93a45727a2-goog > > -- Fran=C3=A7ois-Fr=C3=A9d=C3=A9ric Ozog | *Director Business Development* T: +33.67221.6485 francois.ozog@linaro.org | Skype: ffozog From mboxrd@z Thu Jan 1 00:00:00 1970 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 A9AA4C433F5 for ; Wed, 13 Oct 2021 01:21:51 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 097FE60EDF for ; Wed, 13 Oct 2021 01:21:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 097FE60EDF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:34166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maSxq-0007lt-1f for qemu-devel@archiver.kernel.org; Tue, 12 Oct 2021 21:21:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maSw7-0006yg-15 for qemu-devel@nongnu.org; Tue, 12 Oct 2021 21:20:03 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:33300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maSw5-0006e8-Ah for qemu-devel@nongnu.org; Tue, 12 Oct 2021 21:20:02 -0400 Received: by mail-ed1-x52d.google.com with SMTP id p13so3429564edw.0 for ; Tue, 12 Oct 2021 18:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1oREK1vF25vCfTBpST1qr74DHki7pW+cnw+6YsFcFZY=; b=uy/69YnFDFj/W/sH7GajltKAdAuNgJ6zZzn3AeoTwHVGeOO/EAjul+oYV/XsJifSgz 3bBun7GPbwuZLdQLoKtHt0avdxUJ2JeEa+5nGUR5j+lfclooZymokexNZKxaMWQ18fyE 8FJxzhzTtqnvN+OONlNf7FCanVWMvgNlrMBIeBuPeLMtSmvobIYUfKSYf8atXfDgUZi2 xxp6MZZwtlnBiyKcfjEQgD1/Y73ZgRysa2NLZ//cDsMdN0uF4DsNAtu5hFFzso847/qL hOtxR6oJy6JmmmHUCe0cDcbVf3mTe3AMmCtOQP4VPZk5l7HNoMT+kuxptWJdIe9iYSq8 CfSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1oREK1vF25vCfTBpST1qr74DHki7pW+cnw+6YsFcFZY=; b=sLrYUQ2diz2JrCIWKgkdWOuomycq/EQIhhl5ZT+DnguK3aNRR73sYLKKAvBnrKcmrG Lr8OroBsyDP55/czeaIPVO55W1/4VTu1FKir1xFviAg7owaY7yAaGlYCFxHy/Rwqy7dn Qlgo/QTxAqNEpYegAFRgbGrWrTPtEtcM9CerznYIZpISvz5wbNbNgl87W63ulgPoj221 pSA+jDZv0E4RDZq5j1EE/TzNR8misvWX2rpqvFDQHvNHXpx/opYWNxbMTxTpgWOB3epz EFeqaEAeI5AOhGhL4h7B4vTQNtv3uONm3TUJZ9jPx3gxPIiaJZUpEV/XXHxHz/L9+bM7 jKtA== X-Gm-Message-State: AOAM532Czxeh5nNnqqqz9n0duJQPOzdtDWJnryuXI/so5Om9stDPPmmc i5wbiCJfSK3+lZDX2ZEFgMUvsOGRi/AQ6hfOD6nxiw== X-Google-Smtp-Source: ABdhPJwFXqcLfd6oo1hawpFKgkbL0Zwo1rEQcyieazbdhhosQ7LPwAJO6bScpyJRqPm3WQFeoEOQIUiAy/IIVSM5dLQ= X-Received: by 2002:a50:a2a5:: with SMTP id 34mr4967274edm.180.1634087999821; Tue, 12 Oct 2021 18:19:59 -0700 (PDT) MIME-Version: 1.0 References: <20211013010120.96851-1-sjg@chromium.org> <20211013010120.96851-3-sjg@chromium.org> In-Reply-To: <20211013010120.96851-3-sjg@chromium.org> From: =?UTF-8?Q?Fran=C3=A7ois_Ozog?= Date: Wed, 13 Oct 2021 03:19:49 +0200 Message-ID: Subject: Re: [PATCH 02/16] arm: qemu: Explain how to extract the generate devicetree To: Simon Glass Content-Type: multipart/alternative; boundary="000000000000c2ef7b05ce31c253" Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=francois.ozog@linaro.org; helo=mail-ed1-x52d.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, 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: U-Boot Mailing List , Albert Aribaud , Ilias Apalodimas , qemu-devel@nongnu.org, Tom Rini Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" --000000000000c2ef7b05ce31c253 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le mer. 13 oct. 2021 =C3=A0 03:02, Simon Glass a =C3=A9c= rit : > 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=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 > default. > +You can use `-dtb u-boot.dtb` to force QEMU to use U-Boot's in-tree > version. this is for either Qemu experts or u-boot for Qemu maintainers. Not for the kernel d=C3=A9velopper as it is recipe for problems: could you add this war= ning ? > > + > +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 > -- > 2.33.0.882.g93a45727a2-goog > > -- Fran=C3=A7ois-Fr=C3=A9d=C3=A9ric Ozog | *Director Business Development* T: +33.67221.6485 francois.ozog@linaro.org | Skype: ffozog --000000000000c2ef7b05ce31c253 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Le=C2=A0mer. 13 oct. 2021 =C3=A0 03:02, Simon Glass <sjg@chromium.org> a =C3=A9crit=C2= =A0:
QEMU currently generates a dev= icetree for use with U-Boot. Explain how to
obtain it.

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

=C2=A0doc/board/emulation/qemu-arm.rst | 12 ++++++++++++
=C2=A01 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= ::
=C2=A0 =C2=A0 =C2=A0CONFIG_DEBUG_UART_PL010=3Dy
=C2=A0 =C2=A0 =C2=A0CONFIG_DEBUG_UART_BASE=3D0x9000000
=C2=A0 =C2=A0 =C2=A0CONFIG_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 ve= rsion.
this is for either Qemu experts or u-b= oot for Qemu maintainers. Not for the kernel d=C3=A9velopper as it is recip= e for problems: could you add this warning ?

+
+To obtain the devicetree that qemu generates, add `-machine dumpdtb=3Ddtb.= dtb`,
+e.g.::
+
+=C2=A0 =C2=A0 qemu-system-aarch64 -machine virt -nographic -cpu cortex-a57= \
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0-bios u-boot.bin -machine dumpdtb= =3Ddtb.dtb
--
2.33.0.882.g93a45727a2-goog

--
<= div>
Fran=C3=A7oi= s-Fr=C3=A9d=C3=A9ric Ozog=C2=A0|=C2=A0Director Business Development
T:=C2=A0+33.67221.6485<= br>francois.ozog@linaro.org=C2=A0= |=C2=A0Skype:=C2=A0ffozog

--000000000000c2ef7b05ce31c253--