download and compile Heimdall suite from source.
INSTALL CYGWIN FIRST. RUN THROUGH THE SETUP PROCESS, KEEP CLICKING NEXT TO ACCEPT THE DEFAULTS. YOU NEED C:CYGWIN64BINCYGWIN1.DLL TO EXIST
Compile with CMake
Download and install MSYS2 to set up a MinGW-W64 build environment. After installing, a terminal will launch. Issue the following commands:
$ pacman -Syu $ pacman -S mingw-w64-x86_64 mingw-w64-x86_64-clang mingw-w64-x86_64-cmake mingw-w64-x86_64-libusb mingw-w64-x86_64-qt5-static make git $ export PATH="/mingw64/bin:$PATH" $ git clone git://github.com/Benjamin-Dobell/Heimdall.git $ mkdir -p Heimdall/build $ cd Heimdall/build $ cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DQt5Widgets_DIR=/mingw64/qt5-static/lib/cmake/Qt5Widgets .. $ make
After compiling, open a command prompt/Explorer window and navigate to
%msys64%home%username%Heimdallbuildbin (where “%msys64%” is the directory you installed MSYS2 to, C:msys64 by default). There should now be two executable files in that folder:
heimdall-frontend.exe. You can run them from that directory or move them to a more suitable location. Navigate to
%msys64%home%username%HeimdallWin32Drivers for the Zadig (driver) executable.
heimdall-frontend.exe may compile with an error. It’s OK; you don’t need it.
Get the full odin system image (.tar.md5 file), extract it with 7-zip.
NON-HLOS.bin = LTE modem
modem.bin = 3G modem
Plug the phone into the PC, start it up in bootloader (home + volume down), run Zadig.exe (in heimdall suite) to replace driver for msm8960 device.
Download the PIT file with heimdall to know what the partitions are. heimdall.exe download-pit –output pit.pit
Open the file in notepad++ or anything. The partition names are listed in plain text. e.g. on the Tab4 t337t, they were APNHLOS and MODEM. Those names will be needed for the command switches when flashing.
Copy the modem & non-hlos bin files into the compiled heimdall directory to make your life easier.
Run the command below to flash the firmware to respective partitions:
C:msys64homechrisHeimdallbuildbin>heimdall.exe flash –APNHLOS NON-HLOS.bin –MODEM modem.bin
Copyright (c) 2010-2014 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:
Setting up interface…
Protocol initialisation successful.
Some devices may take up to 2 minutes to respond.
Please be patient!
Downloading device’s PIT file…
PIT file download successful.
APNHLOS upload successful
MODEM upload successful
Releasing device interface…
And it works!