I'd suggest to install a pristine 5.1.2 fw, jailbreak, update and install the patches.
Use this manual method:
https://www.mobileread.com/forums/sho...d.php?t=170929
Or this automatic (not fully tested) method:
https://www.mobileread.com/forums/sho...d.php?t=206064