flash_kernel fails to flash RECOVERY using heimdall (samsung-s7562)
Created by: cmdr2
Hi,
Device: Samsung S7562
After ./pmbootstrap install
, running ./pmbootstrap flasher flash_kernel
results in heimdall failing with:
Uploading RECOVERY
100%
ERROR: Failed to confirm end of file transfer sequence!
ERROR: RECOVERY upload failed!
To test that heimdall works, I tried flashing the original recovery.img (that I had dd-ed previously) using sudo heimdall flash --RECOVERY recovery.img
and that flashed and booted fine. Then I tried sudo heimdall flash --RECOVERY /tmp/initramfs.lzo
and that failed with the same error.
From what I understand, the flash_kernel step is asking heimdall to flash /tmp/initramfs.lzo, which isn't recognized by abootimg as a valid boot image. So I wonder whether my phone's download mode is refusing to flash a non-boot image file?
I was considering packing the kernel and initramfs into a custom boot image and flashing that to recovery, would that even work?
Apologies if I'm missing something obvious!
Cheers
~cmdr2