Wrong place for this. Also try searching before posting. Here's how to downgrade to 3.13:
https://forums.macrumors.com/threads/954719/
This is a question about the iPhone....this is the iPhone forum, so why is this the wrong place for this??
restore your iPhone's firmware to 312, then, if it's stuck into Connect to iTunes screen, run RecBoot, and then unlock with blackra1n if you have to. In my case, I didn't need running RecBoot, blackra1n did the thing just great. Everything takes 10-15 min with the firmware restore being the longest part.
If its a 3G you can just download an official 3.1.2 ipsw and restore to that thru itunes.
If you're on 3GS you cannot downgrade your firmware unless you have your SHSH's saved for the particular firmware version.
Good info. Two questions.
What does SHSH stand for?
How can I check whether I did save SHSH?