#
#asahi · 2023-08-21 06:55
svenyeah
#asahi · 2023-08-21 06:55
svenohhhh
#asahi · 2023-08-21 06:55
marcanno I mean
#asahi · 2023-08-21 06:55
svenI haven’t seen xnu send any patches
#asahi · 2023-08-21 06:55
marcanno, we do it in m1n1
#asahi · 2023-08-21 06:55
svenhmm… then iboot already has to do that
#asahi · 2023-08-21 06:55
marcan(basically it boots in "DFU" mode)
#asahi · 2023-08-21 06:55
marcanso I think initially it runs from ROM only, that's how they implement the relative recoverability/safety
#asahi · 2023-08-21 06:55
sven(fun story: if you used to google cd321x google would ask if you meant tps6598x before that was widely known :D)
#asahi · 2023-08-21 06:54
marcanfirmware is in flash but xnu commands the patch load I think
#asahi · 2023-08-21 06:54
nicolas17right, but it's not "iBoot loads firmware on boot" like others
#asahi · 2023-08-21 06:54
svenI assume the rom is already apple specific though since the chip is rebranded as apple cd321x anyway
#asahi · 2023-08-21 06:53
svennicolas17: rom + patches on top of that in some flash
#asahi · 2023-08-21 06:53
svenand I couldn’t find any memory read command
#asahi · 2023-08-21 06:53
svenbut those are only patches
#asahi · 2023-08-21 06:53
sveni think I know how the update works
#asahi · 2023-08-21 06:53
nicolas17that's in ROM in the chip itself?
#asahi · 2023-08-21 06:53
svenfrom what I know everyone reimplements TI’s firmware anyway because it apparently sucks :D
#asahi · 2023-08-21 06:52
svenyeah
#asahi · 2023-08-21 06:52
marcanbut story for another day
#asahi · 2023-08-21 06:52
svenso I’d have to look at the firmware
#asahi · 2023-08-21 06:52
marcanso if it comes to that we can probably go full RE on this mess and see what's possible
#asahi · 2023-08-21 06:52
svenbut again, maybe new commands in the usb4 variant
#asahi · 2023-08-21 06:52
marcanI think someone managed to do it
#asahi · 2023-08-21 06:52
marcanI think it *is* possible to grab the firmware out of these things, but it probably needs swd shenanigans
#asahi · 2023-08-21 06:52
sveni couldn’t configure any priorities (also Not implemented)
#asahi · 2023-08-21 06:52
marcansigh
#asahi · 2023-08-21 06:51
svenif tipd does that I have no idea how to to work around it
#asahi · 2023-08-21 06:51
marcanfriend still has a monitor that goes straight into 4-lane DP+USB2 which is ridiculous (on macOS)
#asahi · 2023-08-21 06:51
nicolas17tipd = TI (company) USB-PD?
#asahi · 2023-08-21 06:51
sven“please just use the goshen ridge ridge reference design or talk to your account manager” 🙄
#asahi · 2023-08-21 06:51
marcandid we ever figure out if they manage to not screw up negotiation for DP+USB3 modes?
#asahi · 2023-08-21 06:51
svenbut then again, this thing is likely based on newer tipd chups and TI really didn’t want to give me any datasheets
#asahi · 2023-08-21 06:50
marcanlovely
#asahi · 2023-08-21 06:50
sventhe control commands from that tps6598x aren’t implemented
#asahi · 2023-08-21 06:50
marcanshould be easy to iterate the ports and find the first output and call it the boot display then
#asahi · 2023-08-21 06:50
svenfrom what I can tell you can’t even control it
#asahi · 2023-08-21 06:50
svenpretty Much
#asahi · 2023-08-21 06:50
marcanso we just have to query it to see if it found any?
#asahi · 2023-08-21 06:50
svenyes
#asahi · 2023-08-21 06:50
marcantipd in general sets up the alt modes by itself, right?
#asahi · 2023-08-21 06:49
svenmost of the pain comes from hotplug and interaction with dwc3 and thunderbolt
#asahi · 2023-08-21 06:49
svenyeaj
#asahi · 2023-08-21 06:49
svenit’s not *that* bad
#asahi · 2023-08-21 06:49
marcanbut it shouldn't be too painful given we're not dealing with linux and hotplug right?
#asahi · 2023-08-21 06:49
nicolas17sven: "can't tell you what's my source or it would go away, Craig Federighi would change his home locks and stuff" (that's what I said when people asked me where I got watchOS ipsws)
#asahi · 2023-08-21 06:49
svenso essentially you need to talk to tipd and dptx and then do the setup
#asahi · 2023-08-21 06:48
marcanright
#asahi · 2023-08-21 06:48
svensince the setup depends on link rate and orientation, etc.
#asahi · 2023-08-21 06:48
marcanI mean obviously it works on laptops for the disp0 output at *least*

plus ›