#asahi · 2021-12-06 17:41
marcanand I think that unblocks a bunch of stuff; I think the only other thing on the back burner there is cpufreq? though it's not a huge deal now that m1n1 can pre-configure reasonable clocks for the time being#asahi · 2021-12-06 17:41
marcanthe PMGR stuff is just waiting on me sending Arnd a pull with it too#asahi · 2021-12-06 17:40
marcanyup, and I'm going to fire off the t6000 AIC stuff tomorrow which hopefully won't be a big deal either#asahi · 2021-12-06 17:39
marcan(sorry this has dragged on lately... I just cleared most of my IRL backlog)#asahi · 2021-12-06 17:39
marcan(depending on how long it takes me to catch up with kernel stuff on tuesday)#asahi · 2021-12-06 17:39
marcanjmr2: spi one will be tuesday or wednesday if something doesn't NMI me again :)#asahi · 2021-12-06 12:49
marcanyou can have multiple stub partitions and a single shared container (btrfs or something?) for the actual filesystems#asahi · 2021-12-06 12:48
marcannothing stops you from doing that if you really want to, with a filesystem that supports that kind of thing#asahi · 2021-12-06 12:47
marcanyou mean sharing disk space?#asahi · 2021-12-06 10:41
marcanit's equivalent to booting an external installer and just never installing to internal disk#asahi · 2021-12-06 10:41
marcanI expect we'll have it set up so that if there is no bootloader in the internal EFI partition it'll fall back to external by default, so that should work for you#asahi · 2021-12-06 10:35
marcaneven macOS has trouble with this, because the idea of an external OS install you can just take to another machine kind of starts breaking down once you start interacting with per-machine secure elements (SEP, but you'd have the same issue with e.g. TPM-backed FDE on a random PC, obviously that doesn't work for portable installs)#asahi · 2021-12-06 10:34
marcanplus that way you can use the native boot picker#asahi · 2021-12-06 10:34
marcanthis is because there are some things related to user identity management that are tied to the stub, and once we start supporting things like Touch ID it's going to start mattering more#asahi · 2021-12-06 10:34
marcanI would suggest that people have one internal stub per internal distro they want to run, and then either a separate one for external boot or have it as an option on one of the internal ones#asahi · 2021-12-06 10:33
marcanit does somewhat change how you would want to handle such workflows#asahi · 2021-12-06 10:33
marcanso it's rather useless#asahi · 2021-12-06 10:32
marcanso even if you were to set up the stub on an external drive, you wouldn't be able to take it to another machine and plug it in and have it work#asahi · 2021-12-06 10:32
marcanthe thing is you can't make portable external installs anyway, because the BootPolicy is per-machine and always stored on the internal drive#asahi · 2021-12-06 10:32
marcanyou could definitely boot GRUB from the EFI partition and then boot whatever kernel from that though, internal or external#asahi · 2021-12-06 10:31
marcanyes, though the EFI partition would be on the internal drive; u-boot can boot from external drives but we haven't decided how to set that up yet as far as config#asahi · 2021-12-06 07:46
marcanour real installer will only support installing m1n1 to internal disk, at least initially#asahi · 2021-12-06 07:45
marcanzimsneexh: that sounds like a bug in kmutil, but we also don't particularly care because there isn't much point to doing external disk installs since the installer will only require a 2.5GB stub partition on internal storage#asahi · 2021-12-03 14:29
marcan(except that one PCIe read quirk... I need to send that patch out and see if anyone with the actual datasheet knows a magic fix for it)#asahi · 2021-12-03 14:28
marcanif something's broken it's probably broken on other laptops with the same chip :)#asahi · 2021-12-03 14:27
marcanI'd be surprised if some cards work and not others#asahi · 2021-12-03 14:27
marcanthe hardware is standard SDHCI-PCI and uses an existing driver, with only minor patches#asahi · 2021-12-03 14:27
marcansure, though I don't expect much of an issue there#asahi · 2021-12-03 14:22
marcanyou mean for testing?#asahi · 2021-12-03 14:20
marcanyes#asahi · 2021-12-03 13:38
marcanthe progress update will happen (2-month one), probably next week#asahi · 2021-12-03 13:37
marcansven: yeah, I need to look into that again#asahi · 2021-12-02 17:10
marcanthat should also be able to launch safari with a URL properly without hacks#asahi · 2021-12-02 17:10
marcanhttps://stackoverflow.com/questions/2333078/how-to-launch-application-and-bring-it-to-front-using-cocoa-api#asahi · 2021-12-02 17:10
marcanwe're probably going to wind up needing a helper app to do some macos interactions like this anyway, might as well bite the bullet#asahi · 2021-12-02 17:09
marcanhttps://developer.apple.com/documentation/appkit/nsrunningapplication look for activate#asahi · 2021-12-02 17:07
marcankilling the terminal is probably a bad idea, because it'd bring back the recovery menu#asahi · 2021-12-02 17:06
marcanosascript can do that in macos, we could just invoke the relevant APIs ourselves#asahi · 2021-12-02 17:06
marcanmatthewayers[m]: probably, but at that point it would involve writing a helper tool most likely#asahi · 2021-12-02 17:01
marcanonly annoying issue is it spawns behind the terminal#asahi · 2021-12-02 17:01
marcan^^ just use an HTML file#asahi · 2021-12-02 17:00
marcanno picker or anything weird#asahi · 2021-12-02 17:00
marcanif you drop the HTML file in /var/root/Library/Containers/com.apple.Safari/Data/foo.html and open it as Safari foo.html it works#asahi · 2021-12-02 16:59
marcanRetr0id: the file picker is because of the sandbox#asahi · 2021-12-02 16:34
marcanalso it's like 300kB and calls into a pile of frameworks... also I'm pretty sure whatever API it uses is documented#asahi · 2021-12-02 16:34
marcan`which` is your friend#asahi · 2021-12-02 15:30
marcanand I should sleep :)#asahi · 2021-12-02 15:29
marcanoh sure, that works#asahi · 2021-12-02 15:29
marcan(and either way you still need to do a reboot into the new 1TR recoveryOS and run step2.sh, regardless of what initial environment you chose)#asahi · 2021-12-02 15:28
marcanso at least for our normal docs I'll tell people to boot and run our installer from 1TR, since it eliminates that variable