Using Heimdall v1.4 RC1 to flash Clockworkmod Recovery on a Samsung S4, I get the following,
$ sudo heimdall flash --RECOVERY ./recovery.img --no-reboot Heimdall v1.4 RC1 Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna http://www.glassechidna.com.au/ This software is provided free of charge. Copying and redistribution is encouraged. If you appreciate this software and you would like to support future development please consider donating: http://www.glassechidna.com.au/donate/ Initialising connection... Detecting device... Claiming interface... Attempt failed. Detaching driver... Claiming interface again... Setting up interface... Checking if protocol is initialised... Protocol is not initialised. Initialising protocol... Protocol initialisation successful. Beginning session... Session begun. In certain situations this device may take up to 2 minutes to respond. Please be patient! Downloading device's PIT file... PIT file download successful. Uploading RECOVERY 100% ERROR: Failed to confirm end of file transfer sequence! ERROR: RECOVERY upload failed! Ending session... Releasing device interface... Re-attaching kernel driver...
I've even tried two different builds of Clockworkmod,
-rw-rw-r-- 1 ecarroll ecarroll 6.8M Aug 11 23:23 clockworkmod_126.96.36.199_jfltespr.img -rw-rw-r-- 1 ecarroll ecarroll 6.8M Aug 12 00:02 recovery-clockwork-188.8.131.52-jfltespr.img $ md5sum *clock* c95fac4d0e27fcb0c3355f209e62cd9c clockworkmod_184.108.40.206_jfltespr.img 760cbf5a3b157ab23f49fcf40b46db2f recovery-clockwork-220.127.116.11-jfltespr.img