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

iPad Mini 2 issue #105

Open
miticollo opened this issue Sep 19, 2022 · 4 comments
Open

iPad Mini 2 issue #105

miticollo opened this issue Sep 19, 2022 · 4 comments

Comments

@miticollo
Copy link

miticollo commented Sep 19, 2022

I tried to send iBEC to my iPad Mini 2. But at first attempt irecovery failed

% irecovery -v -f sshramdisk/iBEC.img4  
Attempting to connect... 
opening device 05ac:1227 @ 0x14200000...
Setting to configuration 1
Setting to interface 0:0
Connected to iPad4,4, model j85ap, cpid 0x8960, bdid 0x0a
DFU ERROR, issuing CLRSTATUS
Unable to upload data to device

At second attempt it failed with progress bar

% irecovery -v -f sshramdisk/iBEC.img4
Attempting to connect... 
opening device 05ac:1227 @ 0x14200000...
Setting to configuration 1
Setting to interface 0:0
Connected to iPad4,4, model j85ap, cpid 0x8960, bdid 0x0a
[====================================              ] 70.2%Unable to upload data to device

I compiled tool on my macOS 12.6 without problems. I successfully sent iBSS but no iBEC. I have no problems with my iPhone X.

@nikias
Copy link
Member

nikias commented Sep 20, 2022

Can you check if it works when you change this line:
https://github.com/libimobiledevice/libirecovery/blob/master/src/libirecovery.c#L2719
from

	int packet_size = recovery_mode ? 0x8000 : 0x800;

to

	int packet_size = recovery_mode ? 0x2000 : 0x800;

?

@nikias
Copy link
Member

nikias commented Sep 20, 2022

Oh hmm just saw it fails in DFU mode already, so this won't help...
But wouldn't the device reconnect in recovery mode (05ac:1281) after it accepted the iBSS? I don't remember exactly tbh... In any case it would disconnect from USB and reconnect. Does that happen?

@miticollo
Copy link
Author

Thank u for the answer. I tried to edit source but nothing has changed. I noticed that after send iBSS on my iPad Pro backlight is present but if I use iPad Mini 2 not.
irecovery doesn't disconnect and reconnect iDevices. Anyway with iPad Mini 2 I tried to disconnect and reconnect manually before to load iBEC unsuccessfully.

@nikias
Copy link
Member

nikias commented Sep 20, 2022

It's not irecovery that does the reconnect. The devices do it on their own. If it doesn't happen then the iBEC image is not accepted by the device.

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

No branches or pull requests

2 participants