iPhone1,1
2.0_5A347Restore.ipsw is for the first generation iPhones.
iPhone1,2.0
5A347Restore.ipsw is for the new G3 iPhones.
I don't know why the released the G3 software before the G3 phone, but that's why your phones are stuck in emergency mode and you're getting the error 20. Error 20 usually means the hardware is not compatible with the software. (Disclaimer: I am not 100% sure about the error message; this is just what my server manual says, and it was published in 1992.)
First generation iPhones are G2. Download the software here:
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-4956.2 0080710.V50OI/iPhone1,12.0_5A347Restore.ipsw
I downloaded it, and just clicked the little box that downloaded onto my desktop. It doesn't solve everything, it just gets rid of that error 20 message. iTunes is still down, so you'll be in the same boat as everyone else.