Posted by: जय नेपाल August 27, 2012
IPHONE ISSUE............
Login in to Rate this Post:     0       ?        
 5.1.1 is the latest version of IOS, so connect it to itunes and click on restore. If for some reason you cannot restore using itunes, download the firmware 5.1.1 ( Link here:iPhone 3GS ) 
put the phone on DFU mode by pressing and holding power and home button until the apple logo appears, then release the power button. (http://www.idownloadblog.com/2010/12/01/how-to-put-iphone-in-dfu-mode/ )

there are tons of video on youtube about it.  
Read Full Discussion Thread for this article