Devon Bautista

Results 11 comments of Devon Bautista

I can extend that this exact situation happens on my Artix (systemd-less Arch) installation, but not on my Arch installation.

After some further digging, it seems that u-root is trying to add the `ldd` dependencies of the `/bbin/bb` it adds to the archive, so the _original_ path (`"$TMPDIR"/base/bbin/bb`) is included...

After further testing, it seems that ldd already successfully detects that `bb` is statically linked (to answer @GanShun's question [here](https://github.com/u-root/u-root/pull/1931#pullrequestreview-584400818)). The issue occurs when there are symlinks to `bb` (e.g....

The checkout is clean except for a small change made manually in `modules/linuxboot` that changes `$$CPUS` to ~~`$$(CPUS)`~~ `$(CPUS)` on line 24 (addressed in #845).

@tlaurion: > Can somebody post a clean working PR adressing pinning of linuxboot to a commit ID and patches under patches directory as addressed in #845 and state for which...

I suspected it might have something to do with telling the kernel where the initramfs is loaded [here](https://github.com/linuxboot/linuxboot/blob/main/dxe/linuxboot.c#L289-L291) in `dxe/linuxboot.c`: ``` uintptr_t hdr = (uintptr_t) loaded_image->ImageBase; *(uint32_t*)(hdr + 0x218) =...

What about kernels before 5.8 (I'm using 4.14.62)? The Linuxboot DXE is already loading the initramfs and pointing the kernel header to it (the code block I referenced) like a...

@rminnich Sorry, I realize that my initial comment was ambiguous and I have reworded it. I'm specifying `INITRD=` as an argument to `make`, not as a kernel parameter.

Looks like the kernel still needs the `EFI_BDS` patch so that `boot_params->hdr.ramdisk_image` doesn't get overwritten to `NULL`. For 4.14.62: ``` diff -u --recursive ../../clean/linux-4.14.62/arch/x86/boot/compressed/eboot.c linux-4.14.62/arch/x86/boot/compressed/eboot.c --- ../../clean/linux-4.14.62/arch/x86/boot/compressed/eboot.c 2018-08-09 06:16:40.000000000 -0400...

Perhaps Linuxboot could support the newer EFI stub v1.0 which finds and load the initrd which is exposed via the LoadFile2 protocol?