My SIM is not recognized after installing Cyanogenmod; what should I do? I've got a Samsung Galaxy S (I9000) which I purchased from the Spanish operator Movistar around two years ago. I have spent most of the day trying to flash it with cyanogenmod 7.

TL;DR: Installing cyanogenmod 7 was incredibly difficult

It has been ... quite and adventure. First I tried heimdall from Ubuntu (didn't even connect to the phone) then I tried from Windows, using its graphical interface. It had the "repartition" flag activated by default, when it shouldn't, so I bricked my phone. After lots of trial an error, I managed to install a ROM in my phone, using Odin as root, the stock cable, and a different usb port than the one I was using (go figure...). And from there I was able to install cyanogenmod as it says on the instructions. Then I had to reinstall them, because they were bootlooping.

END TL;DR

So, now I've got a Samsung Galaxy S with Cyanogenmod 7. But it complaints that it doesn't detect any SIM card. When it boots up, it says "No SIM card. Emergency calls only". Notice that it doesn't say "incompatible SIM", Nor it asks me for a password of any kind. It just doesn't seem to detect the card at all.

What steps can I follow to solve this issue, or at least get more information about it?
OK I feel incredibly stupid now.

I had entered the SIM card upside-down (the "cut corner" was looking "down" instead of "up"). Once I rotated the card 180 degrees on the z axis everything seems to be dandy.

In my defense I must say that the the I9000 SIM port doesn't enforce the "correct" SIM position in any way; it has a small engraving that I just didn't see when removing the card the first time, and that's all. But the card fits both ways.

I will close this question as soon as I'm able to.