1: Open Redsn0w Go to Extra->Even More->Restore
2: Click IPSW And select IPSW
3: If you have SHSH in computer Select local*If your SHSH on cydia click Remote(I did Remote)*If you want to submit saved shsh from computer to cydia open RedSn0w go to Extra-> SHSH Blobs-> Submit.
4: Note the Software version(5.1.1) and baseband version(2.0.12)
5: Now Redsn0w will start its work.
6: After Completing initial process Redsn0w will popup a message About baseband update*Read and select Yes.
7: Redsn0w start restoring system image.
8: Redsn0w Updating baseband version.
9: Restore Done Successfully.
if you need any problem in
samsung firmware then you need to use this link
Samsung firmware free