#
✕ nick:WhyNotHugo
#asahi · 2022-03-23 22:45
WhyNotHugosystemd-stub does not support compressed kernel images. So kernel must be not-compressed.
#asahi · 2022-03-23 21:49
WhyNotHugoDoes u-boot support the EFI_LOAD_IMAGE call?
#asahi · 2022-03-23 21:47
WhyNotHugoGiven that systemd-boot does not support the custom dbt, maybe systemd-stub does not either?
#asahi · 2022-03-23 21:44
WhyNotHugohttps://pasteboard.co/AWcuPO5wdzIq.jpg Same error.
#asahi · 2022-03-23 21:38
WhyNotHugoOh, the stub is still there.
#asahi · 2022-03-23 21:37
WhyNotHugoSo that error is not systemd-boot, sicne I've removed it from the equation -- it does not seem to support Apple's custom dtb format (as per #systemd)
#asahi · 2022-03-23 21:36
WhyNotHugohttps://pasteboard.co/YP1dOR5JiD5A.jpg This I get running my UEFI bundle via u-boot.
#asahi · 2022-03-23 21:35
WhyNotHugoRight, so I'm basically replacing "grub > kernel" with "UEFI bundle".
#asahi · 2022-03-23 21:35
WhyNotHugoSo how does the dtb get passed from m1n1 to the kernel?
#asahi · 2022-03-23 21:34
WhyNotHugoBut m1n1 runs _before_ u-boot, right?
#asahi · 2022-03-23 21:23
WhyNotHugoI think I need ot put the dtb in the initramfs, but not where.
#asahi · 2022-03-23 21:22
WhyNotHugoBasically copying my amd64 setup in that sense :P
#asahi · 2022-03-23 21:22
WhyNotHugomaxung[m]: That's exactly what I'm doing.
#asahi · 2022-03-23 21:16
WhyNotHugomaxung[m]: I generate the initramfs myself (e.g.: pacman hook), but compiling the kernel... I'd rather avoid. Prefer to stick to upstream.
#asahi · 2022-03-23 21:16
WhyNotHugoPretty sure I need to add the dtd too, but I'm not sure how to add it to the bundle here.
#asahi · 2022-03-23 21:15
WhyNotHugoOk, so this issue is the bundle itself: https://pasteboard.co/YP1dOR5JiD5A.jpg
#asahi · 2022-03-23 21:09
WhyNotHugoHmm.. maybe EFISTUB is a safer approach.
#asahi · 2022-03-23 21:07
WhyNotHugo/usr/lib/modules/5.17.0.../dtbs/*.dtb ? owned by package linux-asahi?
#asahi · 2022-03-23 20:58
WhyNotHugoI'm been staring at the screen for a while and can't make this out.
#asahi · 2022-03-23 20:58
WhyNotHugoAre these pipes, or placeholders?
#asahi · 2022-03-23 20:58
WhyNotHugoI can't figure this out: https://github.com/AsahiLinux/docs/wiki/m1n1%3AUser-Guide#configuring-to-boot-linux-directly
#asahi · 2022-03-23 20:24
WhyNotHugomaxung[m]: This is a macbook, so FDE makes more sense (more travelling). Not sure how I'd handle that in a headless system.
#asahi · 2022-03-23 20:23
WhyNotHugoGlanzmann: It's feasible to use `cryptsetup reencrypt` after doing the regular install. That's what I did before I broke my bootloader :P
#asahi · 2022-03-23 20:22
WhyNotHugoIt's nice on amd64 because you can use SecureBoot with that.
#asahi · 2022-03-23 20:21
WhyNotHugo... After this single file, the system can reach a state where it can prompt for the FDE password and finalise startup.
#asahi · 2022-03-23 20:20
WhyNotHugomaxung[m]: It's a single file with the kernel, initrd and cmdline, that gets loaded by the bootloader.
#asahi · 2022-03-23 20:19
WhyNotHugoj`ey: ^
#asahi · 2022-03-23 20:19
WhyNotHugosystemd guys suggest "check with asahi if their EFI supports the EFI_LOAD_IMAGE call". Does u-boot support this?
#asahi · 2022-03-23 20:05
WhyNotHugoj`ey: I tried generating a bundle with sbctl and another with mkinitcpio (one signed the other unsigned). Both same result.
#asahi · 2022-03-23 20:02
WhyNotHugoOh?
#asahi · 2022-03-23 20:00
WhyNotHugoThis is as far as I could get with systemd-boot and a UEFI bundle -> https://pasteboard.co/qYIj2dJKl7Dd.jpg
#asahi · 2022-03-23 19:49
WhyNotHugoj`ey: The what? u-boot has no UEFI variables.
#asahi · 2022-03-23 19:47
WhyNotHugoj`ey: How does u-boot pass it when using grub?
#asahi · 2022-03-23 19:45
WhyNotHugoj`ey: No, completely forgot about the DT. I'm using the initrd that asahi ships by default, is it in there, or in /boot?
#asahi · 2022-03-23 19:10
WhyNotHugohttps://linderud.dev/blog/mkinitcpio-v31-and-uefi-stubs/
#asahi · 2022-03-23 19:09
WhyNotHugoGlanzmann: You can generate abundle with mkinitcpio or sbctl
#asahi · 2022-03-23 19:02
WhyNotHugoI'm trying to get a UEFI bundle to work without any additional/explicit config.
#asahi · 2022-03-23 19:02
WhyNotHugoGlanzmann: Yeah, you see no EFI entries because there's none in the auto-discovery location nor any loader config files.
#asahi · 2022-03-23 19:00
WhyNotHugoNote that they're optional. systemd-boot will pick up any UEFI bundles in EFI/Linux/*.efi.
#asahi · 2022-03-23 18:59
WhyNotHugoGlanzmann: Manually? https://wiki.archlinux.org/title/Systemd-boot#Adding_loaders
#asahi · 2022-03-23 18:57
WhyNotHugoGlanzmann: Yeah, there's no EFI vars. But LoaderSystemToken seems to be for randomness only.
#asahi · 2022-03-23 18:55
WhyNotHugoGlanzmann: Asahi/ArchLinuxARM
#asahi · 2022-03-23 18:54
WhyNotHugoGlanzmann: Yeah, u-boot picks up systemd-bootd, but the latter then errors and fails when loading my bundle.
#asahi · 2022-03-23 18:53
WhyNotHugosystemd-boot fails with `fdt_check_header fdt_err_badmagic`, and I'm not sure if it's the bundle or something is unsupported.
#asahi · 2022-03-23 18:52
WhyNotHugoGlanzmann: Trying to boot with systemd-boot and an UEFI bundle, getting rid of grub.
#asahi · 2022-03-23 18:52
WhyNotHugoI want to understand if I'm doing something wrong or they're unsupported.
#asahi · 2022-03-23 18:51
WhyNotHugoAre UEFI bundles currently known to [not] work...?
#asahi · 2022-03-23 18:21
WhyNotHugoEven long-term it's not clear if there would be a "right place" to store these. The SEP?
#asahi · 2022-03-23 18:20
WhyNotHugonicolas17: Right, I see.
#asahi · 2022-03-23 18:11
WhyNotHugoDoes u-boot not support UEFI variables?

plus ›