here is the link to all the iphone 2g and 3g software versions released. if you are looking to download the firmware for any purposes you can go download them and do it here....
http://modmyifone.com/wiki/index.php/IPhone_Firmware_Download_Links
http://modmyifone.com/wiki/index.php/IPhone_Firmware_Download_Links