Using Heimdall with Linux, and a bricked i777 - AT&T Samsung Galaxy S II SGH-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"

Related

[Q] Tried Gingerbread, now bricked - looking for ideas

So, I tried to load Gingerbread and now all I hear now is Linda's annoying voice before it goes to a Kernel Panic.
I have tried using ODIN and Heimdall with no success.
Heimdall just returns a "fail" after about 4 seconds.
Odin3 1.7 returns a "SetupConnection..." and never proceeds.
Some notes to add as I feel these will answer most initial questions.
I am in Download mode (android character digging)
I made sure I had the drivers that came with Heimdall installed when tryign heimdall, and when using ODIN I had the Samsung Galaxy S drivers installed.
I have tried this on multiple computers with the same results.
First w/ a Windows 7 64-bit and the second was a Windows XP 32-bit
Any ideas why it is hanging up?
Any ideas what to try next?
All input is greatly appreciated and I just want to thank anyone who responds in advance for their advice.
- warden
for odin:
Reinstall the SAMSUNG DRIVERS (it works sometimes)
Use a DIFFERENT version of the ODIN program, this works for most people.
And via Ubuntu you don't need specifics drivers i think. Let me know.
Sent from my HTC Desire using XDA App
Why would you hear Linda?
You never got to flash Gingerbread I'm guessing.
Go into download mode and try connecting to Odin. Pull the plug, then battery. Pop it back in and you should see a phone!pc icon. Plug in the USB and maybe Odin will recognize it.
This has worked for me before when Odin wouldn't recognize my device.
1. how do you flash gb or which rom did you flash? the cm7 or beta from whitehawk?
2. what kernel did you flash for cm7?
xriderx66 said:
for odin:
Reinstall the SAMSUNG DRIVERS (it works sometimes)
Use a DIFFERENT version of the ODIN program, this works for most people.
Click to expand...
Click to collapse
Tried your suggestion but no difference in results.
guival said:
And via Ubuntu you don't need specifics drivers i think. Let me know.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
I will setup a VM with Ubuntu and give it a shot. Do you have any download links for the software for Ubuntu?
Cito11 said:
Why would you hear Linda?
You never got to flash Gingerbread I'm guessing.
Go into download mode and try connecting to Odin. Pull the plug, then battery. Pop it back in and you should see a phone!pc icon. Plug in the USB and maybe Odin will recognize it.
This has worked for me before when Odin wouldn't recognize my device.
Click to expand...
Click to collapse
dligon said:
1. how do you flash gb or which rom did you flash? the cm7 or beta from whitehawk?
2. what kernel did you flash for cm7?
Click to expand...
Click to collapse
So, I did install Gingerbread, and I must have messed something up. I was upgrading from Eugene's Unofficial Froyo release. I downloaded the beta from whitehawk, put it on my sdcard, went into recover mode and attempted to install after backing up. After the rainbow screen I got a Kernel Panic screen, waited about 20 minutes just to see what would happen, naturally nothing. I restarted the phone. I get the Vibrant logo, then rainbows, annoying Linda's voice then the Kernel Panic Upload Mode. My assumption is the mistake I made was not having the right kernel, but now its a matter of trying to recover the phone.
Ok, I got it working, really I am not sure how. I was reading on another Galaxy S they use the home button get into download mode. Out of desperation I tried it, while the download mode didn't look any different it responded to ODIN and worked. It could have just been coincidence but whatever it worked. Thanks for all the support and I got Gingerbread in now.
- warden
New drivers and keep trying. It will work eventually
Sent from my SGH-T959 using XDA Premium App
warden xvx said:
Ok, I got it working, really I am not sure how. I was reading on another Galaxy S they use the home button get into download mode. Out of desperation I tried it, while the download mode didn't look any different it responded to ODIN and worked. It could have just been coincidence but whatever it worked. Thanks for all the support and I got Gingerbread in now.
- warden
Click to expand...
Click to collapse
Also you may want to try ginger clone R2.
Its fast as gingerbread but stable
Sent from my SGH-T959 using XDA Premium App

[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...

Fastboot issue: unable to see device

I went to bed last night and the phone worked fine, CM 10.1 nightly. Overnight it must have crashed and I woke up to find it off. I started it up and it asked for a password for encrypted storage (I don't have encrypted storage). I rebooted it again and found it stuck on the GS2 screen and left it for 10 min or so. I tried rebooting again and same action.
I then put it in download mode and it is on the screen but I am not able to see the device on my computer. Ubuntu 13.04.
fastboot devices shows nothing.
Ideas?
Do you have SGH-I777? There is no fastboot on this phone. You would have to use download mode with Odin on a windows machine, or with Heimdall on Linux. You would have to have the correct USB driver installed, but I don't know Linux or what you need there.
creepyncrawly said:
Do you have SGH-I777? There is no fastboot on this phone. You would have to use download mode with Odin on a windows machine, or with Heimdall on Linux. You would have to have the correct USB driver installed, but I don't know Linux or what you need there.
Click to expand...
Click to collapse
After Ging around I found the Heimdall for my Mac and have been trying without luck to get a kernal to install. I am running this command:
sudo ./heimdall flash --kernel zImage --no-reboot --verbose
This error:
ERROR: libusb error -7 whilst receiving packet. Retrying...
Ideas?
dcunited08 said:
After Ging around I found the Heimdall for my Mac and have been trying without luck to get a kernal to install. I am running this command:
sudo ./heimdall flash --kernel zImage --no-reboot --verbose
This error:
ERROR: libusb error -7 whilst receiving packet. Retrying...
Ideas?
Click to expand...
Click to collapse
It's a little out of my experience, since I don't use Mac, and have used Heimdall only with windows. Some have reported having issues getting Heimdall to work with some versions of Mac OS, but I couldn't tell you the specifics. You might have to search out the answers.
Or, maybe it would be easier to borrow a windows machine and use Odin which definitely has less issues.
creepyncrawly said:
It's a little out of my experience, since I don't use Mac, and have used Heimdall only with windows. Some have reported having issues getting Heimdall to work with some versions of Mac OS, but I couldn't tell you the specifics. You might have to search out the answers.
Or, maybe it would be easier to borrow a windows machine and use Odin which definitely has less issues.
Click to expand...
Click to collapse
I am using your one-click stock+root on a Win7 machine, I will let you know how it goes. It appears to be taking awhile on factoryfs.img (10 min or so).
dcunited08 said:
I am using your one-click stock+root on a Win7 machine, I will let you know how it goes. It appears to be taking awhile on factoryfs.img (10 min or so).
Click to expand...
Click to collapse
Try to use one of the USB ports in the back of your machine. I had to restore using creepy's file a few months ago and had trouble at first, was taking way too long for Odin to recognize.
Just like your problem.
Once I moved to the rear port the Odin process worked perfectly, so maybe it will for you.
One other thing - make sure you have an i777 before using the files; Creepy asked you but I don't see where you've replied to that.
Sent from the i777
SteveMurphy said:
Try to use one of the USB ports in the back of your machine. I had to restore using creepy's file a few months ago and had trouble at first, was taking way too long for Odin to recognize.
Just like your problem.
Once I moved to the rear port the Odin process worked perfectly, so maybe it will for you.
One other thing - make sure you have an i777 before using the files; Creepy asked you but I don't see where you've replied to that.
Sent from the i777
Click to expand...
Click to collapse
It is an i777. Do you have Kies installed? Does it matter? I am using a laptop so I am not sure which one is the back
On my laptop i usually use the 1st usb port on the left.
Try a different micro usb/usb cable.
Sent from my SAMSUNG-SGH-I747 using xda premium
4-2ndtwin said:
On my laptop i usually use the 1st usb port on the left.
Try a different micro usb/usb cable.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Does kies matter?
Sent from my Transformer Prime TF201 using Tapatalk 4
If using Odin, just don't have kies open at all. There have been posts by others that kies causes conflicts with odin when both are open at the same time.
Sent from my SAMSUNG-SGH-I747 using xda premium
If you still have problems, find and try a different cable.
4-2ndtwin said:
If using Odin, just don't have kies open at all. There have been posts by others that kies causes conflicts with odin when both are open at the same time.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Agree, Kies is the devil. :thumbdown:
Sent from the i777
SteveMurphy said:
Agree, Kies is the devil. :thumbdown:
Sent from the i777
Click to expand...
Click to collapse
Ok, i uninstalled Kies and reinstalled the USB drivers from Samsung's website. It still seems to stop.
U have gotta try a different micro usb/usb cable, if ya haven't already.
Sent from my SAMSUNG-SGH-I777 using xda premium
4-2ndtwin said:
U have gotta try a different micro usb/usb cable, if ya haven't already.
Sent from my SAMSUNG-SGH-I777 using xda premium
Click to expand...
Click to collapse
I have tried two different ones in three different usb ports on two different computers.
I tried running as administrator, compatibility mode, leaving it for hours. It is definitely seeing the phone and attempting to push it but failing without giving an error message.
Sent from my Transformer Prime TF201 using Tapatalk 4
Then it sounds like you need to try another file, for whatever reason creepy's isn't working for you.
Try Entropy's UCKH7 PDA/tar files in the stickies in the development thread. If that doesn't work I don't know what will.
Sent from the i777

[Q] Recommended ROMs?

I'm trying to buy a cheap smartphone for my girlfriend. Just bought a used Vibrant from eBay only to find it had an IMEI blacklisted by T-Mobile. Already had put CM 10.1 on it and she loved it so I'm pissed.
Any tips for buying a decent used smartphone for under $100? Vibrant seems like one of the best and I'm partial to Samsung. Any recommendations for the fastest Android 4.x ROM with the best battery life for the Vibrant?
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
I'm having a really hard time reflashing to stock. All the write-ups seem to be out of date. I tried the AIO Vibrant Toolbox 2.5 and can't get the phone to show up in Odin. Then I tried these instructions:
http://forum.xda-developers.com/showthread.php?p=18765728
What's the best version of Odin to use currently? Is there a simpler, reliable way to flash back to stock from CM?
VQ30DE said:
I'm having a really hard time reflashing to stock. All the write-ups seem to be out of date. I tried the AIO Vibrant Toolbox 2.5 and can't get the phone to show up in Odin. Then I tried these instructions:
http://forum.xda-developers.com/showthread.php?p=18765728
What's the best version of Odin to use currently? Is there a simpler, reliable way to flash back to stock from CM?
Click to expand...
Click to collapse
Are you putting the phone into download mode before connecting to Odin? You must be in download mode, I prefer Odin 1.7, every other version hangs on me for some reason. I always follow the guide below, never messed with AIO toolbox. Follow this guide to get back to stock JFD (2.1) http://forum.xda-developers.com/showthread.php?t=849028
Sent from my SGH-T959 using Tapatalk 2
iTz KeeFy said:
Are you putting the phone into download mode before connecting to Odin? You must be in download mode, I prefer Odin 1.7, every other version hangs on me for some reason. I always follow the guide below, never messed with AIO toolbox. Follow this guide to get back to stock JFD (2.1) http://forum.xda-developers.com/showthread.php?t=849028
Sent from my SGH-T959 using Tapatalk 2
Click to expand...
Click to collapse
Yeah, had the phone in download mode and was using Odin 1.7. I have the latest Samsung drivers for WIndows installed, and when I mount the SD card the phone shows up properly. That guide you linked to was one I tried. I couldn't get the phone to show up with "adb devices" either, but that was working before I installed CM 10.1. This stuff is so finicky it's frustrating. I've wasted countless hours on three different phones over the past few years, but overall it's worth it to get a better OS.
VQ30DE said:
Yeah, had the phone in download mode and was using Odin 1.7. I have the latest Samsung drivers for WIndows installed, and when I mount the SD card the phone shows up properly. That guide you linked to was one I tried. I couldn't get the phone to show up with "adb devices" either, but that was working before I installed CM 10.1. This stuff is so finicky it's frustrating. I've wasted countless hours on three different phones over the past few years, but overall it's worth it to get a better OS.
Click to expand...
Click to collapse
I assume your running Odin with administrator privileges, if not try that. Maybe try flashing a different rom, a stable rom could fix the issue. Make sure USB debugging is checked, shouldn't affect Odin but worth a try.
Sent from my SGH-T959 using Tapatalk 2
iTz KeeFy said:
I assume your running Odin with administrator privileges, if not try that. Maybe try flashing a different rom, a stable rom could fix the issue. Make sure USB debugging is checked, shouldn't affect Odin but worth a try.
Sent from my SGH-T959 using Tapatalk 2
Click to expand...
Click to collapse
Yeah, tried running as admin.
I just tried Heimdall One-Click, and got the error they mentioned:
Do not flash bootloaders if you see this message:
Code:
Local and device PIT files don't match and repartition wasn't specified!
This message means your partition tables do not match the firmware.
You will need to use Linux to repartition with this firmware package. Install Ubuntu. In Linux, you can copy-pasta this into the terminal to correct the repartitioning problem and then flash bootloaders. http://forum.xda-developers.com/showpost.php?p=17485056&postcount=23
Click to expand...
Click to collapse
Seriously? I don't want to install Linux to flash this phone back to stock! No way to do this from adb in Windows or from within a rooted phone? Maybe I'll just return with with CM installed; the phone is basically a wifi device only unless the seller decides to change the IMEI and resell.
VQ30DE said:
Yeah, had the phone in download mode and was using Odin 1.7. I have the latest Samsung drivers for WIndows installed, and when I mount the SD card the phone shows up properly. That guide you linked to was one I tried. I couldn't get the phone to show up with "adb devices" either, but that was working before I installed CM 10.1. This stuff is so finicky it's frustrating. I've wasted countless hours on three different phones over the past few years, but overall it's worth it to get a better OS.
Click to expand...
Click to collapse
Try re-installing the driver for the phone.
I'm not sure if they changed it in the newer versions of CM but after a certain version you actually need the drivers for the Nexus S rather than the Vibrant for ADB to work properly.
(Someone correct me if this is no longer true)
---------- Post added at 05:02 PM ---------- Previous post was at 05:00 PM ----------
firefly6240 said:
Try re-installing the driver for the phone.
I'm not sure if they changed it in the newer versions of CM but after a certain version you actually need the drivers for the Nexus S rather than the Vibrant for ADB to work properly.
(Someone correct me if this is no longer true)
Click to expand...
Click to collapse
Try here for the driver

[Q] PIT File for Heimdall Flash

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 ...

Categories

Resources