well... i bought the iphone from someone in a condition which is locked with a passcode, i dont know how it happen..
so the only thing i know it is iphone 3gs (beacuse of the glowing iphone text on the back)
and i cant check anything of the phone as it is cant be read by itunes, umbrell or any other means..
so ... i think the only way is upgrading via recovery mode..