All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>
To: Simon Glass <sjg@chromium.org>,
	U-Boot Mailing List <u-boot@lists.denx.de>
Cc: "Mark Kettenis" <mark.kettenis@xs4all.nl>,
	"Sean Anderson" <seanga2@gmail.com>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	"Tom Rini" <trini@konsulko.com>,
	"François Ozog" <francois.ozog@linaro.org>,
	"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
	"Albert Aribaud" <albert.u.boot@aribaud.net>,
	"Anastasiia Lukianenko" <anastasiia_lukianenko@epam.com>
Subject: Re: [PATCH v6 09/25] arm: xenguest_arm64: Add a fake devicetree file
Date: Thu, 2 Dec 2021 17:40:46 +0000	[thread overview]
Message-ID: <4c16a1e7-cea4-57da-94d9-88c47199bde0@epam.com> (raw)
In-Reply-To: <20211202155919.2429190-10-sjg@chromium.org>

Hi, Simon!

Sorry for being late to the party

On 02.12.21 17:59, Simon Glass wrote:
> Add an empty file to prevent build errors when building with
> CONFIG_OF_SEPARATE enabled.
>
> The build instructions in U-Boot do not provide enough detail to build a
> useful devicetree, unfortunately.
Xen guest doesn't use any built-in device trees as the guest's device tree is provided
by the Xen hypervisor itself and is generated at the virtual machine creation time: it is
populated with memory size, number of CPUs etc. based on [1].
So, even if we provide some device tree here it must not be used by U-boot at
the end of the day. Thus, it might be a reasonable solution to provide an empty device
tree as you do, but put a comment that it is not used.

Thank you,
Oleksandr
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> (no changes since v1)
>
>   arch/arm/dts/Makefile            |  2 ++
>   arch/arm/dts/xenguest-arm64.dts  | 15 +++++++++++++++
>   configs/xenguest_arm64_defconfig |  2 +-
>   3 files changed, 18 insertions(+), 1 deletion(-)
>   create mode 100644 arch/arm/dts/xenguest-arm64.dts
>
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index d53bae2c350..f6345988c8c 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -1140,6 +1140,8 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
>   	mt8516-pumpkin.dtb \
>   	mt8518-ap1-emmc.dtb
>   
> +dtb-$(CONFIG_XEN) += xenguest-arm64.dtb
> +
>   dtb-$(CONFIG_TARGET_GE_BX50V3) += \
>   	imx6q-bx50v3.dtb \
>   	imx6q-b850v3.dtb \
> diff --git a/arch/arm/dts/xenguest-arm64.dts b/arch/arm/dts/xenguest-arm64.dts
> new file mode 100644
> index 00000000000..52d3b062248
> --- /dev/null
> +++ b/arch/arm/dts/xenguest-arm64.dts
> @@ -0,0 +1,15 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Dummy devicetre file for xenguest_arm64
> + *
> + * This is required to make the board build with CONFIG OF_SEPARATE
> + * Build instructions at xenguest_arm64.rst are inadequate for obtaining a real
> + * devicetree.
> + *
> + * Copyright 2021 Google LLC
> + */
> +
> +/dts-v1/;
> +
> +/ {
> +};
> diff --git a/configs/xenguest_arm64_defconfig b/configs/xenguest_arm64_defconfig
> index 8d9d9133a2e..edce34346d3 100644
> --- a/configs/xenguest_arm64_defconfig
> +++ b/configs/xenguest_arm64_defconfig
> @@ -3,7 +3,7 @@ CONFIG_POSITION_INDEPENDENT=y
>   CONFIG_TARGET_XENGUEST_ARM64=y
>   CONFIG_SYS_TEXT_BASE=0x40080000
>   CONFIG_SYS_MALLOC_LEN=0x2000000
> -CONFIG_SYS_MALLOC_F_LEN=0x2000
> +CONFIG_DEFAULT_DEVICE_TREE="xenguest-arm64"
>   CONFIG_IDENT_STRING=" xenguest"
>   CONFIG_SYS_LOAD_ADDR=0x40000000
>   CONFIG_BOOTDELAY=10

[1] https://xenbits.xen.org/docs/unstable/man/xl.cfg.5.html

  reply	other threads:[~2021-12-02 17:41 UTC|newest]

Thread overview: 136+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-02 15:58 [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option Simon Glass
2021-12-02 15:58 ` [PATCH v6 01/25] doc: Add documentation about devicetree usage Simon Glass
2021-12-03 12:34   ` Heinrich Schuchardt
2021-12-03 13:09     ` Heinrich Schuchardt
2021-12-03 20:13       ` Simon Glass
2021-12-03 20:28         ` Heinrich Schuchardt
2021-12-04  1:02           ` Simon Glass
2021-12-04 11:06             ` François Ozog
2021-12-04 17:42               ` Simon Glass
2021-12-05  1:14                 ` François Ozog
2021-12-06 15:23                   ` Simon Glass
2021-12-07 22:02                     ` François Ozog
2021-12-02 15:58 ` [PATCH v6 02/25] arm: qemu: Mention -nographic in the docs Simon Glass
2021-12-02 15:58 ` [PATCH v6 03/25] arm: riscv: qemu: Explain how to extract the generated dt Simon Glass
2021-12-02 16:30   ` Heinrich Schuchardt
2021-12-02 16:51     ` Simon Glass
2021-12-02 17:03     ` Tom Rini
2021-12-02 15:58 ` [PATCH v6 04/25] arm: qemu: Add a devicetree file for qemu_arm Simon Glass
2021-12-02 15:58 ` [PATCH v6 05/25] arm: qemu: Add a devicetree file for qemu_arm64 Simon Glass
2021-12-02 15:59 ` [PATCH v6 06/25] riscv: qemu: Add devicetree files for qemu_riscv32/64 Simon Glass
2021-12-02 15:59 ` [PATCH v6 07/25] arm: rpi: Add a devicetree file for rpi_4 Simon Glass
2021-12-02 17:34   ` Mark Kettenis
2021-12-02 18:20     ` François Ozog
2021-12-02 18:25     ` Simon Glass
2021-12-03 12:16       ` Peter Robinson
2021-12-03 20:13         ` Simon Glass
2021-12-02 15:59 ` [PATCH v6 08/25] arm: vexpress: Add a devicetree file for juno Simon Glass
2021-12-02 15:59 ` [PATCH v6 09/25] arm: xenguest_arm64: Add a fake devicetree file Simon Glass
2021-12-02 17:40   ` Oleksandr Andrushchenko [this message]
2021-12-02 17:56     ` Tom Rini
2021-12-02 18:05       ` Simon Glass
2021-12-02 18:07         ` Tom Rini
2021-12-02 18:16         ` François Ozog
2021-12-02 18:29           ` Simon Glass
2021-12-02 18:44             ` François Ozog
2021-12-02 19:23               ` Simon Glass
2021-12-03 12:14                 ` Tom Rini
2021-12-03 16:04                   ` Simon Glass
2021-12-03 17:02                     ` François Ozog
2021-12-03 20:14                       ` Simon Glass
2021-12-03 20:21                         ` Tom Rini
2021-12-03 20:27                         ` François Ozog
2021-12-02 17:57     ` Simon Glass
2021-12-03  5:41       ` Oleksandr Andrushchenko
2021-12-03 16:23         ` Simon Glass
2021-12-03 17:02           ` Oleksandr Andrushchenko
2021-12-02 15:59 ` [PATCH v6 10/25] arm: octeontx: " Simon Glass
2021-12-02 15:59 ` [PATCH v6 11/25] arm: xilinx_versal_virt: Add a " Simon Glass
2021-12-02 15:59 ` [PATCH v6 12/25] arm: bcm7xxx: " Simon Glass
2021-12-02 15:59 ` [PATCH v6 13/25] arm: qemu-ppce500: " Simon Glass
2021-12-02 15:59 ` [PATCH v6 14/25] arm: highbank: Add a fake " Simon Glass
2021-12-02 15:59 ` [PATCH v6 15/25] fdt: Make OF_BOARD a bool option Simon Glass
2021-12-02 15:59 ` [PATCH v6 16/25] Drop CONFIG_BINMAN_STANDALONE_FDT Simon Glass
2021-12-02 15:59 ` [PATCH v6 17/25] doc: Update info on devicetree update Simon Glass
2021-12-02 15:59 ` [PATCH v6 18/25] fdt: Move MULTI_DTB_FIT handling out of fdtdec_setup() Simon Glass
2021-12-02 15:59 ` [PATCH v6 19/25] fdt: Drop #ifdefs with MULTI_DTB_FIT Simon Glass
2021-12-02 15:59 ` [PATCH v6 20/25] fdt: Drop CONFIG_SPL_BUILD check in fdtdec_setup() Simon Glass
2021-12-02 15:59 ` [PATCH v6 21/25] fdt: Drop #ifdef around board_fdt_blob_setup() Simon Glass
2021-12-02 15:59 ` [PATCH v6 22/25] fdt: Use if() for fdtcontroladdr check Simon Glass
2021-12-02 15:59 ` [PATCH v6 25/25] fdt: Don't call board_fdt_blob_setup() without OF_BOARD Simon Glass
2021-12-02 16:33 ` [PATCH v6 00/25] fdt: Make OF_BOARD a boolean option François Ozog
2021-12-02 16:38   ` Tom Rini
2021-12-02 16:49     ` Simon Glass
2021-12-02 16:59       ` Tom Rini
2021-12-02 17:07         ` Simon Glass
2021-12-02 18:03           ` Tom Rini
2021-12-02 18:17             ` Simon Glass
2021-12-02 18:34               ` Tom Rini
2021-12-02 19:12                 ` Simon Glass
2021-12-02 22:47                   ` Tom Rini
2021-12-02 23:46                     ` Simon Glass
2021-12-02 22:36                 ` François Ozog
2021-12-02 22:52                   ` Tom Rini
2021-12-02 22:55                     ` Simon Glass
2021-12-03 15:14                       ` Tom Rini
2021-12-03 15:47                         ` Simon Glass
2021-12-03  1:57                 ` Andre Przywara
2021-12-03  2:03                   ` Simon Glass
2021-12-03 20:43                     ` Tom Rini
2021-12-04  1:02                       ` Simon Glass
2021-12-03  1:29               ` Andre Przywara
2021-12-03  1:43                 ` Simon Glass
2021-12-02 17:03     ` Ilias Apalodimas
2021-12-02 17:09       ` Simon Glass
2021-12-03  7:54         ` Ilias Apalodimas
2021-12-02 18:15       ` Mark Kettenis
2021-12-02 18:21         ` Simon Glass
2021-12-02 18:38           ` Tom Rini
2021-12-02 18:47           ` Mark Kettenis
2021-12-02 18:53             ` Simon Glass
2021-12-02 19:22               ` Mark Kettenis
2021-12-02 19:24                 ` Simon Glass
2021-12-02 21:53                   ` Tom Rini
2021-12-02 22:42                     ` Simon Glass
2021-12-02 18:32         ` François Ozog
2021-12-02 19:00           ` Mark Kettenis
2021-12-03  7:50         ` Ilias Apalodimas
2021-12-03 10:27           ` Mark Kettenis
2021-12-03 13:59             ` Heinrich Schuchardt
2021-12-03 14:30               ` Ilias Apalodimas
2021-12-03 14:35                 ` Tom Rini
2021-12-03 15:10                   ` Ilias Apalodimas
2021-12-03  1:19       ` Andre Przywara
2021-12-02 16:39   ` Simon Glass
2021-12-02 16:58     ` Peter Maydell
2021-12-02 16:59     ` François Ozog
2021-12-03  1:10     ` Andre Przywara
2021-12-02 16:47 ` Heinrich Schuchardt
2021-12-02 16:50   ` Simon Glass
2021-12-03 10:03     ` Heinrich Schuchardt
2021-12-06 15:22       ` Simon Glass
2021-12-03 14:55 ` Tom Rini
2021-12-03 15:39   ` Simon Glass
2021-12-03 15:57     ` Tom Rini
2021-12-03 16:18       ` Simon Glass
2021-12-03 16:30         ` Tom Rini
2021-12-03 16:45           ` Simon Glass
2021-12-03 19:25             ` Tom Rini
2021-12-04  1:01               ` Simon Glass
2021-12-04 13:52                 ` Tom Rini
2021-12-04 15:20                   ` Simon Glass
2021-12-04 15:58                     ` Ilias Apalodimas
2021-12-04 17:25                       ` Simon Glass
2021-12-04 18:46                         ` Ilias Apalodimas
2021-12-04 16:02                     ` Mark Kettenis
2021-12-04 17:25                       ` Simon Glass
2021-12-04 16:55                     ` François Ozog
2021-12-04 17:35                       ` Simon Glass
2021-12-04 18:52                         ` François Ozog
2021-12-05 13:32                           ` Tom Rini
2021-12-04 18:03                     ` Tom Rini
2021-12-04 22:09                       ` Simon Glass
2021-12-05 13:32                         ` Tom Rini
2021-12-06 15:24                           ` Simon Glass
2021-12-06 15:43                             ` Tom Rini
     [not found] ` <20211202155919.2429190-25-sjg@chromium.org>
2021-12-06 18:45   ` [PATCH v6 24/25] fdt: Drop remaining preprocessor macros in fdtdec_setup() Ilias Apalodimas

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=4c16a1e7-cea4-57da-94d9-88c47199bde0@epam.com \
    --to=oleksandr_andrushchenko@epam.com \
    --cc=albert.u.boot@aribaud.net \
    --cc=anastasiia_lukianenko@epam.com \
    --cc=francois.ozog@linaro.org \
    --cc=ilias.apalodimas@linaro.org \
    --cc=mark.kettenis@xs4all.nl \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.