Flash stock rom using Heimdall - Galaxy S 5 Q&A, Help & Troubleshooting

Im on Ubuntu and I need to flash the latest rom (6.0.1) using Heimdall but I'm really lost with the process.
The thing is, the file I downloaded is the .tar.md5 format and Heimdall cant read it directly through the GUI version and from what I've read on some forums, I need to flash it using the command line option.
But, how do I do it?

Related

Linux User with Heimdall but new to Android (Galaxy Tab International)

I wanted to post my experience with Heimdall. I suspect that many readers of these forums think that heimdal is easy to use: infact it is, from the little I have used it, but reliable information on its use is sparse. I hope therefore, other new users, who want to use Linux will find this helpful. Please remember these tips are just my experiance, I hope they are helpful but I can't say if they will work for you or not.
Heimdall is in fact ridulously easy to use and I feel a bit a of a fraud writing this down but the lack of examples of use is what held me back from using it for several days (that and I'd need to use my wife's windows laptop to use odin and if something went wrong, who knows when she gets it back!).
I've installed:
Overcome_Kernel_v2.1.3_ODIN.tar and
Overcome_v1.4.4_Full.zip
The Overcome guide is uesful but is written for Odin. The bare process is however simple:
Return to a safe rom/kernel image (I couldn't find the one specified but I was on a rooted stock so I don't think that would be necessary)
Connect the Tab via usb
Put Overcome_v....._Ful.zip into your sdcard
Put the Tab in download mode
Flash the kernel
Wait for the reboot
Reboot and put in CWR
Clear some stuff stuff out and update the rom from the Overcome zip file.
Nearly all of this can be followed (follow the guide this is just a summary from memory) using heimdall instead of odin.
The kernal flash can be done using heimdall so simply. The method I used was: extract the zImage (a compressed kernel image file) from the tar file (into the current directory for example) and flash (as long as the tab is in download mode):
tar -xvf Overcome_Kernel_v2.1.3_ODIN.tar
heimdall flash --kernel zImage
I believe the modem can be flashed in a similarly simple way but I haven't tried it yet, since I don't know if I need to (I have read, some stock modems are very queit and this fixes it):
unzip JMF-Modem.zip
heimdall flash --modem updates/modem.bin
One important thing I have gathered: please (for the most part and unless you know better) ignore any instructions for using heimdall which include the --primary-boot or ---secondary-boot options. You don't need them if you Tab is working properly and have never overwritten the boot loaders. Overwriting the boot loaders seems to be one of the few ways to properly brick you Tab.
Just flashed the JMF modem recommended in the installation guide if you have quiet in call volume, which I started experiencing (along with quiet ring tone on outgoing calls) after an update using CWM 1.4.5_Update & 2.1.4_CUV_CWM.
The command:
heimdall flash --modem modem.bin
worked fine for me (and fixed the volume problem).

Using CF Auto Root on Mac OS X and/or Linux?

As anyone running OS X or Linux would know, the only truly "supported" way of rooting an S4 talked about on XDA is using CF Auto Root and Odin to flash it. There used to be Motochopper, but that no longer works with recent versions of the S4 firmware.
I actually am familiar with the concepts of how flashing a device works, and upon seeing videos or pictures of selecting the CF Auto Root .tar.md5 file for "PDA" in Odin, I wondered if what was going on behind the scenes was as simple as just performing a regular flash to recovery or whatnot.
I downloaded CF Auto Root and extracted the .tar.md5 file. Why it has the .md5 extension, I'm still not sure. Perhaps it's just because Odin requires that extension? I don't know if it's actually important. Inside though, I found 2 files. They were cache.img.ext4 and recovery.img.
I did some research before posting, but didn't find anything definitive. However, I'm assuming that using Heimdall to flash would work. Because Heimdall interfaces with the device the same way Odin does, only Heimdall actually supports OSes other than Windows. Only problem is, Heimdall doesn't have a one-click "PDA" button to flash the .tar.md5 like Odin does. But would using Heimdall to flash the cache and recovery image files work? Is that all that needs to happen for the S4 to be rooted? Or does Odin also perform some additional function, some function which Heimdall wouldn't do automatically?
To make a tl;dr I guess, has anybody tried flashing cache and recovery image files from the CF Auto Root .tar.md5 file to a S4? Did it work? If so, was there anything special you had to do in order to get it to work? Any answers or insight from someone else would be greatly appreciated. If I could get this working with my S4 I might make a video tutorial so that then there's a good tutorial out there that works for OSes other than Windows.
I did it in heimdall. Worked perfectly
Sent from my SPH-L720
xchampx13 said:
I did it in heimdall. Worked perfectly
Sent from my SPH-L720
Click to expand...
Click to collapse
You just entered in the recovery.img and cache.img.ext4 files as they were and flashed? You didn't do anything else?
superriku11 said:
You just entered in the recovery.img and cache.img.ext4 files as they were and flashed? You didn't do anything else?
Click to expand...
Click to collapse
Please follow this link. I just did it a few mn ago, and it worked good. Had to do it twice (don't know why). Flash process takes only a few seconds. In case Heimdall hangs too long (> 1 mn) at " Releasing device interface" with no progress bar, power off your device and start again the process.
http://www.all-things-android.com/content/how-root-samsung-mobile-device

[Q] Rooting Galaxy Note 3 neo SM-N7505 Using Ubuntu/Linux Heimdall Front end

Hello!
I am using heimdall frontend on a Ubuntu/Linux to flash. I loaded it on my system and everything seems to work. I just cannot get it to load the root file.
I have figured out I need a tar.gz not tar.md5 like on a windows odin version flashing app.
I got the root firm here:
http://download.chainfire.eu/399/CF-Root/CF-Auto-Root/CF-Auto-Root-hllte-hlltexx-smn7505.zip
I assume that I need a firmware for my sm-n7505 that is maybe for the type installation I a flashing from. Is there a none windows flashing root file that works with Hemidall? I have searched and searched and all flashing root firmwares seem to be for Windows systems. Anyone point me to a place to get the correct flash rooting firmware for my device sm-n7505??
Much appreciated.

Where is the kernel partition on i337?

I'm trying to use Heimdall to flash a kernel because I have the NI1 kernel and can't find any other way to root. I don't have access to a Windows machine so I can't use Odin. When I try to flash the kernel with heimdall, it says I don't have a kernel partition (nor KERNEL). I checked the PIT file and sure enough, kernel is nowhere to be found.
So how do I flash a kernel with Heimdall?
Not sure what you're going to do with this. Personally, I'd find a Windows pc and use Odin. Messing with the partitions can brick your device if you don't know what you're doing.
http://forum.xda-developers.com/showthread.php?p=40557141
Sent from my Nexus 9 using XDA Free mobile app
I'm following this guide http://www.droidviews.com/root-att-galaxy-s4-sgh-i337-android-4-4-4-kitkat-firmware-i337ucufnj4/
Basically, it seems like the NI1 kernel is not rootable, so you flash a different one, root, then flash back. You think it'll brick if I flash a different kernel to the boot partition?

how to flash my original 5.1.1 kernel ?

HI everybody
I updated my n910H to 5.1.1 , worked well and decided to flash a custom kernel . also faced to problem with wifi and now i decided to flash my original kernel.
i extracted the boot.img from update package N910HXXU1COH4_N910HOLB1COH4_N910HXXU1COH3_HOME.tar
now, im not sure how to flash it !! via odin or anything else needed
thank u for your help
any help ?????
when I had my S3 if I needed the stock kernel I would simply reflash the stock rom since they usually have the stock kernels built-in
Sent from my SM-N910H using Tapatalk
i dont want to reset my phone , i just want to flash the original kernel
mehdi.moha said:
i dont want to reset my phone , i just want to flash the original kernel
Click to expand...
Click to collapse
Never tried with samsung phones (and probably it is not possible) but with my other android devices I just extract the boot.img from the ROM and flash it with fastboot using the command "fastboot flash boot boot.img".
With a samsung device you should probably (or definitely) create a flashable .zip file with the boot.img of your stock ROM and flash it via recovery.
You need to download your original kernel from net, there are 2 types of file you’ll find, one is .zip and another one is .tar. If you download .zip file you have to flash it with recovery (CWM/TWRP) or if you download .tar file (don't try to make your own .tar file) then you can flash it with Odin tool.

Categories

Resources