30 May 2025 |
ElvishJerricco | basically build the tfa with "BOOT_DEVICE=sdmmc" , write the resulting bl2.img to a partition with the LegacyBIOSBootable GPT flag set, and write the resulting fip.bin to a partition with the GPT label fip | 16:59:00 |
ElvishJerricco | emily: I built the image with repart but it required a patch to repart because libfdisk is dumb. https://gist.github.com/ElvishJerricco/4b005a7235138225cead7205b72570f1 | 17:04:36 |
emily | wait the ROM surely doesn't parse GPT though right? | 17:05:18 |
emily | does it need to be at a specific offset or something? | 17:05:25 |
ElvishJerricco | it does | 17:05:26 |
ElvishJerricco | it parses GPT | 17:05:32 |
emily | wow | 17:05:34 |
emily | I don't know how to feel about that | 17:05:56 |
emily | so I guess you just flashed this image and started using it without a separate install? | 17:06:53 |
emily | or did you use it to boot the installer to RAM? | 17:07:06 |
ElvishJerricco | I did not use it to boot a nixos installer. I just started using it once that image booted. | 17:08:00 |
emily | right | 17:08:13 |
ElvishJerricco | pretty quickly wiped the ESP and just started doing nixos-rebuild --target-host to it though | 17:08:22 |
ElvishJerricco | oh, forgot to mention I cross compile the entire system | 17:08:59 |
emily | wait, what does wiping the ESP have to do with that? | 17:12:48 |
ElvishJerricco | not much; e.g. the UKI should be deleted if nixos is doing its normal systemd-boot stuff | 17:14:37 |
emily | right | 17:14:53 |
emily | why is the UKI there to begin with? | 17:15:00 |
ElvishJerricco | well that's how the image boots | 17:15:08 |
ElvishJerricco | it's a lot easier to just plunk a UKI in the image than it is to perfectly replicate what systemd-boot-builder.py would have done | 17:15:35 |
emily | oh, ew | 17:15:48 |
emily | do we really have no good way to install systemd-boot to an image? | 17:15:58 |
ElvishJerricco | no | 17:16:05 |
ElvishJerricco | (working on it) | 17:16:10 |
ElvishJerricco | I mean you can do the make-disk-image.nix thing but that requires booting a VM to run systemd-boot-builder in the image | 17:16:39 |
ElvishJerricco | I'm working on a more proper "give systemd-boot-builder a root dir argument" solution because I want it for the ISO anyway | 17:17:08 |
emily | do you just repart all your installations instead of using the installer these days? :) | 17:17:31 |
emily | I guess this would have been from when booting the ISO would have been hopeless | 17:17:50 |
ElvishJerricco | depends on if it already has UEFI on it tbh :P | 17:17:54 |
emily | K900: do you just have a full-size M.2 in yours? | 17:21:41 |