mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: support booting arbitrary ELF executables
@ 2023-09-13 12:57 Ahmad Fatoum
  2023-09-13 12:57 ` [PATCH 1/3] common: elf: support loading to address 0 Ahmad Fatoum
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ahmad Fatoum @ 2023-09-13 12:57 UTC (permalink / raw)
  To: barebox

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

 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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-21  8:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-13 12:57 [PATCH 0/3] ARM: support booting arbitrary ELF executables 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 ` [PATCH 0/3] ARM: support booting arbitrary ELF executables Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox