2021-07-28
00:09kettenis_ has joined #asahi
00:11kettenis has quit [Ping timeout: 480 seconds]
01:48yuyichao_ has joined #asahi
02:32phiologe has joined #asahi
02:35PhilippvK has quit [Ping timeout: 480 seconds]
04:17amwhablerentand[m]: I just uploaded a photo of my console kernel messages with the USB keyboard plugged in through a USB Type-C=>A 4 port hub https://raw.githubusercontent.com/amworsley/asahi-wiki/main/images/USB-keyboard-boot.png
05:14bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:30quarkyalice has joined #asahi
06:20hell__hablerentand[m]: most likely unrelated, but: judging by the timestamp of the `random: crng init done` log line, looks like your machine is short on entropy
06:34quarkyalice has quit [Ping timeout: 480 seconds]
06:39quarkyalice__ has joined #asahi
06:49alicela1n has quit [Quit: Reconnecting]
06:49alicela1n has joined #asahi
08:26akemin_dayo has quit [Ping timeout: 480 seconds]
09:03akemin_dayo has joined #asahi
09:40Namidairo has quit [Ping timeout: 480 seconds]
09:41aleasto has joined #asahi
12:12bisko has joined #asahi
12:39Namidairo has joined #asahi
12:40Namidairo has quit []
12:40Namidairo has joined #asahi
12:51hashcheck has joined #asahi
12:55yuyichao_ has quit [Ping timeout: 480 seconds]
13:06alyssaIncidentally, init=/bin/sh was broken for me, didn't investigate why. assuming it was spamming UART instead of onscreen
13:07alyssaM1N1DEVICE=/dev/ttyACM0 python3 proxyclient/tools/linux.py --bootargs="net.ifnames=0 rw root=/dev/sda2 rootwait rootfstype=ext4" ~/foo/Image.gz ~/foo/t8103-j274.dtb
13:07alyssa`rw root=/dev/sda2 rootwait rootfstype=ext4` is to boot off usb, you'll need to adjust for your own partition alayout. in my case /dev/sda1 contains a kernel for a chromebook ;)
13:27alyssaWhen I use Debian-built kernels I use the Debian initrd since things break otherwise, when I build my own kernel I don't use an initrd since I inevitably screw it up when rebuilding
13:31yuyichao_ has joined #asahi
13:31hashcheck has quit [Quit: Textual IRC Client: www.textualapp.com]
13:40bradfier_ has joined #asahi
13:40bradfier has quit [Remote host closed the connection]
13:41yuyichao_ has quit [Ping timeout: 480 seconds]
15:59svenhttps://github.com/AsahiLinux/linux/commits/asc/dev not happy yet, but it's a start. this should be enough to bring up ANS at least
16:00sven(and to see [ 4.520198] apple-mailbox 23e400000.mbox: syslog message: apComms.cpp:372: SMC HID Event: 01 01 01 whenever you press the power button :D)
16:01sven[ 131.139246] apple-mailbox 23e400000.mbox: syslog message: apComms.cpp:372: SMC HID Event: 01 fe 01
16:01pipcet[m]I've been meaning to write code for the lid switch (which works the same way on the MBP)
16:05pipcet[m]have you tried setting your device on fire? It might be for high temperature conditions!
16:06pipcet[m]I've, uh, "tested" high temperature conditions by forgetting I was compiling stuff and putting my MBP back in the bag...
16:06tbodt has quit [Ping timeout: 480 seconds]
16:07sven0x20 is called "ans2" and 0x21 is called "smc". no traffic on either of them when tracing under the hv yet
16:07Z750 has quit [Ping timeout: 480 seconds]
16:07Simonx22 has quit [Ping timeout: 480 seconds]
16:12tbodt has joined #asahi
16:13Z750 has joined #asahi
16:13jackhill has quit [Ping timeout: 480 seconds]
16:15jackhill has joined #asahi
16:15Andalu30 has joined #asahi
16:19pipcet[m]weird memory accesses that are probably never used for MMIO space, but are used for DMA memory
16:27sventhe code still has some rough edges that i'm not totally happy with but it seems to work for both ANS and SMC
16:30pipcet[m]that would be wonderful, at some point we're going to figure out how to make that thing produce audio :-)
16:31svengrep -lr RTKit /System/Volumes/Preboot/*/boot/*/usr/standalone/firmware/FUD/ results in SIO, ISP, AVE, DCP, AOP, ANE, GFX, DCP2 (???) and PMP
17:22Orsira has joined #asahi
17:26Orsira has quit [Remote host closed the connection]
17:26tomtastic_ has quit [Remote host closed the connection]
17:29marcanso perhaps there is a variant protocol for ASC-to-ASC where they each write to each other's mailbox only in the input direction
17:30tomtastic has joined #asahi
17:32marcansven: ANS is missing because it would be loaded from the iBoot1 blob and, unlike most everything else, actually has a stable ABI
17:33marcanso that thing must have a way of at least doing glitchess firmware reloads for iBoot framebuffer states
17:33svenSMC is weird btw., it exposes shared memory over the MMIO bus (with the nonposted requirements and everything)
17:36svenlooks like the ANS firmware has a "smc_to_ans" string. so maybe it actually talks to the smc directly
17:37alyssaand if not is there a way for eg m1n1 to load patched firmware (or would we have to futz with the preboot partition and break dual boot)
17:40quarkyalice has joined #asahi
17:41marcanI think the intent is that iBoot locks them in RAM, so we're not supposed to be able to modify them
17:43svenfwiw, i haven't been able to reset the ANS, even though there's code in some kext that allegedly does just that
17:45sveni've only managed to crash it by doing what mac os calls "sending a NMI" (makes sense :D), by sending invalid commands (who wouldn't panic there?!) and by telling to switch to a power state it's already in
18:10roxfan has joined #asahi
18:11pipcet[m]when macOS crashes hard enough (or I enter the hypervisor), the clickpad on the MBP stops clicking. It's the weirdest thing.
18:11quarkyalice has quit [Ping timeout: 480 seconds]
18:16alyssapipcet[m]: haptic feedback controlled in software so the user can configure the clickiness
18:16roxfan2 has quit [Ping timeout: 480 seconds]
18:20reillyeon has quit [Remote host closed the connection]
18:21reillyeon has joined #asahi
18:24quarkyalice has joined #asahi
18:35quarkyalice has quit [Ping timeout: 480 seconds]
18:51yuyichao_ has joined #asahi
19:01Orsira has joined #asahi
19:02Andalu30 has quit [Remote host closed the connection]
19:02kit_ty_kate1 has quit [Quit: WeeChat 2.9]
19:02Orsira has quit [Remote host closed the connection]
19:26svenfrom what i can tell ANS receives messages on endpoint 0x20 but replies to them using a different mechanism on endpoint 0x21
19:46aleasto has quit [Remote host closed the connection]
19:52bsandro has left #asahi [#asahi]
20:27svenfirst i need to clean up the quirks/fixes required to the nvme core. and then i'll have to figure out with arnd how to submit this
23:15MTecknology has joined #asahi
23:24MTecknologyI'm struggling to follow a lot of what I'm reading. Is Asahi Linux intended to be strictly developer-focused (deal with the nitty gritty stuff), with distros being responsible for making installation easy for users?
23:25alyssaIn the medium term. marcan has talked about maintaining an arch linux arm downstream with all the M1 patches
23:25MTecknologyah, that would be nifty
23:25alyssaIn the short term, asahi is just a bunch of patches to linux and mesa, installing the full system is left as an exercise.
23:26alyssaPersonally I've been running debian from a manual debootstrap (i.e. no debian-installer) for years since arm64 is hard
23:28MTecknologyI got my first ever mac device today. I'm still trying to wade through the documentation and figure out what's even sane.
23:28MTecknologyTIL an alarming number of people think virtualizing (parallels) means "bare metal"
23:29MTecknologyI'm a Debian Dev... our sanity is questionable
23:29MTecknology(at best)
23:36MTecknologyMy actual main driver is a laptop, so I can handle a bit of risk on my desktop (which /was/ a razer laptop stuffed into a large desktop case and filled with fans).
23:38MTecknologyI'm failing to find anything about debootstrap on mac. Are you describing a gentoo-style install from a live cd?
23:41pipcet[m]hi! my debootstrap stuff is currently broken, I'm afraid, if you're looking at that. You can install debian from it, I'm pretty sure.
23:45alyssa....Wait, right now I'm playing music from the m1 and compiling code on the chromebook. this seems horribly backwards, I really need to daily drive asahi :p
23:45MTecknologyThis is going to be a strange effort just to have a quieter gaming system. :P
23:45pipcet[m]it is backwards, I'm using the M1 for everything but music since I can't figure out how to get audio working :-)
23:47alyssaI mean. Obviously need to r/e the SoC sound stuff and write a driver. But in the mean time, type-C to 3.5 mm adaptors are like $10 at bestbuy
23:48MTecknologyTo start playing with this, do I need to follow all of the dev docs so that I can replicate it here?