Some time while jailbreaking and unlocking process iPhone refuses to boot in normal mode and every time you restart your iPhone it enters in Recovery mode.
This situation is named as recovery mode loop. If you are in a recovery mode loop (i.e. your phone enters recovery mode on every reboot.
To get the out of recovery mode loop use iRecovery
iRecovery is a libusb-based command line utility for Mac OS X,Linux and Windows. It is able to talk to the iBoot/iBSS in Apple’s iPhone/iPod touch via USB.
If you are on Windows then you need to install LibUsb-Win32 in order to run iRecovery.
LibUsb-Win32 is a port of the USB library libusb the Windows operating system. The library allows user space applications to access any USB device on Windows.
Note : Before getting started Download this package included iRecovery for Windows & Mac and LibUsb-Win32 Download Here
You must login or register to view this content.
This process is universal and tested several times though i am not responsible for any damage (if any) use it at your own risk.
1) Install libusb from the downloaded pack for Windows users only Mac users can skip this step. If you are on Windows Vista then follow the steps given below to install Libusb-Win32.
Right click on this file. Select Properties | Compatibility Click the “Run this program in compatibility mode” box and select “Windows XP (Service Pack2)” from the drop down list.
Right click again and select “Run as “Administrator”. Follow the installation instructions. Running the test program list the usb devices plugged into my computer – but not my new device.
2) Start iRecovery in Terminal / Console/with iRecovery -s
if using windows make sure the download file is on your desktop,
use cmd prompt to start irecovery
3) Execute the following commands:
wait a few seconds before each command
setenv auto-boot true
saveenv
/exit4
Reboot your iPhone (keep holding home + sleep for 10 seconds).
should now restart as normal