Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Flashing modem on SGS2 fails with "Failed to confirm end of file transfer sequence!" #21

blueyed opened this Issue Jul 21, 2011 · 2 comments


None yet
2 participants

blueyed commented Jul 21, 2011

I am trying to flash a modem file onto my Samsung Galaxy S2 using heimdall from Git master.

This fails as follows (see below).
It reboots fine then, but the modem (baseband?) version is still at KG1 (I am coming from Cognition ROM 1.15 and updated to VillainROM 2.1).

% ./heimdall flash --modem ~/MODEM_I9100XXKG2_REV_02_CL1037208.tar.md5
Heimdall v1.3 (beta), Copyright (c) 2010-2011, Benjamin Dobell, Glass Echidna

This software is provided free of charge. Copying and redistribution is

If you appreciate this software and you would like to support future
development please consider donating:

Initialising connection...
Detecting device...
Claiming interface...
Attempt failed. Detaching driver...
Claiming interface again...
Setting up interface...

Beginning session...
Handshaking with Loke...

Downloading device's PIT file...
PIT file download sucessful

Uploading MODEM
ERROR: Failed to confirm end of file transfer sequence!
MODEM upload failed!
Ending session...
Rebooting device...
Re-attaching kernel driver...

Verbose output of another attempt is at http://paste.ubuntu.com/649099/
While searching for it I've found the following paste, which appears to be related (same error): http://pastebin.com/2zLHW2LG


Benjamin-Dobell commented Jul 21, 2011

Make sure you read the README very carefully, what you've tried to do certainly won't work. You're not meant to flash archives to your device using Heimdall, so in some sense it's a good thing that you got that error otherwise you'd end up with a invalid modem on your device. You'll want to extract the tar archive and see if you can get the modem.bin contained within to flash correctly.

However, I have seen reports in the past of certain files not flashing depending on your current firmware, as well as the file that is being flashed. I'm not certain what causes this but the first thing that comes to mind is that the partition on the phone (based on the PIT file) may not include enough space to store the file.

Let me know whether or not you're able to flash modem.bin without problems, if not then I'd recommend you try perform a full flash and repartition.

blueyed commented Aug 8, 2011

I was able to flash the extracted modem.bin - sorry for causing any confusion.

I suggest the following improvements to heimdall:

  1. add support for tar.md5 files (which are basically tar files, or do they contain a md5 hashsum for verification after all?)
  2. detect this kind of error and provide some hint

Please feel free to close this ticket, preferably from a commit which adds improvements like stated above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment