From: Tom Rini <trini@konsulko.com>
To: Rui Miguel Silva <rui.silva@linaro.org>
Cc: u-boot@lists.denx.de, Simon Glass <sjg@chromium.org>
Subject: Re: [PATCH 1/2] cmd: load: add load command for memory mapped
Date: Wed, 23 Mar 2022 09:22:58 -0400 [thread overview]
Message-ID: <20220323132258.GC2226424@bill-the-cat> (raw)
In-Reply-To: <20220322104118.573537-2-rui.silva@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 2172 bytes --]
On Tue, Mar 22, 2022 at 10:41:17AM +0000, Rui Miguel Silva wrote:
> cp.b is used a lot as a way to load binaries to memory and execute
> them, however we may need to integrate this with the efi subsystem to
> set it up as a bootdev.
>
> So, introduce a loadm command that will be consistent with the other
> loadX commands and will call the efi API's.
>
> ex: loadm $kernel_addr $kernel_addr_r $kernel_size
>
> with this a kernel with CONFIG_EFI_STUB enabled will be loaded and
> then subsequently booted with bootefi command.
>
> Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
> ---
> README | 1 +
> cmd/Kconfig | 6 ++++
> cmd/bootefi.c | 12 ++++++++
> cmd/load.c | 48 ++++++++++++++++++++++++++++++++
> include/efi_loader.h | 2 ++
> lib/efi_loader/efi_device_path.c | 9 ++++++
> 6 files changed, 78 insertions(+)
>
> diff --git a/README b/README
> index fe3ba01865e6..2932734b3edc 100644
> --- a/README
> +++ b/README
> @@ -2693,6 +2693,7 @@ rarpboot- boot image via network using RARP/TFTP protocol
> diskboot- boot from IDE devicebootd - boot default, i.e., run 'bootcmd'
> loads - load S-Record file over serial line
> loadb - load binary file over serial line (kermit mode)
> +loadm - load binary blob from source address to destination address
> md - memory display
> mm - memory modify (auto-incrementing)
> nm - memory modify (constant address)
There's likely a spot under doc/ that needs updating now too, as we move
to having better documentation.
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 564daa7bbc8d..d70e8398a558 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -1076,6 +1076,12 @@ config CMD_LOADB
> help
> Load a binary file over serial line.
>
> +config CMD_LOADM
> + bool "loadm"
> + default y
> + help
> + Load a binary over memory mapped.
We don't make new commands default y for everyone, that adds to every
board. This also needs a test, and should be enabled in sandbox so it
is tested and also passed through coverity.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2022-03-23 13:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-22 10:41 [PATCH 0/2] board/armltd: add support for corstone1000 Rui Miguel Silva
2022-03-22 10:41 ` [PATCH 1/2] cmd: load: add load command for memory mapped Rui Miguel Silva
2022-03-23 13:22 ` Tom Rini [this message]
2022-03-22 10:41 ` [PATCH 2/2] arm: add support to corstone1000 platform Rui Miguel Silva
2022-03-23 13:21 ` Tom Rini
2022-03-24 9:54 ` Rui Miguel Silva
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=20220323132258.GC2226424@bill-the-cat \
--to=trini@konsulko.com \
--cc=rui.silva@linaro.org \
--cc=sjg@chromium.org \
--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