Just dowbload OFW of which ever firmware you running as CFW, get a flashdrive, make a folder names ps3 in the root of the flashdrive, then another foder in that one named UPDATE.
Turn on ps3, put in the flashdrive. go to update, then update via removable device.
The OFW on your flashdrive should come up. i recommend doing this via recovery system.