From: Tom Rini <trini@konsulko.com>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: u-boot@lists.denx.de, Matthew Garrett <mgarrett@aurora.tech>,
AKASHI Takahiro <akashi.tkhro@gmail.com>,
Dmitry Rokosov <ddrokosov@salutedevices.com>,
Francis Laniel <francis.laniel@amarulasolutions.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Jerome Forissier <jerome.forissier@linaro.org>,
Mattijs Korpershoek <mkorpershoek@baylibre.com>,
Simon Glass <sjg@chromium.org>
Subject: Re: [PATCH 03/10] Add a command to find a load address
Date: Sun, 24 Nov 2024 09:56:58 -0600 [thread overview]
Message-ID: <20241124155658.GC3600562@bill-the-cat> (raw)
In-Reply-To: <20241123195616.305687-4-mjg59@srcf.ucam.org>
[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]
On Sat, Nov 23, 2024 at 11:55:02AM -0800, Matthew Garrett wrote:
> From: Matthew Garrett <mgarrett@aurora.tech>
>
> For systems with more complicated firmware, the firmware memory map may
> vary significantly based on a number of factors. This makes it difficult to
> pick a hardcoded load address. Add a command for finding an available
> address with sufficient room to load the provided path.
>
> Signed-off-by: Matthew Garrett <mgarrett@aurora.tech>
> ---
>
> cmd/Kconfig | 7 ++++
> cmd/Makefile | 1 +
> cmd/addr_find.c | 87 +++++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 95 insertions(+)
> create mode 100644 cmd/addr_find.c
This needs to be reworked on top of how lmb works today (which did
change post v2024.10) and looks a lot like what
arch/arm/mach-apple/board.c::board_late_init() was doing, even back in
2022. Do you end up using this functionality on more than one board /
family of boards? The easy path is likely to just follow what mach-apple
does, but the more broad path would be adding an option to configure the
key environment variables that are used as buffers and documented in
doc/develop/bootstd/overview.rst / doc/develop/distro.rst dynamically
rather than statically.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2024-11-24 15:57 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-23 19:54 [PATCH 00/10] Improve UEFI app support Matthew Garrett
2024-11-23 19:55 ` [PATCH 01/10] Add EFI handover support to bootm Matthew Garrett
2024-11-24 14:43 ` Heinrich Schuchardt
2024-11-24 19:29 ` Matthew Garrett
2024-11-24 19:51 ` Heinrich Schuchardt
2024-12-08 23:06 ` Simon Glass
2024-11-25 13:46 ` Ilias Apalodimas
2024-12-01 16:12 ` Simon Glass
2024-12-08 15:29 ` Simon Glass
2024-11-23 19:55 ` [PATCH 02/10] Add part_find command Matthew Garrett
2024-12-01 16:12 ` Simon Glass
2024-12-08 15:29 ` Simon Glass
2024-12-10 8:21 ` Heinrich Schuchardt
2024-12-10 16:16 ` Simon Glass
2024-11-23 19:55 ` [PATCH 03/10] Add a command to find a load address Matthew Garrett
2024-11-24 15:56 ` Tom Rini [this message]
2024-12-01 16:12 ` Simon Glass
2024-12-08 15:29 ` Simon Glass
2024-11-23 19:55 ` [PATCH 04/10] Hook up EFI env variable support in the EFI app Matthew Garrett
2024-12-01 16:12 ` Simon Glass
2024-12-08 15:29 ` Simon Glass
2024-11-23 19:55 ` [PATCH 05/10] Add EFI network driver Matthew Garrett
2024-12-01 16:12 ` Simon Glass
2024-12-08 15:29 ` Simon Glass
2024-11-23 19:55 ` [PATCH 06/10] Add UEFI TPM2 driver Matthew Garrett
2024-12-01 16:12 ` Simon Glass
2024-12-08 15:29 ` Simon Glass
2024-11-23 19:55 ` [PATCH 07/10] Support separate DTB files with the UEFI app Matthew Garrett
2024-11-25 13:55 ` Ilias Apalodimas
2024-12-01 16:14 ` Simon Glass
2024-12-08 15:29 ` Simon Glass
2024-11-23 19:55 ` [PATCH 08/10] Use the correct ramdisk address Matthew Garrett
2024-12-01 16:14 ` Simon Glass
2024-12-08 15:29 ` Simon Glass
2024-11-23 19:55 ` [PATCH 09/10] Fix efi_bind_block Matthew Garrett
2024-11-25 13:40 ` Ilias Apalodimas
2024-12-09 2:28 ` Simon Glass
2024-12-01 16:14 ` Simon Glass
2024-12-08 15:29 ` Simon Glass
2024-12-10 8:45 ` Heinrich Schuchardt
2024-12-10 16:17 ` Simon Glass
2024-12-10 17:11 ` Tom Rini
2024-12-11 17:50 ` Janis Danisevskis
2024-12-11 17:59 ` Ilias Apalodimas
2024-12-11 20:23 ` Simon Glass
2024-12-11 22:28 ` Janis Danisevskis
2024-11-23 19:55 ` [PATCH 10/10] Add command to set an environment variable to an EFI variable Matthew Garrett
2024-11-24 14:58 ` Heinrich Schuchardt
2024-12-01 16:14 ` Simon Glass
2024-12-08 15:29 ` Simon Glass
2024-12-09 2:28 ` Simon Glass
2024-11-24 14:40 ` [PATCH 00/10] Improve UEFI app support Heinrich Schuchardt
2024-12-01 16:15 ` Simon Glass
2024-12-08 15:28 ` Simon Glass
2024-12-08 15:51 ` Tom Rini
2024-12-08 18:50 ` Tom Rini
2024-12-08 23:07 ` Simon Glass
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=20241124155658.GC3600562@bill-the-cat \
--to=trini@konsulko.com \
--cc=akashi.tkhro@gmail.com \
--cc=ddrokosov@salutedevices.com \
--cc=francis.laniel@amarulasolutions.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jerome.forissier@linaro.org \
--cc=mgarrett@aurora.tech \
--cc=mjg59@srcf.ucam.org \
--cc=mkorpershoek@baylibre.com \
--cc=sjg@chromium.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox