this did work for me however you typed " flash_image recover /sdcard/recovery.img and it should be flash_image recovery /sdcard/recovery.img as the way you typed i got cant find recover partition.....but thanks though worked for me and i was stuck i just added a y and it worked.....was either that or start ranting on here..
worked perfectly, the first time.. here it is combined, for you terminal emulator users
1 - place the required files (flash_image binary and recovery.img - naming shouldn't matter i kept the version number on it) on your sdcard - you can do this with a microsdcard reader, adb push, whatever you like =)
2 - start a root session using adb shell and su
3 - mount -o rw,remount /system - this makes /system writable
4 - mkdir /system/xbin - if it already exists you will simply get an error
5 - cat /sdcard/flash_image > /system/xbin/flash_image
6 - chmod 700 /system/xbin/flash_image - validate permissions on /system/xbin/flash_image - you are the root user afterall, don't need world and group executable or even read =)
7 - sync - flush changes to block device
8 - mount -o ro,remount /system - remount in read-only - you shouldn't need to make any more changes
9 - as /system/xbin is in your path, you can simply type: flash_image recover /sdcard/recovery.img
10 - hit power button, select power off
11 - hold x, hit power button
12 - you should be greated by the custom recovery firmware