libirecovery icon indicating copy to clipboard operation
libirecovery copied to clipboard

iPad Mini 2 issue

Open miticollo opened this issue 2 years ago • 4 comments

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.

miticollo avatar Sep 19 '22 13:09 miticollo

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 avatar Sep 20 '22 13:09 nikias

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?

nikias avatar Sep 20 '22 13:09 nikias

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.

miticollo avatar Sep 20 '22 15:09 miticollo

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.

nikias avatar Sep 20 '22 16:09 nikias