How to fix the problem of iPhone 3GS stuck on Apple Logo screen or in recovery mode

by Rohit on September 29, 2009

Does your iPhone 3GS restart every time in Recovery mode or is it always stuck in the Apple logo screen? Then thank Westbaer and Posixninja for their brilliant iRecovery utility. iRecovery is a libusb-based command line utility which has the ability to talk to the iBoot/iBSS in iPhone from USB.

The reason for the constant rebooting in recovery mode or being stuck on apple screen is because the auto-boot is set to false and we need to set it to true by using the following instructions.

First both windows and mac users make sure that you are in recovery mode in order to fix the above problem. You can go to the recovery mode by following these steps:

  • Turn off your iPhone and disconnect it from the cable.
  • Press and hold the home button.
  • While holding down the home button connect to your PC or Mac using a cable.
  • Keep holding down the home button until you see a Connect to iTunes screen.
  • Now you have set your iPhone in recovery mode and can proceed with the following steps.

.

Mac OS X Instructions:

Note: Please make sure you have logged in as Administrator.

1) Download the iRecovery package from here and extract the contents onto your desktop. There should be 2 files on your desktop:

libusb-0.1.4.dylib
iRecovery

2) Open Terminal (Search ‘Terminal’ in Spotlight and press enter) and execute the following command

cd ~/Desktop

(This will set the current directory to Desktop)

3) In the Terminal window execute the following commands to set the permission for read-write-execute

chmod 777 iRecovery
chmod 777 libusb-0.1.4.dylib

4) Copy the file libusb-0.1.4.dylib from Desktop

5) Open Finder. Open from the top menu bar:
Go > Go to Folder… and type /usr/lib and press Go

6) Now paste the file in the folder that opens up. You will be prompted to enter the Administrator user name and password. Enter the correct details and press OK to proceed

7) Now go back to the Terminal window and launch iRecovery by executing the following command
./iRecovery -s

8 ) Now execute the following commands in sequence to reboot your iPhone and restore it to working condition.

setenv auto-boot true
saveenv
fsboot

Note: If it fails the first time, repeat the procedure again. It may need 2-3 attempts to get your iPhone working again. If it still doesn’t budge try this time by running reboot instead of fsboot in the last step.

Windows users:

1) Download iRecovery file. Click here

2) Unzip the file and copy the resulting folder iRecoveryWin32 to c: (c drive)

3) Open the iRecovery32 folder and install(execute) the libusb-win32-filter-bin-0.1.12.1 file.

  • To install this file Windows xp users can directly double click on it. However, Windows 7/Vista users should follow these steps
  • Right click on the file and select troubleshoot compatiblity or Run this program in compatibility mode and select Windows XP (Service Pack2).

4) Now go to Start > Accessories > Command prompt and open it.

5) In the command prompt enter cd/ to go the root level i.e c:


6) Once in the root level,

  • Enter cd iRecoverywin32
  • Follow it up with cd iRecovery
  • Finally type cd iRecovery_SVN

7) Now type the command iRecovery -s

8 )  Now execute the following commands

  • setenv auto-boot true
  • saveenv
  • fsboot

.

9) Congrats. Your phone will now successfully reboot in the normal mode. If it still boots up in recovey mode or if it’s still stuck on Apple screen, follow the above instructions twice or thrice. If after repeating it thrice you still have a problem, then repeat the above 8 steps once more but this time put reboot in place of fsboot in the last(8th) step.

Delicious
Stumble It

{ 1 trackback }

[SOLUTION] iPhone shut off during boot / Stuck Apple Logo - Page 23
May 16, 2010 at 4:48 pm

{ 38 comments… read them below or add one }

mak October 14, 2009 at 10:11 pm

hi , when i type in cd/ the program does not go into root mode , if i keep continueing to type in commands and pressing return it says the system cannot find the pathspecified.

mak October 14, 2009 at 10:15 pm

UPDATE on my computer the command is actually cd\ to go into route mode but when it type in the next command
cd iRecoverywin32, and hit return it says

system cannot find the path specified.

need some help sap , my phone is jailbroken 3gs , thats why i can t do the restore on itunes as i don t want to get stuck on 3.1 ,

dirk October 23, 2009 at 4:38 pm

Once in the command prompt mode, and typing iRecovery -s, it says:

Got USB
No iPhone/iPod

Although iTunes detects the phone (without functioning, but it detects it).

Dirk

bx December 21, 2009 at 5:13 am

THANK YOU. I have just spent the past 5 hours in a sheer panic over my phone being locked without a start on the Apple screen. I unlocked and jailbroke the 3.1.2 using BlackRa1n, and a week later, my phone all of a sudden turned off like the battery had died, and wouldn’t start. Connecting in DFU mode to iTunes produced an Error 23. This worked perfectly.

To anyone having trouble installing: FOLLOW THE DIRECTIONS. I had to do this procedure 3x in order to get it to work, and it was because I was distracted and upset by what was going on with the phone…you have to follow them to the very last detail, READ CAREFULLY!

Thanks again, you guys. :D

Rohit December 21, 2009 at 6:55 am

@bx cheers mate! Glad it worked for you.

V.V. January 5, 2010 at 1:30 pm

Please HELP…
My iPhone 3GS is stuck in error code 23. I try to fix following (few times) this guide with NO LUCK.. :-(
phone : iPhone 3GS 32 GB, iPhone2.1.3.1_7 , jailbroken, Mac OS X v.10.6.2,
simptoms: Radio failed to respond.
i try in recovery mode, DFU mode, restoring, upgradeing…. on few different OS computers, on different iTunes versions…. with no luck …
Anyone got any sollution???

Here is a copy of my “terminal” log following Rohit’s iRecovery iBoot.
Thanks for any suggestion upfront

iBoot log:

=======================================
::
:: iBoot for n88ap, Copyright 2009, Apple Inc.
::
:: BUILD_TAG: iBoot-636.65
::
:: BUILD_STYLE: RELEASE
::
:: USB_SERIAL_NUMBER: CPID:8920 CPRV:14 CPFM:03 SCEP:03 BDID:00 ECID:0000012ACA0C1D4D IBFL:01 SRNM:[86927B3S3NR]
::
=======================================

[FTL:MSG] Apple NAND Driver (AND) RO
[NAND] Found Chip ID 0×3295DE987A on FMI0:CE0
[NAND] Found Chip ID 0×3295DE987A on FMI0:CE1
[NAND] Found Chip ID 0×3295DE987A on FMI1:C8
[NAND] Found Chip ID 0×3295DE987A on FMI1:CE9
[FTL:MSG] FIL_Init [OK]
[FTL:MSG] BUF_Init [OK]
[FTL:MSG] FPart Init [OK]
read new style signature 0×43313133 (line:375)
[FTL:MSG] VSVFL Register [OK]
[FTL:MSG] VFL Init [OK]
[FTL:MSG] VFL_Open [OK]
[FTL:MSG] YAFTL Register [OK]
[FTL:MSG] FTL_Open [OK]
Boot Failure Count: 1 Panic Fail Count: 0
Radio failed to respond.
Radio failed to respond.
Pinging Radio Failed, 4
Entering recovery mode, starting command prompt
(Recovery) iPhone$
========================================

malex January 7, 2010 at 3:01 pm

V.V. thats the new iboot.. cant change it to run the jailbreak..

ddle January 13, 2010 at 6:57 am

Will this procedure works for the new 3GS with the new bootrom? I had tried several times without any success using windows XP.

Steve Johnson January 30, 2010 at 6:14 am

I get stuck on Step # 5. How do I get the “Go to the Folder” window to appear?

Michelle G February 2, 2010 at 8:48 pm

Will this process work on the 3G? I have an unlocked phone and it has been working beautifully for months and this morning when I did a restart, it stuck on the Apple start up screen and will just freeze when the wheel comes on and then will eventually reboot and do it all over again. Any help would be greatly appreciated. Thanks.

Alok February 7, 2010 at 9:55 pm

I have an iphone 3gs that runs 3.1.2 which I jailbroke with blackra1n RC3. I tried running this when the phone kept getting stuck in safe moode or the apple logo, but it just puts the phone back in safe mode and does not recognize the last 3 commands? Any help would be greatly appreciated.

marshal February 8, 2010 at 2:12 pm

Hi,
when I type iRecovery -s , a message return as ” the system cannot execute the specified program.

What shall i do? thanks for your help.

usher February 11, 2010 at 1:03 pm

hi sick program wished i found it along time ago it would have helped me with my other issue

i fallowed the steps it rebooted only after i used reboot instead of fsboot but then what i tried restoring it to 3.1.2 on itunes no luck i tried blackrain rc3 nothing just back to the blug into itunes logo here
i have tried black rain 50 times no luck the first timed it worked but then it was thetered so i was a wise guy and wanted to reset its settings from the iphone it self and after trying to theter it again it just toke forever to load and then back to the itunes logo with no slide im on 3gs 5.11.XX please help

ams February 18, 2010 at 11:55 am

for those of you that are stuck at step 7
download irecovery from:
http://download500.mediafire.com/4manyklj6xmg/nmn25bnjzy3/irecovery-0.3.2-win32.zip

extract the files into the \iRecovery_SVN folder and try the step 7 again
i.e irecovery -s

worked or me!

Kolby March 8, 2010 at 9:34 am

Which directory are you saving the bin file to?

I saved it under My documents and whenever I type cd iRecoverywin32 once in the root path it keeps saying path not found?

Ive tried saving it directly under C: as well with no luck? I have Windows XP this is getting frustrating!

Cheers

Kolby March 8, 2010 at 9:42 am

UPDATE*

I did not unzip the file before saving to root. Now Im at step 7 iRecovery -s and it says iphone/ipod not found?

Help anyone?

Bigballa March 8, 2010 at 11:59 pm

also stuck on step 7. I also tried ams file to no avail. anyone have any other solution please?

a March 28, 2010 at 5:43 am

what if fsboot dosent reset the phone do you place reboot there instead… and do that three times… or after fsboot reset the the phone your self or what and will this work on fm 3.1.3

a March 28, 2010 at 5:45 am

i have tried it several times to I do fsboot three times and after i write

setenv auto-boot true
saveenv
fsboot

what’s suppose to happen after that is it suppose to reset by its self or do you do it manually or after that do you put reboot

Der_Ventilator April 14, 2010 at 2:58 am

Fixed it. I did nothing, just disconnected the power, removed the sim and after one hour i let it keep rebooting for one hour and now its working again.

RISHOTEM April 14, 2010 at 10:13 pm

hello, ON step 8, i type in those commands but nothing seems to happen.. when am i supposed to use irecovery( such as when it tells me i have an error when donwgrading or something or after). Thanks in Advance!!!!!

Sushi. April 19, 2010 at 4:44 am

Hi..When I Enter Cd Irecovery -S I Get A Message That “No Iphone / Ipod Found” Though My Itune And Windows Detect The I Phone 3gs 3.1.2

donut April 22, 2010 at 1:05 pm

i have the same problem as Sushi. isnt there a way to fix this? i really need my phone and i don’t want to recover it because i had tons of information and pics on that phone. help?

Ricky April 30, 2010 at 8:20 pm

This is absolutely amazing, its almost like magic. Phone comes on straight those commands!!!!Thanks

lock May 9, 2010 at 12:55 am

Will I lose all of my data if I do this?

omghelpme May 15, 2010 at 3:14 pm

If I proceed with this recovery, the data will be reset right? which means that I have to sync it with my last back up?

David June 14, 2010 at 11:52 am

it’s not working for me… i tried over 5 times… :’(

Ali June 14, 2010 at 1:12 pm

when i type the commands in the shell, i see no response. and it does not boot of fsboot. i have to reboot it manually or by pressing reboot. i have tried it around 30 tims and it is still rebooting on apple logo.
any suggestions???

Prem June 17, 2010 at 3:05 am

Hi,
I have iPhone 3GS with 3.1.2 and 05.11.07 which was jailbreaked and unlocked using blackrain and blacksnow. It was working fine till today before I restarted. Now after I restart, it gets stuck on the apple logo screen and automatically restarts after particular period of time. Since I do NOT have shsh file stored for my 3.1.2 version in saurik’s server, I can’t restore to 3.1.2.

I tried the instruction given in this forum. I tried multiple times the same steps as mentioned with fsboot and reboot. But still its not working. Please find below one of the log. Please please help me in this regard.

Thanks in advance!!!.

C:\iRecoveryWin32\iRecovery_SVN>iRecovery -s
iRecovery – Recovery Utility
by wEsTbAeR– and Tom3q

Got USB

=======================================
::
:: iRain for n88ap, Copyright 2009, Apple Inc.
::
:: BUILD_TAG: iBoot-636.66
::
:: BUILD_STYLE: RELEASE
::
:: USB_SERIAL_NUMBER: CPID:8920 CPRV:14 CPFM:03 SCEP:03 BDID:00 ECID:000003
FFAA0E038E IBFL:01 SRNM:[329476FZ3NP]
::
=======================================

[FTL:MSG] Apple NAND Driver (AND) RO
[NAND] Found Chip ID 0×29D5D7EC38 on FMI0:CE0
[NAND] Found Chip ID 0×29D5D7EC38 on FMI0:CE1
[NAND] Found Chip ID 0×29D5D7EC38 on FMI1:Cnt: 0
Entering recovery mode, starting command prompt
SG] FIL_Init [OK]
[FTL:MSG] BUF_Init [OK]
[FTL:MSG] FPart Init [OK]
read new style signature 0×43313133 (line:375)
[FTL:MSG] VSVFL Register [OK]
[FTL:MSG] VFL Init [OK]
[FTL:MSG] VFL_Open [OK]
[FTL:MSG] YAFTL Register [OK]
yaFTL::YAFTL_Open(l:2630): CXT is not valid . Performing full NAND R/O restore .
..
[FTL:MSG] FTL_Open [OK]
Boot Failure Count: 15 Panic Fail Cont: 0
Entering recovery mode, starting command prompt
(Recovery) iPhone$ setenv auto-boot true
(Recovery) iPhone$ saveenv
(Recovery) iPhone$ reboot
(Recovery) iPhone$

Prem June 17, 2010 at 3:56 am

Hi Der_Ventilator,
Your solution is the greatest one. Thanks a lot for posting the same. Was trying out multiple solutions for 3 hrs and was totally fed up and tired to do any more research on the same.. jus gave a try to ur solution & that turned out to be the best one.. awesome..

Atlast My Phone rebooted after 15mins.. lol.. Thanks once again..
P.S. : My suggestion.. jus put it on the charger and leave it & do remove ur sim card and dont interupt it in between the automatic restarting cycles!!!

raja June 24, 2010 at 1:58 pm

Hi
My phone is 3gs with firmware 3.1.3 and baseband is 5.12.01 i tried the above steps more than 15 times but i couldn’t succeed. Please give me the solution.
Thanks in advance!

aijaz July 5, 2010 at 8:29 am

Hi Guys,

I have iPhone 3GS, new bootrom, tethered Jailbreak using blackrain RC3… worked fine, i reset network settings, it rebooted, and came back to itunes connect screen (usual with tethered)… I ran blackrain and it gives geohot screen, stays there for a while and then reboots, sowing apple logo and then the connect to itunes screen.

I tried doing the iRecovery steps.. fsboot didn’t do anything , reboot restarted the iphone but still stuck at the same issue…

please help,
Regards

aijaz July 5, 2010 at 8:34 am

Hi there guys,

This is the output from the iRecovery

iRecovery – Recovery Utility
by wEsTbAeR– and Tom3q

Got USB

=======================================
::
:: iBoot for n88ap, Copyright 2009, Apple Inc.
::
:: BUILD_TAG: iBoot-636.66
::
:: BUILD_STYLE: RELEASE
::
:: USB_SERIAL_NUMBER: CPID:8920 CPRV:15 CPFM:03 SCEP:03 BDID:00 ECID:000001
B74606FD4C IBFL:01 SRNM:[85002HZB3NP]
::
=======================================

[FTL:MSG] Apple NAND Driver (AND) RO
[NAND] Found Chip ID 0×29D5D7EC38 on FMI0:CE0
[NAND] Found Chip ID 0×29D5D7EC38 on FMI0:CE1
[NAND] Found Chip ID 0×29D5D7EC38 on FMI1:C8
[NAND] Found Chip ID 0×29D5D7EC38 on FMI1:CE9
[FTL:MSG] FIL_Init [OK]
[FTL:MSG] BUF_Init [OK]
[FTL:MSG] FPart Init [OK]
read new style signature 0×43313133 (line:375)
[FTL:MSG] VSVFL Register [OK]
[FTL:MSG] VFL Init [OK]
[FTL:MSG] VFL_Open [OK]
[FTL:MSG] YAFTL Register [OK]
yaFTL::YAFTL_Open(l:2630): CXT is not valid . Performing full NAND R/O restore .
..
[FTL:MSG] FTL_Open [OK]
Boot Failure Count: 15 Panic Fail Cont: 0
Entering recovery mode, starting command prompt

Hope some one can help
A

Genart July 5, 2010 at 2:40 pm

Everytime I enter saveenv i get

flash_spi_erase_range: erase failed
flash_spi_write_range: write failed: -2

What does this mean?

TaDZiK July 9, 2010 at 8:44 pm

Dude u’re awesome ;****** ;D

kto July 12, 2010 at 10:09 pm

I get the following error. What am I doing wrong?

iRecovery – Recovery Utility
by westbaer
Thanks to pod2g, tom3q, planetbeing, geohot and posixninja.

Found iPhone/iPod in DFU/WTF mode
irecv_console: Error claiming interface!
Closing USB connection…

nick July 14, 2010 at 7:42 am

i go this:

Bad CPU type in executable

now what???

Robert July 15, 2010 at 2:00 pm

Should the fail-boot count be increasing each time we go through this process?

Thanks!

Leave a Comment

Previous post: CNN Mobile redefines news app for the iPhone

Next post: How to free up RAM memory on your iPhone 3G