[PATCH v2 0/7] Add LoadFile2 and riscv Linux loader

2021-06-02 Thread Nikita Ermakov
Hello, This is the second version of the patch series. The patch series is almost the same as the previous one except that the Heinrich's suggestions were implemented. This series contains patches to add support for LoadFile2 protocol to load initrd on EFI systems. Also it contains patches to loa

[PATCH v2 1/7] loader: drop argv[] argument in grub_initrd_load()

2021-06-02 Thread Nikita Ermakov
In the case of an error grub_initrd_load() uses argv[] to print the filename that caused the error. It is also possible to obtain the filename from the file handles and there is no need to duplicate that information in argv[], so let's drop it. Signed-off-by: Nikita Ermakov --- grub-core/loader/

[PATCH v2 6/7] RISC-V: Update image header

2021-06-02 Thread Nikita Ermakov
From: Atish Patra Update the RISC-V Linux kernel image headers as per the current header. Reference: /Documentation/riscv/boot-image-header.rst Signed-off-by: Atish Patra --- include/grub/riscv32/linux.h | 15 --- include/grub/riscv64/linux.h | 15 --- 2 files changed,

[PATCH v2 4/7] linux: ignore FDT unless we need to modify it

2021-06-02 Thread Nikita Ermakov
From: Ard Biesheuvel Now that we implemented supported for the LoadFile2 protocol for initrd loading, there is no longer a need to pass the initrd parameters via the device tree. This means there is no longer a reason to update the device tree in the first place, and so we can ignore it entirely.

[PATCH v2 2/7] efi: add definition of LoadFile2 protocol

2021-06-02 Thread Nikita Ermakov
From: Ard Biesheuvel Incorporate the EFI_LOAD_FILE2_PROTOCOL GUID and C types from the UEFI spec. Signed-off-by: Ard Biesheuvel Reviewed-by: Heinrich Schuchardt Signed-off-by: Nikita Ermakov --- grub-core/commands/efi/lsefi.c | 1 + include/grub/efi/api.h | 15 +++ 2 fil

[PATCH v2 7/7] RISC-V: Use common linux loader

2021-06-02 Thread Nikita Ermakov
From: Atish Patra RISC-V doesn't have to do anything very different from other architectures to loader EFI stub linux kernel. As a result, just use the common linux loader instead of defining a RISC-V specific linux loader. Signed-off-by: Atish Patra --- grub-core/Makefile.core.def| 4 +--

[PATCH v2 5/7] loader: Move arm64 linux loader to common code

2021-06-02 Thread Nikita Ermakov
From: Atish Patra ARM64 linux loader code is written in such a way that it can be reused across different architectures without much change. Move it to common code so that RISC-V doesn't have to define a separate loader. Signed-off-by: Atish Patra --- grub-core/Makefile.core.def |

[PATCH v2 3/7] efi: implemented LoadFile2 initrd loading protocol for Linux

2021-06-02 Thread Nikita Ermakov
From: Ard Biesheuvel Recent Linux kernels will invoke the LoadFile2 protocol installed on a well-known vendor media path to load the initrd if it is exposed by the firmware. Using this method is preferred for two reasons: - the Linux kernel is in charge of allocating the memory, and so it can i

Re: [PATCH 1/2] MAINTAINERS: Add MAINTAINERS file

2021-06-02 Thread Paul Menzel
Dear Daniel, Thank you for creating this Am 01.06.21 um 18:13 schrieb Daniel Kiper: The MAINTAINERS file provides basic information about the GRUB project and its maintainers. Signed-off-by: Alex Burmashev Signed-off-by: Vladimir Serbinenko Signed-off-by: Daniel Kiper --- MAINTAINERS | 3

Re: [PATCH 2/2] SECURITY: Add SECURITY file

2021-06-02 Thread Paul Menzel
Dear Daniel, Am 01.06.21 um 18:13 schrieb Daniel Kiper: The SECURITY file describes the GRUB project security policy. It is based on https://github.com/wireapp/wire/blob/master/SECURITY.md Signed-off-by: Alex Burmashev Signed-off-by: Vladimir Serbinenko Signed-off-by: Daniel Kiper --- MA