#
#asahi · 2024-01-05 04:01
kitlithwell, going back to my idea of modifying the boot order in eficonfig, that seems to do the trick for a single boot.
#asahi · 2024-01-05 03:59
tpw_rulesi return to my previous recommendation of back up the ESPs and wipe the stubs
#asahi · 2024-01-05 03:58
tpw_rulesi'm sorry but i think i've about reached the limits of static analysis
#asahi · 2024-01-05 03:56
tpw_rulesyeah it all does
#asahi · 2024-01-05 03:55
kitlithefi-system-partition lines up with partition 9, type lines up with what you would expect from an ESP, boot flag doesn't seem to be shown there
#asahi · 2024-01-05 03:52
kitlithhttps://imgur.com/jh7PBmr partition table with a fdt list of /chosen afterwards
#asahi · 2024-01-05 03:51
tpw_rulesthe fact that the UUIDs are wrong or on the wrong partitions, or the type codes/underlying type UUIDs are wrong
#asahi · 2024-01-05 03:51
tpw_rulesi mean maybe it's a bit presumptuous of me to assume you are fluent in C but really that's what the evidence points to
#asahi · 2024-01-05 03:49
tpw_rulesand the type codes too
#asahi · 2024-01-05 03:48
tpw_rulescan u-boot print the UUIDs somehow, and its bootable flag?
#asahi · 2024-01-05 03:47
tpw_rulesi still think something is not lining up in the partition table
#asahi · 2024-01-05 03:47
kitlithI can try modifying the boot order in eficonfig? looks like all partitions are allowed to be booted to, and in the obvious order.
#asahi · 2024-01-05 03:47
tpw_rulesi guess fw_dev_part didn't get set if the esp was not found
#asahi · 2024-01-05 03:46
tpw_rulesit would be great to see if you can print the BootNNNN variables from u-boot
#asahi · 2024-01-05 03:45
tpw_ruleshm it might not be compiled in
#asahi · 2024-01-05 03:45
kitliththere's an eficonfig, but no efidebug
#asahi · 2024-01-05 03:43
tpw_rulescan you look at the efi variables with efidebug
#asahi · 2024-01-05 03:42
tpw_rulesthe efi boot manager handles that
#asahi · 2024-01-05 03:42
tpw_ruleshttps://github.com/AsahiLinux/u-boot/blob/71f6d0feb47836614752a0e30a1b7339b9e15656/arch/arm/mach-apple/board.c#L826
#asahi · 2024-01-05 03:40
kitlithI also don't see anything in the bootcmds that would indicate it does anything except pull the first matching partition.
#asahi · 2024-01-05 03:39
kitlithhttps://imgur.com/TtHYuOP
#asahi · 2024-01-05 03:36
tpw_rulesis that env var really not there?
#asahi · 2024-01-05 03:35
tpw_rulesok i think that's right
#asahi · 2024-01-05 03:33
kitlith2023.07 (Dec 03 2023)
#asahi · 2024-01-05 03:30
tpw_ruleswhat u-boot version does it print?
#asahi · 2024-01-05 03:27
tpw_ruleshttps://github.com/AsahiLinux/u-boot/blob/71f6d0feb47836614752a0e30a1b7339b9e15656/arch/arm/mach-apple/board.c#L937 the commit you are probably running
#asahi · 2024-01-05 03:27
tpw_ruleshttps://github.com/AsahiLinux/u-boot/blob/75f0cb2074aaffcc13d18f6f6e5ab475550513e1/arch/arm/mach-apple/board.c#L936
#asahi · 2024-01-05 03:26
kitlithnot currently populated, gimme a sec to figure out what populates it.
#asahi · 2024-01-05 03:26
tpw_rulesalso what's the fw_dev_part env variable
#asahi · 2024-01-05 03:25
kitlithI'm gonna double check I'm on the right install rq
#asahi · 2024-01-05 03:24
kitlithBooting: nvme 0:5
#asahi · 2024-01-05 03:23
tpw_ruleswhat if you stop autoboot then do `run boot_efi_bootmgr`?
#asahi · 2024-01-05 03:22
kitliththose are the only log lines after u-boot triggers autoboot aside from the "Device 0: blah blah... is now current device"
#asahi · 2024-01-05 03:21
kitlithgrub is in use, this feels like it's still u-boot, though.
#asahi · 2024-01-05 03:20
tpw_rulesare you using grub?
#asahi · 2024-01-05 03:19
tpw_rulesthe full thing i meant, sorry
#asahi · 2024-01-05 03:19
kitlithscanning nvme 0:5 -- Failed to load '/' -- Booting: nvme 0:5
#asahi · 2024-01-05 03:17
kitlithsec
#asahi · 2024-01-05 03:17
tpw_rulesi'd have to see the log to be sure what you're talking about
#asahi · 2024-01-05 03:17
kitlithyes, they have the EF00 type code.
#asahi · 2024-01-05 03:15
tpw_ruless/gparted/gdisk/
#asahi · 2024-01-05 03:15
tpw_rulesdo your ESPs have the EF00 type code in gparted?
#asahi · 2024-01-05 03:15
kitlithit's weird because that chosen partition is the 9th partition, but u-boot (or something) seems to keep booting the 5th partition (the working Linux install)
#asahi · 2024-01-05 03:13
kitlithyes
#asahi · 2024-01-05 03:13
tpw_rulesthe one you care about is the one that's booting the wrong linux?
#asahi · 2024-01-05 03:13
kitlithI didn't take an image of the second one, but the one I care about does, indeed, correspond to a partition on my disk
#asahi · 2024-01-05 03:11
tpw_rulesi'm not sure, it depends which you're talking about. m1n1 won't put anything on the screen unless it can't find the second copy of itself. but it could also be grub or the kernel
#asahi · 2024-01-05 03:10
kitliththe scanning/booting logs come from u-boot though, right?
#asahi · 2024-01-05 03:10
tpw_rulesand just to be clear, they are both different and also both correspond to the PARTUUID of a partition on your disk
#asahi · 2024-01-05 03:08
tpw_rulesso then it has to be a problem with grub or whichever bootloader you use

plus ›