#
…

2021-07-19

00:20al3xtjames has quit [Quit: Ping timeout (120 seconds)]
00:43yuyichao has joined #asahi-dev
00:44marcanI mean I briefly worked for a black company :p
01:18chadmedTheLink: working with oss is like doing a coding assignment at uni. you spend two weeks writing something up, submit it, wait another 5 weeks, go in for code review with your assessor. then walk out 2 hours later feeling like you shouldnt be allowed near a computer ever again
01:20chadmedand its always the reviewer not understanding your code thats the problem, not the code itself ;)
02:54phiologe has joined #asahi-dev
02:57PhilippvK has quit [Ping timeout: 480 seconds]
03:44bpye has quit [Quit: The Lounge - https://thelounge.chat]
03:45bpye has joined #asahi-dev
03:45bpye has quit []
03:45bpye has joined #asahi-dev
03:57samfromspace[m] has joined #asahi-dev
04:41phireIs it possible that DCP exists for HDCP reasons? That by moving it to a coprocessor they only need to certify that coprocessor rather than all of macos?
04:52bpye has quit [Quit: The Lounge - https://thelounge.chat]
04:52bpye has joined #asahi-dev
05:15bpye has quit [Quit: The Lounge - https://thelounge.chat]
05:20bpye has joined #asahi-dev
05:32svenfwiw, the secure enclave is also somehow involved in HDCP
05:46svenchadmed: that's surprisingly accurate. except that for me usually the code is also the problem :D
05:52phirewell, you would need a few things involved in HDCP. especially hardware video decoding
06:50marcanyeah, the SEP does some HDCP things
11:53pg12_ has quit [Ping timeout: 480 seconds]
12:12pg12_ has joined #asahi-dev
12:23bps has joined #asahi-dev
13:19chadmed has quit [Quit: Konversation terminated!]
14:02alyssaphire: Oh, that's possible.
14:25King_InuYasha has joined #asahi-dev
15:27jbowen has joined #asahi-dev
18:13PhilippvK has joined #asahi-dev
18:16phiologe has quit [Ping timeout: 480 seconds]
18:26phiologe has joined #asahi-dev
18:29PhilippvK has quit [Ping timeout: 480 seconds]
18:37DanielHuisman[m]Hey, I'm trying to run macOS on the m1n1 hypervisor on a MacBook Pro. It's connected to a laptop running Ubuntu with a USB-C cable. After starting I see the rainbow Apple logo, but nothing else appears to be happening. There are a few lines of logging in the hypervisor, but it quickly halts. I have posted the command I used and logs here: https://hastebin.com/raw/uxelihoqov.
18:38DanielHuisman[m]Additionally, I'm not entirely sure how to see output from the macOS kernel, so basically I have nothing to go on for debugging this issue.
18:41marcanDanielHuisman[m]: you need to open the secondary USB interface with e.g. picocom to see serial output
18:43marcanif you're on Linux, you can add udev rules like these to have it properly identified: https://mrcn.st/p/UKqxUOw2
18:43marcan/dev/m1n1-sec would then be where the xnu serial output goes
18:44marcanif you don't have any active tracers in the hypervisor, it's actually normal for there to be next to no logging; without any tracers, there is very little the hypervisor is doing after all.
18:44marcanif you see a progress bar under the rainbow logo then it's working; if you don't see that then something likely went wrong
18:45DanielHuisman[m]Ah thanks, I will try that.
18:45DanielHuisman[m]There is no progress bar, so yeah something is wrong :p
18:45marcanI actually haven't tried a retail kernel, though I'd hope it would work. I might try that later this week, since I just upgraded to 12.0 and I might not bother with the dev kernel thing if I don't have to
18:46marcanyou can look for a call to #self.patch_exception_handling() in hv.py and uncomment that (it's hacky)
18:46marcanthat will add a nasty exception handler patch which might catch early boot problems for you
18:46marcanterrible idea once things work, since it makes everything super slow
18:47marcanoh also, make sure you have all the bputil security stuff disabled!
18:47marcanI saw someone run into that, they still had KTRR/CTRR enabled
18:47marcanthat will definitely make the kernel panic if not disabled
18:47DanielHuisman[m]I think I have that disabled. I followed the dev guide on the wiki
18:47marcando note that csrutil will re-enable some of those if you run it after bputil
18:48marcananyway, I need to get some sleep, but hope that helps get you somewhere :)
18:49marcanoh yeah, another possibility is that the MBP has extra devtree nodes that need to be removed. broken phandle links in the ADT will make the kernel panic early too
18:49DanielHuisman[m]I hope so, thanks for the pointers
18:49marcanI really should add a consistency checker for that
18:50marcanbasically the hv removes a bunch of nodes for e.g. the USB port it's using, and it has to remove a lot of downstream nodes that depend on them; if the MBP has something the mac mini does not (unsure if it would, I haven't looked) then that could cause a panic if they are left behind
19:28erincandescent has quit [Remote host closed the connection]
19:29erincandescent has joined #asahi-dev
22:58yuyichao has quit [Ping timeout: 480 seconds]
23:09yuyichao has joined #asahi-dev
23:18yuyichao has quit [Ping timeout: 480 seconds]
23:23yuyichao has joined #asahi-dev
…