From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 0/3] ARM: support booting arbitrary ELF executables
Date: Thu, 21 Sep 2023 10:18:26 +0200 [thread overview]
Message-ID: <20230921081826.GF637806@pengutronix.de> (raw)
In-Reply-To: <20230913125715.2142524-1-a.fatoum@pengutronix.de>
On Wed, Sep 13, 2023 at 02:57:12PM +0200, Ahmad Fatoum wrote:
> Unlike MIPS and kvx, where ELF is used as kernel image format, Linux
> ARM support defines its own flattened format.
>
> Other kernels may be distributed as ELF images though, so it makes
> sense to enable booting of ELF images on ARM as well.
>
> This has been tested booting FreeRTOS ELF executables on the ZynqMP.
>
> Note that this will refuse to boot kernel ELF images as those have
> type dyn, while the common ELF code in barebox will only boot type exec.
>
> Ahmad Fatoum (3):
> common: elf: support loading to address 0
> ARM: add support for booting ELF executables
> kbuild: support generating stripped ELF files for PBL
Applied, thanks
Sascha
>
> Makefile | 4 +--
> arch/arm/cpu/Makefile | 1 +
> arch/arm/cpu/bootm-elf.c | 56 ++++++++++++++++++++++++++++++++++++++
> arch/arm/include/asm/elf.h | 5 ++++
> common/elf.c | 17 ++++++++----
> images/Makefile | 10 +++++--
> include/elf.h | 1 +
> 7 files changed, 83 insertions(+), 11 deletions(-)
> create mode 100644 arch/arm/cpu/bootm-elf.c
>
> --
> 2.39.2
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2023-09-21 8:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-13 12:57 Ahmad Fatoum
2023-09-13 12:57 ` [PATCH 1/3] common: elf: support loading to address 0 Ahmad Fatoum
2023-09-13 12:57 ` [PATCH 2/3] ARM: add support for booting ELF executables Ahmad Fatoum
2023-09-13 12:57 ` [PATCH 3/3] kbuild: support generating stripped ELF files for PBL Ahmad Fatoum
2023-09-21 8:18 ` Sascha Hauer [this message]
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=20230921081826.GF637806@pengutronix.de \
--to=sha@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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