Put this file on sdcard
Load it via recovery with "install from sdcard"
it will automatically reboot the phone
once solved, copy to sdcard and restore this stock recovery.img or don't reboot into recovery again, as it will bootloop again:
from within phone, start terminal emulator and type:
dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p13 <enter>
of course, needs root