#
✕ nick:marcan
#asahi · 2022-03-02 06:20
marcanI'm going to build with just these built-in: CONFIG_ARCH_APPLE / CONFIG_APPLE_WATCHDOG / CONFIG_APPLE_PMGR_PWRSTATE / CONFIG_APPLE_AIC / CONFIG_SERIAL_SAMSUNG
#asahi · 2022-03-02 05:59
marcanlet's see about SMC
#asahi · 2022-03-02 05:59
marcanand that depends on rtkit, so that should also work as a module
#asahi · 2022-03-02 05:55
marcanideally even NVMe should work as a module (in the initramfs), so I'll see if I can get that to work
#asahi · 2022-03-02 05:54
marcanyeah, I expect us to want to build those in, but they should *work* as modules
#asahi · 2022-03-02 05:18
marcanI'm also going to build most of the Apple stuff as modules, just to prove that that works
#asahi · 2022-03-02 05:02
marcan(and also misc changes to align with the desktop usecase)
#asahi · 2022-03-02 05:01
marcan(basically turning on everything Apple, turning off everything else that's platform-specific and not attachable via USB)
#asahi · 2022-03-02 05:01
marcanputting together a proper "distro config" for the asahi kernel now (based on the ALARM kernel config, but with lots of changes)
#asahi · 2022-03-02 03:00
marcanwhich I guess means everything non-USB until we have thunderbolt, at least
#asahi · 2022-03-02 03:00
marcanI need to put together a config that's reasonable for this use case, which basically means the same as a full fat distro kernel minus all the drivers that will never apply
#asahi · 2022-03-02 02:59
marcanthe reference kernel is still an old build, as I said, this is Not Done Yet :p
#asahi · 2022-03-02 02:58
marcankit_ty_kate: https://github.com/AsahiLinux/asahi-alarm-builder
#asahi · 2022-03-01 15:55
marcan23:51:14 <@marcan> oh, also, it only has t8103 DTBs so far...
#asahi · 2022-03-01 15:55
marcanyes
#asahi · 2022-03-01 15:22
marcanoff to dinner
#asahi · 2022-03-01 15:22
marcananyway it should be fixed
#asahi · 2022-03-01 15:21
marcanthat sudo wasn't passing through environment variables
#asahi · 2022-03-01 15:21
marcanthat's what I said
#asahi · 2022-03-01 15:21
marcanI added some more logging
#asahi · 2022-03-01 15:20
marcanj`ey: if the var is not present it defaults to "."
#asahi · 2022-03-01 15:09
marcanj`ey: the thing is the log won't have anything terribly useful for that error
#asahi · 2022-03-01 15:09
marcanbut it could use with more logging
#asahi · 2022-03-01 15:08
marcanit's logging to /tmp/asahi-installer/installer.log
#asahi · 2022-03-01 15:07
marcanok, then I don't know
#asahi · 2022-03-01 15:06
marcandid you get the "The installer needs to run as root." prompt?
#asahi · 2022-03-01 15:05
marcanrun it as root
#asahi · 2022-03-01 15:05
marcanoh wait... bet sudo is filtering environment vars?
#asahi · 2022-03-01 15:05
marcanI'm not entirely sure how that is possible
#asahi · 2022-03-01 15:03
marcanyou need to set REPO_BASE to the base of the OS repo if you're not running it via bootstrap.sh
#asahi · 2022-03-01 15:02
marcan*the installer
#asahi · 2022-03-01 15:02
marcanDavid[m]1234: how are you running the OS?
#asahi · 2022-03-01 15:01
marcan_jannau_: IIRC someone already did that based on rob's dt-only tree
#asahi · 2022-03-01 15:01
marcanj`ey: unless it falls into proxy mode, then it shows the console anyway
#asahi · 2022-03-01 14:55
marcannot sure I want to promise forward-compat there just yet :)
#asahi · 2022-03-01 14:55
marcantoo easy to get into a situation where kboot fails on a new dtb for some reason
#asahi · 2022-03-01 14:55
marcanI don't really want to decouple m1n1 from dtbs just yet, at least for end users
#asahi · 2022-03-01 14:55
marcanand once we have chainloading, it'd still be a separate package since m1n1 will probably need changes for certian dtb changes anyway
#asahi · 2022-03-01 14:54
marcannot much use for that tbh, it's not necessarily the ones I'd want to use for an installer build
#asahi · 2022-03-01 14:53
marcanbut if u-boot is going to keep them updated that works for me
#asahi · 2022-03-01 14:53
marcanand yeah, otherwise it'd be a dtbs repo based on that extracted one from linux plus asahi updates
#asahi · 2022-03-01 14:53
marcanit's trivial
#asahi · 2022-03-01 14:53
marcanI should do it before the release too, I have a few loose kernel ends like that
#asahi · 2022-03-01 14:52
marcantmlind: lid open/close is via an SMC HID event, and yeah, not done yet
#asahi · 2022-03-01 14:52
marcangoing to get some dinner :)
#asahi · 2022-03-01 14:52
marcanalso missing is the ESP selection stuff for u-boot
#asahi · 2022-03-01 14:51
marcanalso, for the m1n1 proxy backdoor: `bputil -a` and `nvram boot-args=-v` from 1TR will enable m1n1 verbose boot and make it wait 5 seconds for a proxy or hv-uart connection (ACM device open), if one happens it breaks into proxy mode, otherwise u-boot
#asahi · 2022-03-01 14:51
marcankettenis: want to add the t6k ones to u-boot, or should I figure out some other repo for this?
#asahi · 2022-03-01 14:51
marcanoh, also, it only has t8103 DTBs so far...
#asahi · 2022-03-01 14:50
marcanstill no macOS resizing / partition sizing logic, and other things are missing, so it's not "done"

plus ›