Grub Development Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enable multiboot2 support on arm64-efi target
@ 2020-10-28 19:45 Chris Plant
  2020-10-28 19:47 ` [PATCH 01/05] " Chris Plant
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Chris Plant @ 2020-10-28 19:45 UTC (permalink / raw)
  To: Grub-devel; +Cc: chris

Hello,

As you may have guessed from my musings on the mailing list to date,
I've been creating a patch to enable the multiboot2 loader on
ARM64/aarch64.

Why?  I am playing with GNU Mach (not sure why - blame COVID-19) on
Raspberry PI.  I guess the key driver for why it's interesting to a
wider audience came from Krystian Hebel - "MB2 is one of the most
commonly used (if not the most common) boot protocols for hobby OSes.",
so I propose we should support it on a platform which in it's various
guises is very easily available to hobby programmers.

As part of this effort, I've also found that definition of "struct
multiboot_tag_elf_sections" does not match the multiboot2 specification
documentation and does not align the elf sections to a 8 byte boundary.
 This causes issues on aarch64 as the 64 bit numbers within the elf
sections are then misaligned throughout.  Although the version of the
structure document in the multiboot2 documentation would align it
correctly, the grub and reference implemntations do not match the
documentation.

Hence, I have created a new struct multiboot_tag_elf64_sections which
is correctly aligned, and also given the next available tag number.  I
have prepared an update to the multiboot2 specification to document
this, which will follow seperately.

This sequence of patches:
01 - Updates multiboot2 definitions to include the new elf64 tag, adds
awareness of the ARCHITECTURE_AARCH64 to multiboot2.
02 - Add relocator code for ARM64, based on MIPS code
03 - Adds mmap_ functions on ARM64 to support multiboot loader 
04 - Adds aarch64 target to the ifdefs in multiboot loader code
05 - Updates Makefile.core.def to compile the multiboot2 loader on the
arm-efi target.

I apologise for any inadvertant breach of ettique in the way these
patches are presented - I'm a bit new to this text patch process but
I've tried my best.

Signed-off-by: Chris Plant <chris@monkeyircd.org>



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

end of thread, other threads:[~2020-10-28 19:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-28 19:45 [PATCH] Enable multiboot2 support on arm64-efi target Chris Plant
2020-10-28 19:47 ` [PATCH 01/05] " Chris Plant
2020-10-28 19:49 ` [PATCH 03/05] " Chris Plant
2020-10-28 19:50 ` [PATCH 04/05] " Chris Plant
2020-10-28 19:51 ` [PATCH 05/05] " Chris Plant
2020-10-28 19:52 ` [PATCH 02/05] " Chris Plant

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