#asahi-dev · 2024-02-13 23:37
nicolas17PE32+ executable (EFI application) Aarch64 (stripped to external PDB), for MS Windows#asahi-dev · 2024-02-13 23:35
nicolas17gzipping it doesn't help#asahi-dev · 2024-02-13 23:35
nicolas17j`ey: I tried copying /boot/vmlinuz-6.6.3-413.asahi.fc39.aarch64+16k from Fedora Asahi to my other computer and booting that with run_guest_kernel.sh, it throws "ERROR: Devicetree found but no kernel."#asahi-dev · 2024-02-13 19:05
j`eygood luck!#asahi-dev · 2024-02-13 19:05
buroaThose were my two blockers. So really, thanks again#asahi-dev · 2024-02-13 19:04
buroaI'll let you know if I get this booted up :-)#asahi-dev · 2024-02-13 19:04
buroaThanks for everyone's help here!#asahi-dev · 2024-02-13 19:02
jannegremember to compress u-boot with gzip. that is mandatory since m1n1 can't determine size of the u-boot binary#asahi-dev · 2024-02-13 19:00
buroaSiiiimple#asahi-dev · 2024-02-13 19:00
buroaAhh! Just cat them all together!#asahi-dev · 2024-02-13 18:59
j`eyburoa: see the update-m1n1 script#asahi-dev · 2024-02-13 18:59
buroaThere are multiple dtbs though, how do I make one unified u-boot.bin with them?#asahi-dev · 2024-02-13 18:58
buroa./usr/install/arm64/dtb/apple#asahi-dev · 2024-02-13 18:58
j`eyno, the dtbs go in the m1n1+uboot image#asahi-dev · 2024-02-13 18:58
zzywysmdtbs get cat-ted in, in between m1n1 and u-boot#asahi-dev · 2024-02-13 18:57
buroaThey do include a dbts folder... do I put them in there?#asahi-dev · 2024-02-13 18:57
buroaTalos does things extra, so I have to craft this a-like. Let me take a look at those.#asahi-dev · 2024-02-13 18:57
zzywysmNixOS does it like this: https://github.com/tpwrules/nixos-apple-silicon/blob/main/apple-silicon-support/modules/boot-m1n1/default.nix#L15#asahi-dev · 2024-02-13 18:56
j`eywe have a script for it!#asahi-dev · 2024-02-13 18:56
j`eytake a look at https://github.com/AsahiLinux/asahi-scripts/blob/main/update-m1n1#asahi-dev · 2024-02-13 18:56
j`eyyup#asahi-dev · 2024-02-13 18:56
buroaSomething like this: cat /m1n1/m1n1.bin ${APPLE_M1_U_BOOT}/u-boot-nodtb.bin?? > /rootfs/apple_m1/u-boot.bin#asahi-dev · 2024-02-13 18:56
buroaAnyways, I'm at the last step, and I have m1n1.bin from previously built stage... I want to include all of the .dtb's somehow (is that possible) for all the systems we support#asahi-dev · 2024-02-13 18:55
buroaYou guys seem smart, lol, so it should make sense :P#asahi-dev · 2024-02-13 18:55
buroaYou can probably follow along here: https://github.com/siderolabs/pkgs/blob/main/u-boot/pkg.yaml#asahi-dev · 2024-02-13 18:55
j`eyyoul probably want to use the downstream uboot fork#asahi-dev · 2024-02-13 18:54
buroaThis is how Talos builds a lot of their u-boot things.#asahi-dev · 2024-02-13 18:54
buroaI see that we have some Apple stuff inside u-boot upstream: https://docs.u-boot.org/en/latest/board/apple/m1.html#image-installation#asahi-dev · 2024-02-13 18:53
buroaIt must do something different with the toolchain.#asahi-dev · 2024-02-13 18:53
buroaI built it exactly how Talos builds the kernel stage, essentially#asahi-dev · 2024-02-13 18:53
buroaAnd I stopped using the base and just depended on the tools. It's complicated#asahi-dev · 2024-02-13 18:53
nicolas17no, how did you get it to build :D#asahi-dev · 2024-02-13 18:53
buroaThat's what I wanted to ask you guys.#asahi-dev · 2024-02-13 18:53
jannegdon't forget the dtbs#asahi-dev · 2024-02-13 18:52
jannegburoa: how?#asahi-dev · 2024-02-13 18:52
buroaLast step: I need to concat m1n1 and u-boot.#asahi-dev · 2024-02-13 18:52
buroaOk, I got it to build.#asahi-dev · 2024-02-13 18:49
janneghttps://github.com/siderolabs/toolchain/blob/591759848fbd0a6b82aa1dbc3bcc9b1aa1b9fdfb/gcc/pkg.yaml#L47 might inadvertently break -nostdinc#asahi-dev · 2024-02-13 18:46
svenat this point it's either something else inside that spec file or a gcc that was somehow patched i think#asahi-dev · 2024-02-13 18:43
jannegand I don't see any gross hacks uin there#asahi-dev · 2024-02-13 18:40
jannegcurrent toolchain repo seems to be https://github.com/siderolabs/toolchain#asahi-dev · 2024-02-13 18:39
zzywysmwhy can't i link musl into these arm64 assembly files?#asahi-dev · 2024-02-13 18:38
svenyeah#asahi-dev · 2024-02-13 18:37
j`eyanyway, not a m1n1 issue :P#asahi-dev · 2024-02-13 18:35
sventhough i guess that repo is archived so maybe it's not used anymore?#asahi-dev · 2024-02-13 18:35
sam_all i know is what i just read from some of the above links and i feel a bit ill#asahi-dev · 2024-02-13 18:34
svendo you know about that script? :D#asahi-dev · 2024-02-13 18:34
sam_not enough!#asahi-dev · 2024-02-13 18:34
svenduct tape and lots of luck? :D#asahi-dev · 2024-02-13 18:34
sam_oh boy it's that script? adjust.sh?