The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "DFU Mode"
(→Entering DFU Mode on iPhone, iPad or iPod touch: That was the same entrypoint, just slightly different timing. Replaced both with an adaptation of Apple's instructions.) |
m (→DFU Mode: Simplified headers and rearranged content.) |
||
Line 1: | Line 1: | ||
'''DFU''' or '''Device Firmware Upgrade''' mode allows all devices to be restored from any state. It is essentially a mode where the BootROM can accept iBSS. DFU is burned into the hardware, so it cannot be removed. On A7+ devices, it generates an ApNonce and recognizes APTickets as well, so even in DFU, it can accept an APTicket. |
'''DFU''' or '''Device Firmware Upgrade''' mode allows all devices to be restored from any state. It is essentially a mode where the BootROM can accept iBSS. DFU is burned into the hardware, so it cannot be removed. On A7+ devices, it generates an ApNonce and recognizes APTickets as well, so even in DFU, it can accept an APTicket. |
||
− | ==DFU Mode== |
+ | == Entering DFU Mode == |
+ | === Apple TV === |
||
− | === Entering DFU Mode on iPhone, iPad or iPod touch === |
||
+ | # Plug the device into your computer using a Micro-USB cable. |
||
+ | # Force the device to reboot by holding down the "Menu" and "Down" buttons simultaneously for 6-7 seconds. |
||
+ | # Press "Menu" and "Play" simultaneously right after reboot, until a message pops up in [[iTunes]], saying that it has detected an Apple TV in Recovery Mode. |
||
+ | |||
+ | === iPad/iPhone/iPod touch === |
||
These instructions are adapted from Apple's [https://www.apple.com/business/docs/iOS_Security_Guide.pdf iOS Security Guide]: |
These instructions are adapted from Apple's [https://www.apple.com/business/docs/iOS_Security_Guide.pdf iOS Security Guide]: |
||
Line 13: | Line 18: | ||
#* If your device shows a screen telling you to connect the device to iTunes, retry these steps. |
#* If your device shows a screen telling you to connect the device to iTunes, retry these steps. |
||
− | == |
+ | == Exiting DFU Mode == |
+ | To exit DFU Mode, simply reboot your device. |
||
− | # Hold the Home and Power buttons until the Apple Logo appears. |
||
− | |||
− | ===Entering DFU Mode on Apple TV=== |
||
− | # Plug the device into your computer using a microUSB cable. |
||
− | # Force the device to reboot by holding down the "Menu" and "Down" buttons simultaneously for 6-7 seconds. |
||
− | # Press "Menu" and "Play" simultaneously right after reboot, until a message pops up in [[iTunes]], saying that it has detected an Apple TV in Recovery Mode. |
||
+ | * For Apple TV, hold down the "Menu" and "Down" buttons on your remote until the Apple TV reboots. |
||
− | ===Exiting DFU Mode on Apple TV=== |
||
− | + | * For iPad/iPhone/iPod touch, hold the Home and Sleep/Wake buttons until the device reboots. |
|
+ | ** If your device does not have a physical Home button, use the Volume Down button instead. |
||
==Enter True Hardware DFU Mode Automatically== |
==Enter True Hardware DFU Mode Automatically== |
Revision as of 17:21, 3 August 2017
DFU or Device Firmware Upgrade mode allows all devices to be restored from any state. It is essentially a mode where the BootROM can accept iBSS. DFU is burned into the hardware, so it cannot be removed. On A7+ devices, it generates an ApNonce and recognizes APTickets as well, so even in DFU, it can accept an APTicket.
Contents
Entering DFU Mode
Apple TV
- Plug the device into your computer using a Micro-USB cable.
- Force the device to reboot by holding down the "Menu" and "Down" buttons simultaneously for 6-7 seconds.
- Press "Menu" and "Play" simultaneously right after reboot, until a message pops up in iTunes, saying that it has detected an Apple TV in Recovery Mode.
iPad/iPhone/iPod touch
These instructions are adapted from Apple's iOS Security Guide:
- Connect the device to a computer using a USB cable.
- Hold down both the Home and Sleep/Wake buttons.
- If your device does not have a physical Home button, use the Volume Down button instead.
- After 8 seconds, release the Sleep/Wake button while continuing to hold down the Home button.
- If the Apple logo appears, the Sleep/Wake button was held down too long.
- Nothing will be displayed on the screen when the device is in DFU mode. If open, iTunes will alert you that a device was detected in recovery mode.
- If your device shows a screen telling you to connect the device to iTunes, retry these steps.
Exiting DFU Mode
To exit DFU Mode, simply reboot your device.
- For Apple TV, hold down the "Menu" and "Down" buttons on your remote until the Apple TV reboots.
- For iPad/iPhone/iPod touch, hold the Home and Sleep/Wake buttons until the device reboots.
- If your device does not have a physical Home button, use the Volume Down button instead.
Enter True Hardware DFU Mode Automatically
The EnterDFU function in the MobileDevice Library does not enter the true DFU Mode in the hardware. It's possible to enter the true DFU Mode without doing it manually, but it cannot be exited unless a restore is performed, as it creates a DFU Loop. This doesn't work with S5L8900 devices.
Steps
- Make a copy of a fresh IPSW file.
- Open the IPSW as a zip folder and browse to /firmware/all_flash/all_flash.xxxxx.production/
- Extract LLB.*****.RELEASE.img3/im4p and open it in a hex editor.
- Change some random bit or bits, it doesn't matter which or what you write.
- Add the edited file back to the zip, rename zip to ipsw and restore it to your device using iTunes.
- The restore will error out and your device will be in DFU Mode.
Alternative Method
If the previous method does not work for you, try this one.
- Do steps 1 and 2 from above.
- Delete LLB.*****.RELEASE.img3.
- Copy applelogo.********.img3 to temporary directory.
- Rename the copy of applelogo.********.img3/im4p to LLB.*****.RELEASE.img3/im4p. (If you forget the name of the LLB file, you can find it again in the file named manifest.)
- Copy the renamed applelogo file back to the all_flash.xxxxx.production directory.
- Rename the zip.
- Restore the file using iTunes. (If every thing goes well, you should receive an error 31 from iTunes.)
DFU Mode Output to the computer
iProduct: "Apple Mobile Device (DFU Mode)"
iSerialNumber: "CPID:XXXX CPRV:15 CPFM:03 SCEP:03 BDID:00 ECID:XXXXXXXXXXXXXXXX SRTG:[iBoot-XXX.X.X]"
Revisions
S5L8900 (0x1222)
This is the device ID in the iPod touch, the iPhone, and the iPhone 3G. For more information about the protocol, see DFU 0x1222.
S5L8720, S5L8920, and WTF mode post-2.0 (0x1227)
This is the device ID in the iPod touch (2nd generation), the iPhone 3GS, the iPhone 4, subsequent 32 bit devices, all 64 bit devices, and WTF mode. For more information on the protocol, see DFU 0x1227.