My iPhone 4 was on iOS 5.0.1 and jailbroken. I haven't used it in a long time (switched phones a couple of years ago) and I just wanted to restore the phone back to its factory state with the latest iOS. I went to perform an update in iTunes but it failed and left the phone in recovery mode. I tried to restore it in iTunes again but it threw an error (error 1 or -1, I can't remember). I then did some reading and tried TinyUmbrella to pull it out of recovery mode but now it's in an endless boot loop where the Apple logo shows for a few seconds then the phone restarts. I just want to restore the phone to a factory state. I've already pulled everything off the phone so I don't care if it gets wiped and I don't need it to be jailbroken either. Does anyone have any suggestions? Thanks so much for looking and for any help!