i have a 16GB iphone 3G. I am getting an Error 6 even if i am trying to install 3.1 officially by clicking restore.

I have tried it in DFU mode as well as in Restore mode.
Nothing works..
Now i;m stuck on the restore mode with the itunes and the usb pin showing.

Can someone let me know how can i get this solved?

I have a a MAC as well as a XP machine.
I have already tried it on both mac and VM ware and Vista....Same error...

Please help.