#
✕ nick:vafanlignarde
#asahi-dev · 2021-02-03 10:11
vafanlignardemarcan: i see, thanks for the clarification. +1 on what davidrysk[m] wrote, return '1TSC' in GetUnlockKey() works on olders Macs (MacBookAir8,1; MacBookPro14,1; iMac19,1), DBMa does not.
#asahi-dev · 2021-02-03 03:32
vafanlignardefrom the reference manual regarding the LOCK command: https://imgur.com/a/njMfl1d
#asahi-dev · 2021-02-03 03:06
vafanlignardedavidrysk[m]: returning zero from GetUnlockKey() makes the code print "Unlocking: OK". not sure if that means it does succeed in unlocking it or not.. it however fails to both enter and exit 'DBMa' mode on the MacbookAir8,1. I also tried using the board IDs from https://www.theiphonewiki.com/wiki/T8012 as unlock keys with no success.
#asahi-dev · 2021-02-03 02:34
vafanlignardei've looked around but I haven't found anything that comes with both an FUSB302 and the Type-C D+/- or SBU1/2 pins broken out.. but at least those USB-PD triggers and type-c breakout boards are easy (albeit slow) to source
#asahi-dev · 2021-02-03 02:30
vafanlignardedavidrysk[m]: https://git.io/JtBD7 (essentially asahilinux/vdmtool but for an USB-PD trigger device which had an FUSB302 onboard and for which an OSS firmware existed)
#asahi-dev · 2021-02-03 02:29
vafanlignardedavidrysk[m]: sounds cool. the reboot action just powers off my MBP'17 and MBA'18 (not sure if they're T1 or T2; neither have touchbar).
#asahi-dev · 2021-02-03 02:22
vafanlignardedavidrysk[m]: sorry for the confusion. i actually ran macvdmtool on the m1 (which was connected to the MBA'18 via cable). but that's interesting, does that mean that it might be possible to get macvdmtool running on non-m1 hardware too?
#asahi-dev · 2021-02-03 02:20
vafanlignarde(https://git.io/JtEHe has a short list of what VDM get action list and actions info report on the apple devices I have)
#asahi-dev · 2021-02-03 02:18
vafanlignardei tried 'macvdmtool serial' with actions 0x206 and 0x304 on an MBA'18 where i had done 'csrutil enable --without nvram;nvram boot-args="-v debug=0x8 serial=1 serialbaud=115200"' (recovery os). nothing showed up on my m1's debug-console. figured it could be worth a try at least. :)
#asahi-dev · 2021-02-03 01:24
vafanlignardebastilian: see #asahi about 5h30m ago. there's no serial output by default.
#asahi-dev · 2021-02-01 08:20
vafanlignardeI wonder if that 0x8000 arg to USB-PD VDM 0x105 (reboot) is related to the startup volume. My MBA2018 ended up asking for a EFI firmware password after I played around with 0x105,0x8001. "Your Mac only asks for the firmware password when it's attempting to start up from a storage device other than the one selected in Startup Disk preferences, or when starting up from macOS Recovery."
#asahi-dev · 2021-02-01 07:41
vafanlignarderwhitby: yes, that looks like a ZY12PDN-2
#asahi-dev · 2021-01-31 19:23
vafanlignardeBluerise: i had a few with screw terminals (ZY12PDN-3) but I found that I needed to desolder the terminals to be able to solder wires for the UART onto the MCU.. the ZY12PDN-1 comes without a screw terminal.
#asahi-dev · 2021-01-31 18:19
vafanlignardeBluerise: neat. are there breakout boards easily available for that chip?
#asahi-dev · 2021-01-31 18:07
vafanlignardeBluerise: if you happen to have one of those YZStudio ZY12PDN USD-PD triggers, there's a FUSB302 chip on those (you still need a type-c breakout and level converter though). Someone recently posted an OSS firmware. I've attempted to get Apple VDM working on top of that code although I've only succeeded with UFP and Get Action List so far: https://git.io/JtBD7