ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
al3xtjames has quit [Quit: Ping timeout (120 seconds)]
yuyichao has joined #asahi-dev
<marcan> I mean I briefly worked for a black company :p
<alyssa> ⬛
<chadmed> TheLink: 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
<chadmed> and its always the reviewer not understanding your code thats the problem, not the code itself ;)
phiologe has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
bpye has quit [Quit: The Lounge - https://thelounge.chat]
bpye has joined #asahi-dev
bpye has quit []
bpye has joined #asahi-dev
samfromspace[m] has joined #asahi-dev
<phire> Is 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?
bpye has quit [Quit: The Lounge - https://thelounge.chat]
bpye has joined #asahi-dev
bpye has quit [Quit: The Lounge - https://thelounge.chat]
bpye has joined #asahi-dev
<sven> fwiw, the secure enclave is also somehow involved in HDCP
<sven> chadmed: that's surprisingly accurate. except that for me usually the code is also the problem :D
<phire> well, you would need a few things involved in HDCP. especially hardware video decoding
<marcan> yeah, the SEP does some HDCP things
pg12_ has quit [Ping timeout: 480 seconds]
pg12_ has joined #asahi-dev
bps has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
<alyssa> phire: Oh, that's possible.
King_InuYasha has joined #asahi-dev
jbowen has joined #asahi-dev
PhilippvK has joined #asahi-dev
phiologe has quit [Ping timeout: 480 seconds]
phiologe has joined #asahi-dev
PhilippvK has quit [Ping timeout: 480 seconds]
<DanielHuisman[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.
<DanielHuisman[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.
<marcan> DanielHuisman[m]: you need to open the secondary USB interface with e.g. picocom to see serial output
<marcan> if you're on Linux, you can add udev rules like these to have it properly identified: https://mrcn.st/p/UKqxUOw2
<marcan> /dev/m1n1-sec would then be where the xnu serial output goes
<marcan> if 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.
<marcan> if you see a progress bar under the rainbow logo then it's working; if you don't see that then something likely went wrong
<DanielHuisman[m]> Ah thanks, I will try that.
<DanielHuisman[m]> There is no progress bar, so yeah something is wrong :p
<marcan> I 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
<marcan> you can look for a call to #self.patch_exception_handling() in hv.py and uncomment that (it's hacky)
<marcan> that will add a nasty exception handler patch which might catch early boot problems for you
<marcan> terrible idea once things work, since it makes everything super slow
<marcan> oh also, make sure you have all the bputil security stuff disabled!
<marcan> I saw someone run into that, they still had KTRR/CTRR enabled
<marcan> that will definitely make the kernel panic if not disabled
<DanielHuisman[m]> I think I have that disabled. I followed the dev guide on the wiki
<marcan> do note that csrutil will re-enable some of those if you run it after bputil
<marcan> IIRC
<marcan> anyway, I need to get some sleep, but hope that helps get you somewhere :)
<marcan> oh 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
<DanielHuisman[m]> I hope so, thanks for the pointers
<marcan> I really should add a consistency checker for that
<marcan> basically 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
erincandescent has quit [Remote host closed the connection]
erincandescent has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-dev