how do i get past the invalid sim card problem?

Hello all,
I've done my fair share of reading but could never find a solution to this problem if it does exist.

I have a 16Gb 3Gs iphone 3.1.2 (7D11). I have a tethered jailbreak using blackrain and wish to use a spirit to jailbreak and then snow to unlock. I understand that i need to restore first.

But since the phone is from sweden and im nowhere near there now, when i once tried to restore i got stuck at the usb logo and itunes kept giving me the invalid sim card sign.

My question is, how can I restore my phone and bypass the sim card problem. Also, how do I restore it and avoid the upgrading to 3.1.3?

P.S: I dont have access to a Swedish sim card

Thanks a million
You need to unlock it - check to see which baseband or modem firmware your phone has.. if its 5.11 or lower, you can use YellowSn0w available in the Cydia app store. If its 5.12.01 you can not unlock it.
Thanks alot thats very helpful. Any tips about the sim card problem by any chance?
It has to be activated with a valid sim card before u can unlock it.
Or you could create a custom firmware with either PwnageTool for the Mac or sn0wbreeze for the PC, and make sure that "activate" is checked to "Yes".
Thanks LVCIFER. ill do some research on that

Original thread: https://forums.imore.com/threads/how-do-i-get-past-the-invalid-sim-card-problem.190715/