#
✕ nick:tpw_rules
#asahi-dev · 2022-03-15 16:48
tpw_rules(and the kmutil m1n1 was installed with the installer's UEFI environment option)
#asahi-dev · 2022-03-15 16:47
tpw_rulesyes. the m1n1 on gpt did not have any payloads
#asahi-dev · 2022-03-15 16:44
tpw_rulesmarcan: i ran into an issue yesterday where an m1n1 chainloaded from disk could not access the ADT from the hypervisor run_guest script; the size was reported as 0. can you test that? it would be good to have fixed before lots of people stick an m1n1 in with kmutil that's broken
#asahi-dev · 2022-03-15 16:20
tpw_rulesi might have one, how can i double check under linux?
#asahi-dev · 2022-03-15 13:45
tpw_rulesah ok
#asahi-dev · 2022-03-15 13:44
tpw_rulesmarcan: i never had problems with rust on my 16k kernel
#asahi-dev · 2022-03-15 04:57
tpw_rulesokay, cool
#asahi-dev · 2022-03-15 04:55
tpw_rules(also it would be cool if it were lower case)
#asahi-dev · 2022-03-15 04:53
tpw_rulesmarcan: has the ESP property made it into a released version of m1n1 yet? i don't see it on my system
#asahi-dev · 2022-03-13 23:56
tpw_rulesi was hoping to be able at some point do /dev/disk/by-partuuid/`cat /proc/device-tree/...` which means it imo should be lower case
#asahi-dev · 2022-03-13 22:46
tpw_ruleshttps://www.itu.int/rec/dologin_pub.asp?lang=e&id=T-REC-X.667-201210-I!!PDF-E&type=items "6.5.4 Software generating the hexadecimal representation of a UUID shall not use upper case letters"
#asahi-dev · 2022-03-13 22:46
tpw_rulesthey are lower case in /dev/disk/by-partuuid/ too, that's how they should be imo. don't think i've ever seen an upper case UUID
#asahi-dev · 2022-03-12 17:37
tpw_rulesi wonder if extlinux.conf support could be put in m1n1...
#asahi-dev · 2022-03-03 14:53
tpw_rulesdo you need a drink water bot in your stream
#asahi-dev · 2022-03-01 18:17
tpw_ruleslike i said it was a hack. be sure to fix BUILD.gn though
#asahi-dev · 2022-03-01 18:17
tpw_ruleslast i checked the built chromium only worked with the flags --in-process-gpu --no-sandbox --no-zygote but that may have been a kernel config problem
#asahi-dev · 2022-03-01 18:17
tpw_ruleshttps://pastebin.com/NzJEQJDW
#asahi-dev · 2022-03-01 18:16
tpw_rulesah ok
#asahi-dev · 2022-03-01 18:15
tpw_rulesdid you see my original hack patch?
#asahi-dev · 2022-03-01 18:14
tpw_rulesit's relatively simple with nix. i can test it if you like. it took about 2.5 hours on the mini iirc
#asahi-dev · 2022-03-01 17:19
tpw_rulesokay. i think libunwind is optional for x
#asahi-dev · 2022-03-01 17:17
tpw_rulesdoes alarm link libunwind with stuff? it has the broken version. on nixos it breaks x and a bunch of graphical stuff
#asahi-dev · 2022-03-01 17:16
tpw_ruleslibunwind
#asahi-dev · 2022-02-28 16:51
tpw_rulesyeah, that's exactly how you do it
#asahi-dev · 2022-02-20 20:41
tpw_rulesthe distro_bootcmds script doesn't really have anything to do with that
#asahi-dev · 2022-02-20 20:41
tpw_rulesyes, the segment of code i posted is what identifies the ESP that houses the variables
#asahi-dev · 2022-02-20 19:00
tpw_rulesyeah, i've been eying that too (and talking with the person behind it a lot)
#asahi-dev · 2022-02-20 18:48
tpw_rulesit just always does the first one
#asahi-dev · 2022-02-20 18:48
tpw_rulesworth nothing also that u-boot doesn't seem to offer an interface to select between different items in the BootOrder
#asahi-dev · 2022-02-20 18:42
tpw_rulesthat might actually be a problem
#asahi-dev · 2022-02-20 18:37
tpw_rulesthe efi boot manager
#asahi-dev · 2022-02-20 18:37
tpw_rulesit happens when distro_bootcmd tries to run the boot manager
#asahi-dev · 2022-02-20 18:36
tpw_rulesindependent of the scanning in distro_bootcmd
#asahi-dev · 2022-02-20 18:36
tpw_rulesu-boot's efi stuff already scans all the devices and partitions to locate an ESP and build the UEFI tables of devices
#asahi-dev · 2022-02-20 18:35
tpw_rulesyou would just have to modify here: https://github.com/u-boot/u-boot/blob/693650b15d04cd5a5861bd3136c9ed9e23f95c41/lib/efi_loader/efi_disk.c#L474 to check the UUID
#asahi-dev · 2022-02-20 18:33
tpw_rulesbut it already does that
#asahi-dev · 2022-02-20 18:28
tpw_rulesjust write the EFI device path to the vars file
#asahi-dev · 2022-02-20 18:28
tpw_ruleshm? you don't need to
#asahi-dev · 2022-02-20 18:26
tpw_ruleswhich is not controlled by the distro bootcmds
#asahi-dev · 2022-02-20 18:26
tpw_rulesok. so u-boot could also just use that to pick an ESP that it tries to read its variables from
#asahi-dev · 2022-02-20 18:22
tpw_rulesjannau: how would you plan to tell u-boot about the blessed ESP?
#asahi-dev · 2022-02-20 18:20
tpw_ruleslike it will read the efi variables off the first ESP it finds, which brings us back to the original problem, right?
#asahi-dev · 2022-02-20 18:15
tpw_rulesbut actually, wouldn't pre-seeding EFI variables require a specific ESP?
#asahi-dev · 2022-02-20 18:11
tpw_rulesi did some testing with efidebug and it looks like writing ubootefi.var will work
#asahi-dev · 2022-02-20 17:41
tpw_rulesrefind seems to work well
#asahi-dev · 2022-02-20 17:39
tpw_rulesit seems to save something as there is a mysterious "ubootefi.var" file on my ESP
#asahi-dev · 2022-02-20 17:13
tpw_rulesif the goal behind having multiple ESPs is to have multiple linuces on the same machine, then i think one ESP + rEFInd in the fallback boot path is better
#asahi-dev · 2022-02-20 17:12
tpw_rulesyeah
#asahi-dev · 2022-02-20 17:05
tpw_rulesat the risk of making the boot process even more ludicrous, rEFInd will let you select multiple boot options from one ESP without having to persist anything
#asahi-dev · 2022-02-20 16:58
tpw_rulesimo the asahi installer should have a base option of making free space on the disk and installing m1n1 + u-boot. then have a separate section where it will optionally create an ESP and rootfs and download a few pre-canned images to it. otherwise, you put an iso on a flash drive or so and boot off that

plus ›