Download the firmware 4.0.1 and recover iPhone in recovery mode. And it works before apple stop the recovery certification. I did it today at 3GS, I think iPhone 4 can do it as well.