#asahi · 2021-01-12 10:30
rwhitbyI can't tell whether you can purchase an assembled board from that site.#asahi · 2021-01-12 09:45
rwhitbyThis FUSB302 board at least has test points for SBU1/SBU2: https://www.pcbway.com/project/shareproject/USB_Type_C_PD_development_board.html#asahi · 2021-01-12 08:36
rwhitbyI wonder what a "Gigalocker" is.#asahi · 2021-01-12 08:19
rwhitby"debug boot arg not present"#asahi · 2021-01-12 08:19
rwhitbyright#asahi · 2021-01-12 08:18
rwhitbyyeah the PD stuff is definitely self-contained on the ACE2 and will operate independently of Darwin#asahi · 2021-01-12 08:15
rwhitbyThis is still the 1.2V serial, right?#asahi · 2021-01-12 08:15
rwhitbycan you through a dump up somewhere for us to see?#asahi · 2021-01-12 08:13
rwhitbyupdates https://github.com/AsahiLinux/docs/wiki/HW:USB-PD with the new info#asahi · 2021-01-12 08:10
rwhitbys/SOP''/SOP''DEBUG/#asahi · 2021-01-12 08:10
rwhitbycause I was doing it as DFP#asahi · 2021-01-12 08:10
rwhitbyah, that explains why when i was testing it on the Intel MBP I needed to use SOP'' and it was different to your doco.#asahi · 2021-01-12 08:09
rwhitbyah, cool.#asahi · 2021-01-12 08:09
rwhitbygive me half an hour and I can get on a zoom or something if you want another set of eyes.#asahi · 2021-01-12 08:07
rwhitbythat's just the normal SOP Discover Modes ?#asahi · 2021-01-12 08:06
rwhitbyI just need to finish doing my actual real job with the M1 mini first :-)#asahi · 2021-01-12 08:05
rwhitbyI can test that out here too#asahi · 2021-01-12 07:28
rwhitbyIn general, I use an interposer which has high speed lanes pass-through (rated to 40Gb/s) and control signals (CC1/CC2/VBUS/GND/SBU1/SBU2) tapped off to a side connector for monitoring or control. Unfortunately it's not commercially available.#asahi · 2021-01-12 07:23
rwhitbymarcan: another option is https://www.nxp.com/downloads/en/schematics/SPF-29705.pdf (https://www.nxp.com/products/interfaces/usb-interfaces/usb-type-c-shield-board-for-kinetis-freedom-and-lpc-boards:OM13588) but it also doesn't break out the SBU signals for you. That board has the PD PHY with which I am most intimately acquainted.#asahi · 2021-01-12 07:19
rwhitbybut in this case you're probably not driving vconn anyway, and don't need to if you stick to passive cables#asahi · 2021-01-12 07:18
rwhitbyyou need to drop vconn too, otherwise cable markers (especially active cables) can get confused#asahi · 2021-01-12 07:17
rwhitbyyeah, sink is probably not going to care too much. tSrcRecover in the spec is min 0.66s#asahi · 2021-01-12 07:15
rwhitbyand hard reset needs at least a 0.6s VBUS at 0v#asahi · 2021-01-12 07:15
rwhitbyyep, if the sink is USB-C connected (Rp/Rd) then it needs to see a source cap within a timeout, else it sends hard reset.#asahi · 2021-01-12 07:14
rwhitbyah, it won't connect if vbus is there before it connects, and then it won't stay connected if vbus doesn't come soon after it connects :-)#asahi · 2021-01-12 07:14
rwhitbyyeah, the sink won't connect without seeing vbus#asahi · 2021-01-12 06:12
rwhitbySaleae Logic Pro easily decodes PD using the custom SDK and some C code.#asahi · 2021-01-12 06:10
rwhitbywon't get it until mid-June I expect#asahi · 2021-01-12 06:09
rwhitbymarcan: BTW, I just ordered a Glasgow :-)#asahi · 2021-01-12 06:07
rwhitbyI love PD decoding using sed.#asahi · 2021-01-12 06:07
rwhitbyholy crap!#asahi · 2021-01-12 05:04
rwhitby(it's annoying they don't have a schematic PDF in their repo, you have to open KiCAD)#asahi · 2021-01-12 05:03
rwhitbyyes, you can't connect UART to SBU1/SBU2#asahi · 2021-01-12 04:08
rwhitbyI also looked at https://github.com/ryan-ma/PD_Micro/blob/master/hardware/PD_Micro_schematic-2020-06-01.pdf to see if it could be flipped around to drive D+/D- but no luck.#asahi · 2021-01-12 04:04
rwhitbytrue, it muxes UART to high speed lanes instead of SBU as needed#asahi · 2021-01-12 04:02
rwhitbymarcan: probably overkill: https://www.crowdsupply.com/f-secure/usb-armory-mk-ii - has TUSB320 and FUSB303#asahi · 2021-01-12 03:59
rwhitby(yeah, but eventually through all those things to the NOR flash?)#asahi · 2021-01-12 03:59
rwhitbymarcan: I've also been looking around to see if there are any off the shelf boards which could be used for PD hacking#asahi · 2021-01-12 03:58
rwhitbyI'm around if you've got any questions about it.#asahi · 2021-01-11 23:07
rwhitbywell, only one of the USB-C mux chips connected to each port is going to be connected to the NOR flash#asahi · 2021-01-11 23:06
rwhitbyyes, see https://support.apple.com/en-gb/guide/apple-configurator-2/apdd5f3c75ad/mac which port for each device#asahi · 2021-01-11 23:04
rwhitbyA M1 Mini in DFU mode will negotiate a full PD contract on both ports. On the DFU port it will stop before entering an alternate mode, and does not advertise TBT3 support. On the other port, it will enter Thunderbolt mode but not engage in LSTX/RX side band data path negotiation.#asahi · 2021-01-11 23:00
rwhitbymarcan: see PM for trace upload#asahi · 2021-01-11 22:56
rwhitbyThis is never an issue when you have a PD controller at each end. But if you're doing this with a bare PHY and vdmtool driving it, then vdmtool will need to do this stuff.#asahi · 2021-01-11 22:55
rwhitby reset loop.#asahi · 2021-01-11 22:55
rwhitbyNote that there are timing constraints that need to be met, otherwise you'll end up with hard reset loops. A source needs to send source caps within a certain time or else the sink will hard reset it. If a sink responds with GoodCRC to a source caps, then it needs to send a request within a certain time or else the source will hard reset it. Getting to a stable contract requires both these conditions being met or else you'll end up in a hard#asahi · 2021-01-11 22:53
rwhitbymarcan: I assume you just want a simple PD contract trace so you can fake being a DFP/source with vdmtool?#asahi · 2021-01-11 22:44
rwhitbymarcan: yes, for dead battery support reasons a macbook will always be a sink/UFP in this type of situation.#asahi · 2021-01-11 11:31
rwhitbyAnd trying to select the flash stick as the startup disk results in "Unable to set startup disk" (SDErrorDomain error 104)#asahi · 2021-01-11 11:30
rwhitbyLooks like there is indeed an issue installing to a flash stick. It seems to complete (the last 1% takes forever), but when it restarts to boot the flash stick it says "The versin of macOS on the selected disk needs to be reinstalled."