Re: Multiboot ELF Loader - Alignment

2021-11-04 Thread Chris Plant
On Wed, 2021-11-03 at 17:38 +0100, Daniel Kiper wrote: > On Fri, Oct 29, 2021 at 08:16:36PM +0100, Chris Plant wrote: > > Daniel, > > > > I'm back home now and I have access to my PC again, so I can answer > > more completely. > > > > On Tue,

Re: Multiboot ELF Loader - Alignment

2021-10-29 Thread Chris Plant
Daniel, I'm back home now and I have access to my PC again, so I can answer more completely. On Tue, 2021-10-26 at 14:51 +0100, Chris Plant wrote: > Thanks for the detailed reply, I think I’ve got to the bottom of this > now, I realised what I missed just after I sent this email. &

Re: Multiboot ELF Loader - Alignment

2021-10-26 Thread Chris Plant
Thanks for the detailed reply, I think I’ve got to the bottom of this now, I realised what I missed just after I sent this email. > On 26 Oct 2021, at 13:35, Daniel Kiper wrote: > > Hey, > >> On Thu, Oct 21, 2021 at 08:46:06PM +0100, Chris Plant wrote: >> Hello, >&

Multiboot ELF Loader - Alignment

2021-10-21 Thread Chris Plant
Hello, I'm continuing to play with Multiboot2 on ARM64 on a Raspberry Pi, and I've run into something which I'm trying to understand. I have an ELF file for my kernel which has two segments (I have no idea why rust is giving me two segments, but it is).  If I boot directly into the ELF file from

[PATCH 02/05] Enable multiboot2 support on arm64-efi target

2020-10-28 Thread Chris Plant
Add ARM64 relocator code to support multiboot2 loader Signed-off-by: Chris plant --- grub-core/lib/arm64/relocator.c | 267 grub-core/lib/arm64/relocator_asm.S | 57 ++ include/grub/arm64/relocator.h | 52 ++ 3 files changed, 376 insertions

[PATCH 05/05] Enable multiboot2 support on arm64-efi target

2020-10-28 Thread Chris Plant
Enable multiboot2 support for arm64-efi target Signed-off-by: Chris Plant --- grub-core/Makefile.core.def | 6 ++ 1 file changed, 6 insertions(+) diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def index b5f47fc41..2c0bec83d 100644 --- a/grub-core/Makefile.core.def

[PATCH 04/05] Enable multiboot2 support on arm64-efi target

2020-10-28 Thread Chris Plant
Enable ARM64/aarch64 support in multiboot2 loader Signed-off-by: Chris Plant --- grub-core/loader/multiboot.c | 2 +- grub-core/loader/multiboot_elfxx.c | 2 +- grub-core/loader/multiboot_mbi2.c | 34 +++--- include/grub/arm64/multiboot.h | 56

[PATCH 03/05] Enable multiboot2 support on arm64-efi target

2020-10-28 Thread Chris Plant
Add ARM64 versions of the mmap functions to generate memory map for multiboot2 Signed-off-by: Chris Plant --- grub-core/mmap/arm64/uppermem.c | 72 + include/grub/arm64/memory.h | 60 +++ 2 files changed, 132 insertions(+) create

[PATCH 01/05] Enable multiboot2 support on arm64-efi target

2020-10-28 Thread Chris Plant
Define MULTIBOOT2_ARCHITECTURE_AARCH64 to support AARCH64 architecture + Define MULTIBOOT2_TAG_TYPE_ELF64_SECTIONS and struct multiboot_tag_elf64_sections as a version of elf_sections which correctly aligns the elf section headers to a 64 bit boundary Signed-off-by: Chris Plant --- include

[PATCH] Enable multiboot2 support on arm64-efi target

2020-10-28 Thread Chris Plant
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 ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

Re: Multiboot2 on aarch64: Alignment of ELF Headers

2020-09-26 Thread Chris Plant
On Tue, 2020-09-22 at 07:53 +0100, Chris Plant wrote: > On Tue, 2020-09-22 at 08:33 +0200, Krystian Hebel wrote: > > On 21.09.2020 21:14, Chris Plant wrote: > > > On Sat, 2020-05-23 at 14:33 +0200, Hans Ulrich Niedermann wrote: > > > > On Sat, 23 May 2020 12:21:27

Submit patch/changes for Multiboot Documentation

2020-09-26 Thread Chris Plant
Hello, Might be a stupid question, but how do I submit/propose changes to the multiboot specification itself? Should I just update the texinfo source from the website and attach that to my patch? Thanks, Chris ___ Grub-devel mailing list Grub-devel

Re: Multiboot2 on aarch64: Alignment of ELF Headers

2020-09-21 Thread Chris Plant
On Tue, 2020-09-22 at 08:33 +0200, Krystian Hebel wrote: > On 21.09.2020 21:14, Chris Plant wrote: > > On Sat, 2020-05-23 at 14:33 +0200, Hans Ulrich Niedermann wrote: > > > On Sat, 23 May 2020 12:21:27 +0100 > > > Chris Plant via Grub-devel wrote: > > > >

Re: Multiboot2 on aarch64: Alignment of ELF Headers

2020-09-21 Thread Chris Plant
On Sat, 2020-05-23 at 14:33 +0200, Hans Ulrich Niedermann wrote: > On Sat, 23 May 2020 12:21:27 +0100 > Chris Plant via Grub-devel wrote: > > > On Sat, 2020-05-23 at 12:43 +0200, Hans Ulrich Niedermann wrote: > > > On Fri, 22 May 2020 17:23:35 +0100 > > >

Re: Multiboot2 on aarch64: Alignment of ELF Headers

2020-05-23 Thread Chris Plant via Grub-devel
On Sat, 2020-05-23 at 12:43 +0200, Hans Ulrich Niedermann wrote: > On Fri, 22 May 2020 17:23:35 +0100 > Chris Plant via Grub-devel wrote: > > > I'm continuing to work on Multiboot2 support on aarch64, and I'm > > looking at the alignment of the ELF headers which

Multiboot2 on aarch64: Alignment of ELF Headers

2020-05-22 Thread Chris Plant via Grub-devel
Hi, I'm continuing to work on Multiboot2 support on aarch64, and I'm looking at the alignment of the ELF headers which are passed through MB2. The alignment of the MB2 header's isn't the problem, the problem is in the ELF headers which are linked through. Some of the 8 byte wide fields (specific

Re: Call to grub_file_read fails in grub_multiboot_load_elf64

2020-05-11 Thread Chris Plant via Grub-devel
cpu_relocator code that is required. With regards to the Multiboot2 specification for ARM64, I'll document this within the patch, but it's very similar to the MIPS registers at the moment. Chris On Mon, 2020-05-11 at 16:39 +0200, Daniel Kiper wrote: > Adding Leif and Ard, > > On

Call to grub_file_read fails in grub_multiboot_load_elf64

2020-05-03 Thread Chris Plant via Grub-devel
oesn't seem to change any issue. Does anyone have any experience with the ARM64-EFI target or the multiboot2 code who could help me understand where the issue is? Cheers, Chris Plant ___ Grub-devel mailing list Grub-devel@gnu.org https://lists