Heimdall and MacOSX: Update Stock.

unkeen

Member
Nov 16, 2011
10
9
0
ALL CREDITS go TO: Benjamin Dobell, http://www.glassechidna.com.au THANK YOU!!

I AM NOT RESPONSIBLE, IF YOU TOAST YOUR DEVICE IN THE PROCESS!! Any damage done is YOUR fault, not mine and I am not responsible!

What is this guide for? It has all been said before, but I like comprehensive guides that cover the essentials and can somehow be understood by newbies! AND be found by the title.

First: Why do I use heimdall or why should you use it? Odin is available for Windows, but not for MacOSx or Linux and I didn't use Windows the last 8 years, if I could avoid it and I often don't install it at all, because I normally don't need it. Heimdall is opensource and theoretically easy to use and straight forward. In the process, you even learn what you are doing and are a bit more AWARE of the whole process. Nice side effect.
Start: Download version 1.3.1 (1.3.2 has sometimes problems with the CACHE upload) or compile the latest version via command line. A README is included. Reading is power, remember it and have a look, BEFORE actually flashing a new firmware or ROM.

https://github.com/Benjamin-Dobell/Heimdall/downloads
heimdall-suite-1.3.1-mac.dmg

1) You did install Kies, if not do it.
2) Some of the kext files, kernel extensions, do prevent heimdall from working correctly. Unload them inside the Terminal. Open Terminal and type:
THE
$
SIGN SHOULD NOT BE INCLUDED!!, but shows YOU that you should type the commands inside the command line (Terminal). Open a Terminal Window and Type:
$ sudo kextunload -b com.devguru.driver.SamsungComposite
$ sudo kextunload -b com.devguru.driver.SamsungACMData
$ sudo kextunload -b com.devguru.driver.SamsungACMControl

Type your account password.
4) Now: There is a frontend, but it's easier to use the command line actually!! The documentation is better and the verbose output shows the progress.
5) Have a look at heimdall's command line syntax and manual. Type
$ heimdall

6) Did you download a firmware image from sammobile or XDA? Unzip or untar it inside FINDER. Afterwards, you have got a folder and inside a few files looking like:
Sbl.bin
cache.img
factoryfs.img
hidden.img
modem.bin
zImage

7) The extensions can also be ".rfs" instead of ".img" . It doesn't matter.
8) Terminal: change directory to the firmware folder by dropping it to the terminal window after Typing "cd ":
$ cd /Users/YOURNAME/DOWNLOADS/FOLDER
Where are we now?? Type
$ pwd
/Users/YOURNAME/DOWNLOADS/FOLDER
which files are inside?? Type
$ ls
Sbl.bin
cache.img
factoryfs.img
hidden.img
modem.bin
zImage

9) Go to Download mode, i.e. with Volume down+Menu THAN +Power on, enter Download mode with Volume button
10) Is your cellphone recognized by heimdall?? Type
§ heimdall detect
Device detected

IF not: go back to 2) and unload kextfiles!!

10) My problem was that I didn't find the right syntax for the command line. It's documented in the README file and easy but ypu want to know what you do and not to brick the device. Reading is power, but I forgot about reading ALL of the README.

11) You can use a PIT file and should download it BEFORE flashing for the first time! It's a partition map of your cellphone. Type
§ heimdall download-pit --output PIT.pit
You saved it to the Firmware / Rom folder that you "cded" into before.
12) Start Flashing: YOU CAN BRICK YOUR DEVICE!! REMEMBER THAT and it's not my fault, if you toast it or if you made an expensive PAPERWEIGHT!!
13) You have got a few different files. Something like: Type
$ ls |more
PIT.pit
Sbl.bin
cache.img
factoryfs.img
hidden.img
modem.bin
zImage
14) OPen a text editor and fill in your files. There are more options. You could root your device, but I don't cover how to do it. Use the search button.
--pit PIT.pit --factoryfs factoryfs.img --cache cache.img --hidden hidden.img --secondary-boot Sbl.bin --kernel zImage --modem modem.bin

15) Flash the whole thing by typing and copying:
§ sudo heimdall flash --pit PIT.pit --factoryfs factoryfs.img --cache cache.img --hidden hidden.img --secondary-boot Sbl.bin --kernel zImage --modem modem.bin

Wait. Don't wet your panties. It should look like:

Heimdall v1.3.1, Copyright (c) 2010-2011, 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...
Setting up interface...

Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
Handshaking with Loke...

Beginning session...
Session begun with device of type: 131072

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

Uploading KERNEL
100%
KERNEL upload successful
Uploading CACHE
100%
CACHE upload successful
Uploading MODEM
100%
MODEM upload successful
Uploading FACTORYFS
100%
FACTORYFS upload successful
Uploading HIDDEN
100%
HIDDEN upload successful
Ending session...
Rebooting device...

15) Your done. Congrats! If your phone booted to the recovery, choose reboot with volume buttons and use the Power button to confirm it.

Did I forget sth. important? Write me a PM.


All credit goes to the developer! THANK you very much.
 
A

AndroidSlave

Guest
Thanks for the guide, although I fear issues... I am sticking with Odin through Parallels for the time being, but will give this a go soon...

Sent from my GT-N7000 using Tapatalk 2
 

jonneymendoza

Senior Member
Mar 10, 2008
561
16
0
london
Doesnt work

heimdall flash --recovery openrecovery-twrp-2.6.3.0-jgedlte.img
Heimdall v1.3.1, Copyright (c) 2010-2011, 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...
Setting up interface...

Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
ERROR: Failed to initialise protocol!

---------- Post added at 01:04 PM ---------- Previous post was at 01:03 PM ----------

Doesnt work

heimdall flash --recovery openrecovery-twrp-2.6.3.0-jgedlte.img
Heimdall v1.3.1, Copyright (c) 2010-2011, 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...
Setting up interface...

Checking if protocol is initialised...
Protocol is not initialised.
Initialising protocol...
ERROR: Failed to initialise protocol!
 

L0rdR4gn4r

New member
Nov 24, 2014
1
0
0
Hi, I know this is an old one and wrong phone, but i need to flash my S6 using my MAC. I brought the files in following order:

--pit PIT.pit --cache cache.img --hidden hidden.img --secondary-boot sboot.bin --modem modem.bin

but i don't know the commands for the following files:

recovery.img, system.img, boot.img, cm.bin

Thanks for helping me out.
 
A

AndroidSlave

Guest
Hi, I know this is an old one and wrong phone, but i need to flash my S6 using my MAC. I brought the files in following order:

--pit PIT.pit --cache cache.img --hidden hidden.img --secondary-boot sboot.bin --modem modem.bin

but i don't know the commands for the following files:

recovery.img, system.img, boot.img, cm.bin

Thanks for helping me out.
Use parallels and Odin,or a pc