Posted by: tubaking182 from xda http://forum.xda-developers.com/showthread.php?t=491350
so all of you that messed something up on your phone and need to get it back into warranty this is how, FOLLOW THESE STEPS
1. get the original SPL for your phone, go to the SPL thread at the top
2. rename it to update.zip and flash it to your phone
3. download the DREAIMG.nbh from the thread where you rooted your phone
4. place DREAIMG.nbh on the root of your SD card and start phone in bootloader(camera+power)
5. hit power to start the update
6. hit action(trackball down) and your phone will reboot
7. YOU NOW HAVE STOCK FIRMWARE, it will update on it's own in a little bit
I have included all necessary parts for this.