Skip to content

Conversation

@krystian-hebel
Copy link

No description provided.

cardoe and others added 11 commits August 27, 2020 13:20
NOTE: I need some feedback here on how to implement this within the
style of iPXE. I've noticed that there's interfaces but those didn't
seem to line up with moving prep_segment into there nor did any of the
arch directories.

The prep_segment function is called by the elf_load() function and its
job is to ensure that the segment that is about to be loaded can be at
the address it wants to be without trampling existing memory and then
clears BSS. It uses the get_memmap() function which has been disabled on
EFI so this provides an alternative that uses EFI's allocation functions
to ensure that chunk of memory that the segment wants to be loaded at is
available and clears BSS.

Signed-off-by: Doug Goldstein <cardoe at cardoe.com>
This allows elf_load() to return back the load address where this ELF is
being loaded which is necessary for multiboot2 support.

Signed-off-by: Doug Goldstein <cardoe at cardoe.com>
Import the multiboot2 header from GRUB where the official spec for
multiboot2 lives.

Signed-off-by: Jonathan Creekmore <jonathan at thecreekmores.org>
Signed-off-by: Jonathan Creekmore <jonathan at thecreekmores.org>
Add the ability to load multiboot2 images on EFI only at this time. This
has been tested with Xen 4.9 using their multiboot2 support.

Signed-off-by: Jonathan Creekmore <jonathan at thecreekmores.org>
This adds support for probing for multiboot2 images when booting from
EFI.

Signed-off-by: Jonathan Creekmore <jonathan at thecreekmores.org>
Memory information is missing. ELF format is assumed.

Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
This assumes that only the first section of ELF file is to be measured.
LZ should clear the reserved file after reading kernel size.

Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
…call

mb2_bib structure is not yet filled, so it was used to pass that information

Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
@pietrushnic
Copy link
Member

Dasharo#3

@pietrushnic pietrushnic deleted the headers_redesign branch October 25, 2022 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants