From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: u-boot@lists.denx.de
Subject: [PATCH 01/14] qemu: arm: Use the generated DTB only when CONGIG_OF_BOARD is defined
Date: Sat, 5 Dec 2020 10:31:35 +0100 [thread overview]
Message-ID: <e166f60d-3709-bcdb-3993-8959bf3d6aea@gmx.de> (raw)
In-Reply-To: <20201126184110.30521-2-sughosh.ganu@linaro.org>
On 11/26/20 7:40 PM, Sughosh Ganu wrote:
> The Qemu platform emulator generates a device tree blob and places it
> at the start of the dram, which is then used by u-boot. Use this dtb
> only if CONFIG_OF_BOARD is defined. This allows using a different
> device tree, using the CONFIG_OF_SEPARATE option. This dtb is attached
> to the u-boot binary as a u-boot-fdt.bin file
Dear Sughosh,
thank your for this series which will allow us to better demonstrate and
test capsule updates.
I am not sure if the approach that you take at device-trees here is the
right one.
On QEMU the device-tree is generated on the fly by the QEMU binary
depending on which devices the user has specified.
Your idea is to replace this device-tree completely to be able to add
extra elements (the EFI signature list, see patch 2/14). Thus a
device-tree might be loaded that does not match the user selected devices.
An alternative approach would be to apply all additions to the
device-tree as an FDT overlay (or fixup). This would allow the dynamic
parts of the QEMU device-tree still to be passed through.
Could you, please, assess the pros and cons of the two approaches with
respect to:
* usability for capsule updates
* applicability for non-QEMU systems
* integration of DTB overlays with FIT images for other use cases
Best regards
Heinrich
>
> Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> ---
> board/emulation/qemu-arm/qemu-arm.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/board/emulation/qemu-arm/qemu-arm.c b/board/emulation/qemu-arm/qemu-arm.c
> index f18f2ed7da..e146d1cc50 100644
> --- a/board/emulation/qemu-arm/qemu-arm.c
> +++ b/board/emulation/qemu-arm/qemu-arm.c
> @@ -89,11 +89,13 @@ int dram_init_banksize(void)
> return 0;
> }
>
> +#if defined(CONFIG_OF_BOARD)
> void *board_fdt_blob_setup(void)
> {
> /* QEMU loads a generated DTB for us at the start of RAM. */
> return (void *)CONFIG_SYS_SDRAM_BASE;
> }
> +#endif
>
> void enable_caches(void)
> {
>
next prev parent reply other threads:[~2020-12-05 9:31 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-26 18:40 [PATCH 00/14] qemu: arm64: Add support for uefi capsule update on qemu arm64 platform Sughosh Ganu
2020-11-26 18:40 ` [PATCH 01/14] qemu: arm: Use the generated DTB only when CONGIG_OF_BOARD is defined Sughosh Ganu
2020-12-05 9:31 ` Heinrich Schuchardt [this message]
2020-12-07 5:15 ` Sughosh Ganu
2020-12-07 12:50 ` Heinrich Schuchardt
2020-12-07 17:58 ` Heinrich Schuchardt
2020-12-08 5:28 ` Sughosh Ganu
2020-12-08 9:02 ` Heinrich Schuchardt
2020-12-08 9:19 ` Sughosh Ganu
2020-12-08 21:54 ` Heinrich Schuchardt
2020-12-09 5:25 ` Sughosh Ganu
2020-12-09 7:26 ` Heinrich Schuchardt
2020-12-09 8:26 ` Sughosh Ganu
2020-12-15 11:10 ` Sughosh Ganu
2020-12-15 12:55 ` Heinrich Schuchardt
2020-12-15 15:35 ` Sughosh Ganu
2020-11-26 18:40 ` [PATCH 02/14] mkeficapsule: Add support for embedding public key in a dtb Sughosh Ganu
2020-11-26 18:40 ` [PATCH 03/14] qemu: arm: Scan the pci bus in board_init Sughosh Ganu
2020-12-05 9:45 ` Heinrich Schuchardt
2020-12-07 5:16 ` Sughosh Ganu
2020-11-26 18:41 ` [PATCH 04/14] crypto: Fix the logic to calculate hash with authattributes set Sughosh Ganu
2020-12-05 10:21 ` Heinrich Schuchardt
2020-11-26 18:41 ` [PATCH 05/14] qemu: arm64: Add support for dynamic mtdparts for the platform Sughosh Ganu
2020-12-05 10:29 ` Heinrich Schuchardt
2020-12-07 5:30 ` Sughosh Ganu
2020-12-07 18:44 ` Tom Rini
2020-12-08 5:12 ` Sughosh Ganu
2020-11-26 18:41 ` [PATCH 06/14] qemu: arm64: Set dfu_alt_info variable " Sughosh Ganu
2020-12-05 10:31 ` Heinrich Schuchardt
2020-12-07 5:42 ` Sughosh Ganu
2020-12-07 6:56 ` Heinrich Schuchardt
2020-12-07 7:45 ` Sughosh Ganu
2020-12-07 18:47 ` Tom Rini
2020-12-08 5:18 ` Sughosh Ganu
2020-12-08 12:20 ` Tom Rini
2020-12-08 17:03 ` Sughosh Ganu
2020-11-26 18:41 ` [PATCH 07/14] efi_loader: Add config option to indicate fmp header presence Sughosh Ganu
2020-12-05 10:34 ` Heinrich Schuchardt
2020-12-07 6:02 ` Sughosh Ganu
2020-11-26 18:41 ` [PATCH 08/14] dfu_mtd: Add provision to unlock mtd device Sughosh Ganu
2020-11-26 18:41 ` [PATCH 09/14] efi_loader: Make the pkcs7 header parsing function an extern Sughosh Ganu
2020-12-05 10:40 ` Heinrich Schuchardt
2020-11-26 18:41 ` [PATCH 10/14] efi_loader: Re-factor code to build the signature store from efi signature list Sughosh Ganu
2020-11-26 18:41 ` [PATCH 11/14] efi: capsule: Add support for uefi capsule authentication Sughosh Ganu
2020-11-26 18:41 ` [PATCH 12/14] efi_loader: Enable " Sughosh Ganu
2020-12-05 10:47 ` Heinrich Schuchardt
2020-11-26 18:41 ` [PATCH 13/14] efidebug: capsule: Add a command to update capsule on disk Sughosh Ganu
2020-11-26 18:41 ` [PATCH 14/14] qemu: arm64: Add documentation for capsule update Sughosh Ganu
2020-12-05 10:16 ` Heinrich Schuchardt
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=e166f60d-3709-bcdb-3993-8959bf3d6aea@gmx.de \
--to=xypron.glpk@gmx.de \
--cc=u-boot@lists.denx.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