[LOCAL-CI 0/3] Add support for local automated testing

2021-10-28 Thread Glenn Washburn
This patch series aims to make automated testing of all supported targets easy. Not all targets are actually tested for a variety of reasons, but this series covers a significant portion of the target space and should make it easy to add more targets as we figure out how do run their tests. All sup

[LOCAL-CI 1/3] scripts: Add general scripts to aid automated testing

2021-10-28 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- scripts/ci/build.sh | 67 scripts/ci/functions.sh | 33 ++ scripts/ci/make-images.sh | 86 ++ scripts/ci/process-tests.sh | 111 + scripts/ci/test.sh |

[LOCAL-CI 3/3] scripts: Add local-tester.sh script to run local CI tests

2021-10-28 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- scripts/ci/functions.local.sh | 37 + scripts/local-tester.sh | 39 +++ 2 files changed, 76 insertions(+) create mode 100644 scripts/ci/functions.local.sh create mode 100755 scripts/local-tes

Re: [PATCH] fs/btrfs: Make extent item iteration to handle gaps

2021-10-28 Thread Qu Wenruo via Grub-devel
Gentle ping? Without this patch, the new mkfs.btrfs NO_HOLES feature would break any kernel/initramfs with hole in it. And considering the modification is already small, I believe this patch is definitely worthy as a bug fix. Thanks, Qu On 2021/10/16 09:40, Qu Wenruo wrote: [BUG] Grub btr

[LOCAL-CI 2/3] scripts: Add functions for CI stages and default variables to functions.sh

2021-10-28 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- scripts/ci/functions.sh | 899 +++- 1 file changed, 898 insertions(+), 1 deletion(-) diff --git a/scripts/ci/functions.sh b/scripts/ci/functions.sh index 2f4cecaa1..f94f90dc1 100644 --- a/scripts/ci/functions.sh +++ b/scripts/

Re: [PATCH] fs/btrfs: Make extent item iteration to handle gaps

2021-10-28 Thread Michael Chang via Grub-devel
On Thu, Oct 28, 2021 at 03:36:10PM +0800, The development of GNU GRUB wrote: > Gentle ping? > > Without this patch, the new mkfs.btrfs NO_HOLES feature would break any > kernel/initramfs with hole in it. > > And considering the modification is already small, I believe this patch is > definitely w

[PATCH v2] fs/btrfs: Make extent item iteration to handle gaps

2021-10-28 Thread Qu Wenruo via Grub-devel
[BUG] Grub btrfs implementation can't handle two very basic btrfs file layouts: 1. Mixed inline/regualr extents # mkfs.btrfs -f test.img # mount test.img /mnt/btrfs # xfs_io -f -c "pwrite 0 1k" -c "sync" -c "falloc 0 4k" \ -c "pwrite 4k 4k" /mnt/btrfs/file # umount /mnt/

Re: [PATCH] fs/btrfs: Make extent item iteration to handle gaps

2021-10-28 Thread Qu Wenruo
On 2021/10/28 17:27, Michael Chang wrote: On Thu, Oct 28, 2021 at 03:36:10PM +0800, The development of GNU GRUB wrote: Gentle ping? Without this patch, the new mkfs.btrfs NO_HOLES feature would break any kernel/initramfs with hole in it. And considering the modification is already small, I b

[PATCH] Drop gnulib fix-base64.patch

2021-10-28 Thread Robbie Harwood
Originally added in 9fbdec2f6b4fa8b549daa4d49134d1fe89d95ef9 and subsequently modified in 552c9fd08122a3036c724ce96dfe68aa2f75705f, fix-base64.patch handled two problems we have using gnulib, which are exerciesd by the base64 module but not directly caused by it. First, grub2 defines its own bool

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

2021-10-28 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

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

2021-10-28 Thread Nikita Ermakov
Hello, This is the third version of the patch series. In v3 the series was rebased on top of the master branch. This series contains patches to add support for LoadFile2 protocol to load initrd on EFI systems. Also it contains patches to load Linux kernel with EFI stub on riscv platforms and unit

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

2021-10-28 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 v3 1/7] loader: drop argv[] argument in grub_initrd_load()

2021-10-28 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 v3 4/7] linux: ignore FDT unless we need to modify it

2021-10-28 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 v3 2/7] efi: add definition of LoadFile2 protocol

2021-10-28 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 v3 7/7] RISC-V: Use common linux loader

2021-10-28 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 v3 6/7] RISC-V: Update image header

2021-10-28 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,

Re: [PATCH 0/6] Fix some Coverity low-hanging bugs

2021-10-28 Thread Daniel Kiper
On Tue, Oct 26, 2021 at 03:02:34PM +, Darren Kenny wrote: > Coverity has flagged a number of small issues that should be fixed to help in > cleaning up the code - these here are primarily memory leaks or uninitialized > variables. > > In theory leaked memory is significant, but for short-lived

Re: [External] : Re: [SPECIFICATION RFC v3] The firmware and bootloader log specification

2021-10-28 Thread Alec Brown
On Tue, Sep 21, 2021 at 03:07:25PM -0700, Julius Werner wrote: > > Since it doesn't seem possible to have each boot component using the same > > log > > format, we added a log_format and log_phys_addr fields to give flexibility > > in > > how logs are stored. An example of a different log format

Re: [PATCH v3 0/7] Add LoadFile2 and riscv Linux loader

2021-10-28 Thread Heinrich Schuchardt
On 10/28/21 22:31, Nikita Ermakov wrote: Hello, This is the third version of the patch series. In v3 the series was rebased on top of the master branch. This series contains patches to add support for LoadFile2 protocol to load initrd on EFI systems. Also it contains patches to load Linux kerne