Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added T2 and iPad data #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Added T2 and iPad data #2

wants to merge 3 commits into from

Conversation

rickmark
Copy link

@rickmark rickmark commented Aug 6, 2021

This tool already works out of box with iPad and T2 targets since the VDMs are identical

@@ -15,17 +17,19 @@ This is based on portions of [ThunderboltPatcher](https://github.com/osy/Thunder

Thanks to t8012.dev and mrarm for assistance with the VDM and Ace2 host interface commands.

The documentation of the ACE and its USB-PD VPDs is here https://blog.t8012.dev/ace-part-1/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VDPs?


You need to use a *USB 3.0 compatible* (SuperSpeed) Type C cable. USB 2.0-only cables, including most cables meant for charging, will not work, as they do not have the required pins. Thunderbolt cables work too.
You need to use a *USB 3.0 compatible* (SuperSpeed) Type C cable. USB 2.0-only cables, including most cables meant for charging, will not work, as they do not have the required pins (USB CC1/CC2 where USB-PD are transmitted). Thunderbolt cables work too.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct; the missing pins are SBU1/SBU2, which we use for serial. USB 2.0 cables do work for USB-PD commands like reboot, just not for serial.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly its missing both... but neither here nor there (it only ends up connecting D+/D- SS1/2 and VCC / GND on a 2.0 cable)

@tihmstar
Copy link

Hi @marcan @rickmark,
I could successfully use this tool from my M1 mac to do: reboot, dfu and serial on my iPad8,1.
On T2 i could do: reboot and dfu, but serial doesn't work.

sudo macvdmtool serial
Mac type: J316cAP
Looking for HPM devices...
Found: IOService:/AppleARMPE/arm-io/AppleT600xIO/i2c0@9B040000/AppleS5L8940XI2CController/hpmBusManager@6B/AppleHPMBusController/hpm0/AppleHPMARMI2C
Connection: Source
Status: APP 
Unlocking... OK
Entering DBMa mode... Status: DBMa
Putting target into serial mode... VDM failed (reply: 0x05ac8092)
Exiting DBMa mode... OK
VDM failed

Any ideas?

On the same machine i can get serial from my iPad8,1.
Is it possible that serial VDM, is incorrect for T2?
How can the correct VMD be found?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants