Iphone updating questions

I have a jailbroken iphone 3g running on 3.0 firmware how do i update to at least 3.1.2??? I dont want to loose my jailbreak. Thanks
No matter what, you are going to lose your jailbreak when you are updating/restoring. AFAIK 3G can be restored/updated to any OS without any iTunes errors, so you should be able to update to 3.1.2 and then jailbreak again with blackra1n.
Do you need the unlock as well? If you only want to jailbreak, you can use PwnageTool for mac and upgrade to the current 3.1.3.....

Original thread: https://forums.imore.com/threads/iphone-updating-questions.185583/