[Q] PIT File for Heimdall Flash - Samsung Galaxy Alpha

I wanted to flash a new firmware with my macbook using heimdall but to do this i need the PIT file for this phone. does anyone have any idea where to get this file?
thanks for the help
edit :
i think i found out that you can download the pit from the device using heimdall. but when i click this i get "Failed to send data!Releasing device interface..."
usb debugging is activated. phone is in download mode and detected.

pmcee said:
i think i found out that you can download the pit from the device using heimdall. but when i click this i get "Failed to send data!Releasing device interface..."
usb debugging is activated. phone is in download mode and detected.
Click to expand...
Click to collapse
Yes, you're right - you can retrieve the pit file (i think its a kind of partition table) using heimdall from the device itself.
I had the same problem with heimdall and my (linux) PC as well, and i'm not sure whether my heimdall setup is screwed (didn't have time to try a different phone) or the protocol changed for the alpha...
edit: i tried with a different samsung phone now - that worked
It seems, heimdall doesn't play with the galaxy alpha...
Did anyone suceed in using heimdall with the alpha?

DThought said:
Yes, you're right - you can retrieve the pit file (i think its a kind of partition table) using heimdall from the device itself.
Did anyone suceed in using heimdall with the alpha?
Click to expand...
Click to collapse
Did not dare to try this yet, but you can install USB2 functionality on VirtualBox, and you can download a Windows virtual machine from modern.ie.
You can give VirtualBox hardware access.
This way you can use odin if you are on Linux.
Or not, like I said, didn't dare try this yet. What if something breaks your phone? Just a thought. Try at own risk.

Redsandro said:
Did not dare to try this yet, but you can install USB2 functionality on VirtualBox, and you can download a Windows virtual machine from modern.ie.
You can give VirtualBox hardware access.
This way you can use odin if you are on Linux.
Or not, like I said, didn't dare try this yet. What if something breaks your phone? Just a thought. Try at own risk.
Click to expand...
Click to collapse
I don't see a reason for Odin if you simply can do:
Code:
heimdall download-pit --out slte.pit
heimdall flash --BOOT boot.img --pit slte.pit

Me neither. But if the Alpha does not work with Heimdall, at least for some of us, there's a quite compelling reason to use Odin.

Redsandro said:
Me neither. But if the Alpha does not work with Heimdall, at least for some of us, there's a quite compelling reason to use Odin.
Click to expand...
Click to collapse
I've compiled the latest version available in git and it works just fine ...

Related

[Help] Heimdall 1.3

I'm a mac user, and Kies is still in beta and can't perform updates, (its a pos anyways and I wanna refrain from using it either way).
So the only other alternative for Kies is Heimdall which is similar to Odin, but doesn't have much documentation for the newer version 1.3 other than the readme file that came with it that I have read but still am not confident enough to flash anything.
So can someone please write up a tutorial on how to use it or link me to one. I mainly only want to update my firmware keeping it stock and possibly root with CF-Root while I'm at it, if CF-Root is gonna even work with heimdall.
Thanks in advance.
This should cover it
Woaw. Thank you very much buddy ^_^
Not to hijack the OP's thread, but I have another and related question regarding Heimdall for mac:
When unraring archives either from Intratech or Samfirmware, all the extracted files are of the type .bin and/or .img. I really can't figure out how to get the proper .rfs files that should be used for flashing. Anyone able to show me in the right direction for the answer? I've searched up and down both on the forum and on Google
As of the time being I have a Bootcamp partition only for the sake of using Odin, and I would really like to have those 20GB's back as it should be unnecessary to use Odin in Windows when Heimdall looks like a great tool for the mac (when the proper files are used )
Hrti said:
Not to hijack the OP's thread, but I have another and related question regarding Heimdall for mac:
When unraring archives either from Intratech or Samfirmware, all the extracted files are of the type .bin and/or .img. I really can't figure out how to get the proper .rfs files that should be used for flashing. Anyone able to show me in the right direction for the answer? I've searched up and down both on the forum and on Google
As of the time being I have a Bootcamp partition only for the sake of using Odin, and I would really like to have those 20GB's back as it should be unnecessary to use Odin in Windows when Heimdall looks like a great tool for the mac (when the proper files are used )
Click to expand...
Click to collapse
Heimdall should flash the .bin's or .img's, Heimdall should flash just about anything.
I dont have an OSX machine and havent had time to build a virtualbox img so i cant test
I tried to follow your instructions @veyka but heimdall won't work
When I try to get heimdall to detect my phone it just says "FRONTEND ERROR: Heimdall crashed!"
I tried uninstalling/reinstalling heimdall, still didn't work, then uninstalled Kies cuz it might be interfering but it still doesn't work!
Man I really want this to work....
hank00k said:
I tried to follow your instructions @veyka but heimdall won't work
When I try to get heimdall to detect my phone it just says "FRONTEND ERROR: Heimdall crashed!"
I tried uninstalling/reinstalling heimdall, still didn't work, then uninstalled Kies cuz it might be interfering but it still doesn't work!
Man I really want this to work....
Click to expand...
Click to collapse
Just.. weird...
I do wish I could be more help, but I have no OSX machine to test it on.
Are you on 10.5? As another thread says that it wont run on it, but just crashes, but an upgrade to 10.6 made it work.
Yeh.. Im recommending upgrading your OS to fix a flashing issue, go me.
veyka said:
Just.. weird...
I do wish I could be more help, but I have no OSX machine to test it on.
Are you on 10.5? As another thread says that it wont run on it, but just crashes, but an upgrade to 10.6 made it work.
Yeh.. Im recommending upgrading your OS to fix a flashing issue, go me.
Click to expand...
Click to collapse
I'm on 10.7
I think its not compatible with 10.7 cuz some other apps had to be updated to work properly, including stupid Kies... So I guess downgrading is the solution lmao or waiting for it to be updated
And you've been plenty help by linking me to your other post, now at least I know that it should work...
hank00k said:
I'm on 10.7
I think its not compatible with 10.7 cuz some other apps had to be updated to work properly, including stupid Kies... So I guess downgrading is the solution lmao or waiting for it to be updated
And you've been plenty help by linking me to your other post, now at least I know that it should work...
Click to expand...
Click to collapse
Well, Im not sure, no one in that thread got it to work in the end, but I know people on linux who have flashed with it, and I have on windows so it should work!
Odin might be a iffy PoS but its a iffy PoS that works most of the time.
I've got Ubuntu Linux on an old ibm laptop, so I'll give it a try later.
And I only dream of using Odin but I don't have Windows unfortunately...

Is there an Odin for Mac OS X?

got rid of my windows laptop and sticking with the macbook. currently on ultimate rom but if new roms start coming out for ics and I try it and screw up my phone how would I resort back to stock?
edit: i come back to you defeated. I've searched and tried every damn method mentioned but it just won't recognize my damn vibrant. heimdall can suck my ****
Heimdall
http://forum.xda-developers.com/showthread.php?t=834195
do I need the same tar and pit files with hiemdall that I needed for Odin?
ok I found where to put the pit file and maybe the tar file but not sure about that one. it doesn't recognize the vibrant on download mode.
any macheads here with experience using it?
I'm having trouble too
junglerumble said:
ok I found where to put the pit file and maybe the tar file but not sure about that one. it doesn't recognize the vibrant on download mode.
any macheads here with experience using it?
Click to expand...
Click to collapse
+1
I've been trying to find a way to do this through xda, google, and youtube and I could find a tutorial or a how to. I tried playing around with it, but my mac isn't reading the vibrant for some reason. Help please
I recently switched from PC to Mac and have sort of been dreading the first time I'm forced to figure out Hiemdall. I do know that a few people here actually prefer it over Odin though.
junglerumble said:
heimdall can suck my ****
Click to expand...
Click to collapse
Hahaha...Well said
if you get stuck you can always install a virtual desktop client on your mac like Vbox and run windows as xp is end of life install it and disable automatic updates and it wont tell you its a funky os copy.
then you can get odin if you prefer that.

[Q] rooted kernel with CWM?

Is there a rooted gb kernel with CWN baked into it?
I want to try and root my phone with Heimdall, and, with my E4GT, there were kernels with CWM baked in you could use and root, and get CWM built in with one easy flash; is there anything like this for the Note?
thanks!
wase4711 said:
Is there a rooted gb kernel with CWN baked into it?
I want to try and root my phone with Heimdall, and, with my E4GT, there were kernels with CWM baked in you could use and root, and get CWM built in with one easy flash; is there anything like this for the Note?
thanks!
Click to expand...
Click to collapse
I dont think So, DaG's .2 kernel is the latest GB OC'd kernel and it has Root....but i do not think it has CWM. you will still have flash that via odin. then you can use Braways CWM GUI apk. this tool is freaking awesome!!!
I looked at that one; when I unzipped it, I only saqw a boot img, not a Zimage
which I what I believe I need to flash it in Heimdall; mac only house here, so I have always used heimdall to flash my other samsung phones, and I always was able to extract a zimage file from the .tar..
Any suggestions?
thanks!
EDIT: NM, I think I can just flash the boot.img file
thanks again!
Yes u can flash the boot image....then recovery img
wish777 said:
Yes u can flash the boot image....then recovery img
Click to expand...
Click to collapse
in the same heimdall session? I think it will reboot after you flash the kernel
wase4711 said:
in the same heimdall session? I think it will reboot after you flash the kernel
Click to expand...
Click to collapse
put it all to the same heimdall file (the file you flash)
but I don't think heimdall works, at least I couldn't get it to work with the note
Can you post a link to the kernel and inform us if it works? I need to do the same thing! Mac only here!
braway said:
put it all to the same heimdall file (the file you flash)
but I don't think heimdall works, at least I couldn't get it to work with the note
Click to expand...
Click to collapse
you couldn't get heimdall to recognize your phone, or, you couldn't get the file you wanted to flash to work?
thanks
Ceasare said:
Can you post a link to the kernel and inform us if it works? I need to do the same thing! Mac only here!
Click to expand...
Click to collapse
I havent flashed it yet, bro, but this is the kernel I will use once I do..
http://forum.xda-developers.com/showthread.php?t=1504920
wase4711 said:
you couldn't get heimdall to recognize your phone, or, you couldn't get the file you wanted to flash to work?
thanks
Click to expand...
Click to collapse
heimdall recognized the phone
but i couldn't even pull the PIT...
and without PIT, you shouldn't be able to flash (afaik, because the PIT should define where which image goes, I might be wrong )
braway said:
heimdall recognized the phone
but i couldn't even pull the PIT...
and without PIT, you shouldn't be able to flash (afaik, because the PIT should define where which image goes, I might be wrong )
Click to expand...
Click to collapse
I believe I read somewhere that heimdall doesn't support the qualcomm MSM8960 (snapdragon s3) and similar family chip sets (also present in the skyrocket), so flashing via windows is currently the only option
well, on my last phone, a sammy Epic Touch 4g, you didn't need to have a pit file to do anything; you could flash a image, a modem, and a zimage file with commands like
heimdall flash --kernel zimage
heimdal flash --modem modem.bin
I never used the front end of heimdall, it was all done in a terminal window.
Supposedly, you can use heimdall this way on most Samsung phones, so I am tempted to try it.
I have yet to see anyone with this phone really post that they were successful doing it this way..
wase4711 said:
well, on my last phone, a sammy Epic Touch 4g, you didn't need to have a pit file to do anything; you could flash a image, a modem, and a zimage file with commands like
heimdall flash --kernel zimage
heimdal flash --modem modem.bin
I never used the front end of heimdall, it was all done in a terminal window.
Supposedly, you can use heimdall this way on most Samsung phones, so I am tempted to try it.
I have yet to see anyone with this phone really post that they were successful doing it this way..
Click to expand...
Click to collapse
yes, i also tried that, also didn't work (from my system)
i think the bootloader is slightly different, and heimdall does not support this one yet, but maybe you can get it working, and I did something wrong
(but it can also be what icenight89 said, even though I don't see what this has to do with the cpu )
if you didn't get the "claiming interface" error, and it still didn't work, there is something else at play...
I will probably try it tomorrow anyways, but after hearing your experience, I don't have much faith it will work.
frankly, I have only had the phone for a week, so I am still "learning" how to use it.
I also think that the official ICS is only days away, so, one part of me says to wait another week or so, and then root it once the official ics come out, and our dev's can REALLY do their thing with ICS.
braway said:
heimdall recognized the phone
but i couldn't even pull the PIT...
and without PIT, you shouldn't be able to flash (afaik, because the PIT should define where which image goes, I might be wrong )
Click to expand...
Click to collapse
When you were unable to pull the Pitt file, on which version of Heimdall were you working?
---------- Post added at 11:19 PM ---------- Previous post was at 10:28 PM ----------
Excuse the noobiness, but how does one put it all on the same file? I am trying to not brick my phone, for I am about to flash this kernal
braway said:
put it all to the same heimdall file (the file you flash)
but I don't think heimdall works, at least I couldn't get it to work with the note
Click to expand...
Click to collapse
well, afaik you can also create a package, which contains a xml file, that describes what heimdall has to do,
also, i used the latest (1.3.2 Debian Linux (i386 / x86))
edit: just checked again, it fails at initializing the protocol, so it can connect, but the communication protocol seems to be different
here is the output for print-pit, but i think it is the same for trying to flash something:
$ sudo heimdall print-pit
Heimdall v1.3.2, Copyright (c) 2010-2012, 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!
Click to expand...
Click to collapse

Using Heimdall with Linux, and a bricked i777

First off, I am not a noob. Flashed many roms on many different phones, and up until yesterday was happily flashing away on my s2. But now I'm stumped and no guide or search function has helped me so far. I've tried Entropy's return to stock, and several other threads, to no avail. I was flashing JB yesterday when something borked on the install. Long and short of it is that I cannot even get into recovery to fix it. I CAN however, get into download mode. I downloaded Heimdall with the frontend, downloaded the latest stock image, and booted my phone into download mode to install the image. The frontend says it detects the phone, but when I try to install the firmware it gives a .libs error and will not establish a connection to the phone. I am using Ubuntu 12.04 32bit, do I need ADB set up to use Heimdall? If so, then I need a guide to install on 12.04 since I have not had any luck getting ADB working on my machine. I am a noob to Linux, so be kind.
Regards, Scott
I would just use heimdall command line. I don't use linux much, but Entropy512 always said he didn't use the front end on linux. The command line directions are in his thread, and also in my guides.
I saw your thread, tried the command line, that's when I got the could not connect with phone error.
Sent from my HTC Sensation using xda app-developers app
Scott41373 said:
I saw your thread, tried the command line, that's when I got the could not connect with phone error.
Sent from my HTC Sensation using xda app-developers app
Click to expand...
Click to collapse
If you haven't tried it already, try running heimdall as root. If I remember correctly, that's what I had to do on my Fedora 16 system to flash an image with heimdall.
run heimdall with su or sudo command.
Sent from my SAMSUNG-SGH-I777 using XDA Premium HD app
Will try, also didn't realize firmware needed to be in same path as Heimdall. Thanks
Scott41373 said:
Will try, also didn't realize firmware needed to be in same path as Heimdall. Thanks
Click to expand...
Click to collapse
The firmware really doesn't need to be in the same path as heimdall. When I flashed the rooted GB firmware I didn't have it in the same directory as heimdall and it flashed with no problem.
None of this worked. My phone is still in download mode, but it gave me an error when trying to flash the firmware. Hoping I am not completely hosed
As long as you can put the phone into download mode, you almost certainly can recover. I don't know all the ins and outs of using Heimdall with various linux distributions. You would have to talk to the developer or find a support board for Heimdall. Maybe you need to make arrangements to get access to a windows computer so that you can use odin to flash back to stock.
Scott41373 said:
None of this worked. My phone is still in download mode, but it gave me an error when trying to flash the firmware. Hoping I am not completely hosed
Click to expand...
Click to collapse
This is my be the problem "ATTENTION: Heimdall 1.3.2 broke compatibility for several devices. In most case it is recommended that you use version 1.3.1 instead." via http://www.glassechidna.com.au/products/heimdall/ if you need help getting it set up search YouTube for "Using Heimdall command line"
To get ADB working you need to get the Android SDK android-sdk_r20.0.1-linux.tgz http://developer.android.com/sdk/index.html if you need help getting it set up search YouTube for "Setting up Android SDK Ubuntu 12.4"

[Q] Heimdall with CF AutoRoot

Has anyone successfully used Heimdall to apply CF AutoRoot?
I do not have a Windows machine, so Odin is not an option for me.
If not, I may be willing to be the first to try it - would that be a horrible idea?
I'd be curious if you could. I hate windows.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Person 757845 said:
Has anyone successfully used Heimdall to apply CF AutoRoot?
I do not have a Windows machine, so Odin is not an option for me.
If not, I may be willing to be the first to try it - would that be a horrible idea?
Click to expand...
Click to collapse
I tried, but couldn't get Heimdall to detect my S5.
BLuFeNiX said:
I tried, but couldn't get Heimdall to detect my S5.
Click to expand...
Click to collapse
I was able to get it to detect my phone (I had to put my phone into download mode first), but I ran into two other issues:
- It won't accept the tar.md5 that cf-autoroot provides. It will only accept tar.gz
- It is giving me an issue with libusb - That's probably specific to my laptop, so I'll try to debug this one on my own. (For now, though, I need sleep)

Categories

Resources