iOS4 for iPhone and iPod touch is just released, and its still available only for developers right now as the official version is yet to go live. But till then you can use the firmware in your iPhone 3G, iPhone 3GS and a team has successfully tried