[Q] Unable to install Boot-To-Gecko ("B2G") - Galaxy S II Q&A, Help & Troubleshooting

Hello,
Info: After failing at building Mozilla Boot-To-Gecko myself, I downloaded the build by pulser_g2 (from this thread).
Code:
ccfa6d5fd32d13190febf73f323fe302 B2G-flash-ODIN.tar.md5
61e6d69dd68132b593944934254d7f2d data.img
6bde9ff81be3c3834d55ee046393decd factoryfs.img
93fa4b1825d95ed10cd9834975ca6761 zImage
Then, I did
Code:
$ adb reboot download
and ran
Code:
$ heimdall flash --factoryfs factoryfs.img --kernel zImage --data data.img
But the DATAFS is not uploaded completely - it stops at 87%.
[...]
Uploading DATAFS
87%
ERROR: Failed to confirm end of file transfer sequence!
DATAFS upload failed!
Ending session...
ERROR: Failed to send end session packet!
Re-attaching kernel driver...
Click to expand...
Click to collapse
I have tried several times but it always fails at the same point. I have also wiped the data and cache several times.
My Samsung Galaxy S II was bought in Norway bundled with a subscription from the carrier Tele2. It came with the Android 2.3.5 XWKI8 firmware.
Question: Is the file corrupt? Am I doing something wrong? Is the build not compatible with my phone?

Take a closer look.
pulser_g2 said:
Anyway, what is this? Well, it's a TAR to flash via ODIN (codeworkx informs me not to flash userdata partition via heimdall, I suggest you heed that warning, and this tar contains the userdata partition).
Click to expand...
Click to collapse

oinkylicious said:
Take a closer look.
Click to expand...
Click to collapse
Well, that's embarrassing. I usually read carefully before posting questions, but apparently I failed to do so this time :/

Related

Flashing with heimdall

Hey guys, i used to flash with odin, but those times are now gone. moved to linux for real, so i installed heimdall (and heimdall-frontend).
Honestly it seems that command line is easier to understand. My question is: how do i flash only the bootloader?
I need to use the jig, so i need the old bootloader. i already have the TAR.
to execute a normal rom installation, it seems these are the commands:
heimdall flash --factoryfs factoryfs.rfs --cache cache.rfs --param param.lfs --kernel zImage --modem modem.bin --pit s1_odin_20100512.pit
Click to expand...
Click to collapse
But how about flashing just the bootloader?
Also, i didn't install any samsung drivers...is that possible on ubuntu?
This is linuxmint, but anyway, is ubuntu based. thanks
Well, nevermind guys... i'm going to flash it on a friend's computer. However i would like to learn some more about heimdall. the videos i see on youtube, and on google, are from an early version. as the interface changed, i'm kinda lost now.
appreciate any tips. ty
If you just type "heimdall" in Terminal, then there will be a list of possible arguments you can use.
As far as i know you just have to type:
sudo heimdall flash --primary-boot "boot.bin" --secondary-boot "Sbl.bin"
Click to expand...
Click to collapse
I never flashed only a bootloader, so i don't know if there will be any compatibility problems. But command should work.

flashing stock rom on i9300 using heimdall and linux

hello guys!
Could you please help me to flash stock rom on my i9300 with heimdall?
i downloaded stock firmware for croatia(tmobile) from sammobile and tried to flash rom with mobile odin lite. it worked. kinda. csc was broken and i was not sure shich csc to choose so i rooted my phone back to cm10.
now i'd like to try with heimdall. after unzipping and untaring downloaded file i got following files:
boot.img
cache.img
hidden.img
modem.bin
recovery.img
system.img
How should i flash it?
i'd try by myself but i'm not so sure.
i guess using something like heimdall --primary-boot boot.img --system system.img --modem modem.bin --recovery recovery.img --hidden hidden.img --cache cache.img
is order ok? should i try with different order? and I'm not so sure about boot.img switch because there is --primary-boot and --secondary-boot
Thanks in advance!
devil_kc said:
hello guys!
Could you please help me to flash stock rom on my i9300 with heimdall?
i downloaded stock firmware for croatia(tmobile) from sammobile and tried to flash rom with mobile odin lite. it worked. kinda. csc was broken and i was not sure shich csc to choose so i rooted my phone back to cm10.
now i'd like to try with heimdall. after unzipping and untaring downloaded file i got following files:
boot.img
cache.img
hidden.img
modem.bin
recovery.img
system.img
How should i flash it?
i'd try by myself but i'm not so sure.
i guess using something like heimdall --primary-boot boot.img --system system.img --modem modem.bin --recovery recovery.img --hidden hidden.img --cache cache.img
is order ok? should i try with different order? and I'm not so sure about boot.img switch because there is --primary-boot and --secondary-boot
Thanks in advance!
Click to expand...
Click to collapse
Hi, did you try it? I had the same problem with my italian firmware some days ago. I tried and unfortunately I failed! My phone freezed in "Samsung".
I flashed via CWM that firmware and so now it's working.
But it seems that Heimdall isn't so popular...
devil_kc said:
hello guys!
Could you please help me to flash stock rom on my i9300 with heimdall?
i downloaded stock firmware for croatia(tmobile) from sammobile and tried to flash rom with mobile odin lite. it worked. kinda. csc was broken and i was not sure shich csc to choose so i rooted my phone back to cm10.
now i'd like to try with heimdall. after unzipping and untaring downloaded file i got following files:
boot.img
cache.img
hidden.img
modem.bin
recovery.img
system.img
How should i flash it?
i'd try by myself but i'm not so sure.
i guess using something like heimdall --primary-boot boot.img --system system.img --modem modem.bin --recovery recovery.img --hidden hidden.img --cache cache.img
is order ok? should i try with different order? and I'm not so sure about boot.img switch because there is --primary-boot and --secondary-boot
Thanks in advance!
Click to expand...
Click to collapse
Start with Hiemdall --print-pit>tmp.txt.
Then open tmp.txt in a text editor, You will see the proper names of the partitions. Then you have to match the partition names from the phone to the file names in your rom image. The command you typed seems mostly correct, but you need to check these partition names to make sure your current rom matches up, for instance,"--primary-boot" might be "--boot", and "--modem" might be "--radio" but don't quote me on that.
skeptonomicon said:
Start with Hiemdall --print-pit>tmp.txt.
Then open tmp.txt in a text editor, You will see the proper names of the partitions. Then you have to match the partition names from the phone to the file names in your rom image. The command you typed seems mostly correct, but you need to check these partition names to make sure your current rom matches up, for instance,"--primary-boot" might be "--boot", and "--modem" might be "--radio" but don't quote me on that.
Click to expand...
Click to collapse
Thanks man! but unfortunately my i9300 died of sds and i'm trying to get it fixed by samsung. with no luck so far.
sending it back to service tomorrow and we'll see. but this is good to know, thanks!

[Q] Odin/Heimdall help

I can only get into download mode on my phone. So I am trying to flash a stock ROM. When using either Odin or Heimdall its goes to 100% kernel and gets stuck there then fails. In the Heimdall command line its says...
Uploading KERNAL
100%
ERROR: Failed to confirm end of file transfer sequence!
KERNEL upload failed!
Ending session...
ERROR: Failed to send end session packet!
Any ideas what I am doing wrong? I followed Entropy's guide on Heimdall.

[Q] Does anyone have the param.lfs file for the YP-GS1 North American Version?

At the moment, I have messed something up by using Heimdall 1.3.2 and caused param.lfs and the kernel to go out of wack, causing the Android recovery menu to show up. I reflashed the PARAM, KERNEL, FACTORYFS and CACHE to the ones listed here http://forum.xda-developers.com/showthread.php?t=1864741 (it was only for the European version). I am wondering if anyone here has the param.lfs for the North American version lying around? I kinda need that to fix the problem. xD
htfkid2000 said:
At the moment, I have messed something up by using Heimdall 1.3.2 and caused param.lfs and the kernel to go out of wack, causing the Android recovery menu to show up. I reflashed the PARAM, KERNEL, FACTORYFS and CACHE to the ones listed here http://forum.xda-developers.com/showthread.php?t=1864741 (it was only for the European version). I am wondering if anyone here has the param.lfs for the North American version lying around? I kinda need that to fix the problem. xD
Click to expand...
Click to collapse
I have caused mine to go to android recovery EVERY time i tried to use heimdall on it. I am able to get my device working again by using odin to flash the north american kernel/system. With that said, I very much want to get heimdall working, so if you think param.lfs is what you need, please help me get it for you.
# busybox find . -name param.lfs
#
I have 13 of these devices with me right now. Let me know how to help you get heimdall working!
if you use IRC, i can be found in ##yp-gs1 on freenode.
-krzee
*note to readers, you can simply use odin and avoid this headache
after working on this for awhile here are my results:
i got the pit file using heimdall-frontend (which evidently is not the same as the eu device, when i used the eu pit i got complaints from heimdall)
on an already rooted device:
i grabbed my cache.img with
Code:
# dd if=/dev/block/mmcblk0p7 of=cache.img
i grabbed param.lfs with
Code:
# dd if=/dev/block/mmcblk0p4 of=param.lfs
but when i try to load these (without the cache.img) using heimdall-frontend i get a boot loop.
if i also include cache.img i get:
100%
ERROR: Failed to confirm end of file transfer sequence!
CACHE upload failed!
Click to expand...
Click to collapse
I got the same results in command line:
Code:
heimdall flash --factoryfs factoryfs.img --kernel normalboot.img --param param.lfs --cache cache.img
gives the same CACHE upload error, and without --cache i get a boot loop.
all we really need to load here is the factoryfs to root the device, and also the normalboot for anyone who loaded the EU rom prior (to get their home key back) so i would be plenty happy with only loading factoryfs, but even with only that I get boot loops.
when we were on IRC last night you ended by asking if i have a skype, but not leaving yours for me. The answer is yes, so hop on IRC and I can give it to you, or leave me yours where ever and i will add you. for now, here is the cache.img and param.lfs which i mentioned above. I expect you will get the same results, but I hope I am wrong.
Let me know how they work for you.
Also, yesterday you asked about releasing a heimdall package. While reading up on heimdall-frontend I found that it is easy to package for heimdall once we get this working, so I would be happy to release a heimdall package for this after we get it working.
http://hemp.ircpimps.org/cache_param.tgz is the cache and param, please let me know after you have downloaded them so i can remove them from my site, since we are only testing and these are not for release.

Can't boot into recovery after flashing the recovery image

Hi!
I have a problem with a I9100. I follow the instructions on CyanogenMod wiki for flashing the recovery, but something went wrong.
I used heimdall 1.4.0 in GNU/Linux and execute
Code:
sudo heimdall flash --kernel zImage --no-reboot
All worked well and the blue progress bar appears on the screen. When it finished, I tried to enter recovery using the VolUp+Home+PowerUp buttons combination, the Samsung Galaxy S2 logo appears on the screen but it is stuck on this screen.
I tried to re-download the zImage file (using another link, different from the CM wiki one, but the same happened.
Is there an easy way to reboot into recovery from Heimdall, like with fastboot on other devices?
Is possible to install a recovery in another way?
Best regards and thanks in advance
Lk2 said:
Hi!
I have a problem with a I9100. I follow the instructions on CyanogenMod wiki for flashing the recovery, but something went wrong.
I used heimdall 1.4.0 in GNU/Linux and execute
Code:
sudo heimdall flash --kernel zImage --no-reboot
All worked well and the blue progress bar appears on the screen. When it finished, I tried to enter recovery using the VolUp+Home+PowerUp buttons combination, the Samsung Galaxy S2 logo appears on the screen but it is stuck on this screen.
I tried to re-download the zImage file (using another link, different from the CM wiki one, but the same happened.
Is there an easy way to reboot into recovery from Heimdall, like with fastboot on other devices?
Is possible to install a recovery in another way?
Best regards and thanks in advance
Click to expand...
Click to collapse
try 'Odin flash' of a recovery file from a windows Pc and see
Thanks for your answer.
I tried to flash the TAR package with zImage inside from Odin, and same result.
I tried to flash a stock ROM with Odin, and it gives me a non-readable error (a lot of []).
I tried to decompress the stock ROM and flashing with heimdall:
Code:
sudo heimdall flash --primary-boot boot.bin --cache cache.img --factoryfs factoryfs.img --hidden hidden.img --modem modem.bin --param param.lfs --secondary-boot Sbl.bin --kernel zImage --no-reboot
And it fails (primary-boot not recognized):
Beginning session...
Session begun.
Downloading device's PIT file...
PIT file download successful.
ERROR: Partition name for "primary-boot" could not be located
Ending session...
Releasing device interface...
Re-attaching kernel driver...
Click to expand...
Click to collapse
Any idea?
Type this in android terminal emulator:
Su
Reboot recovery
Send from my SGS2 I9100 with HassanROM and latest DorimanX 8.xx kernel
I can't do "reboot recovery" from Android Terminal because I have another issue (read bellow)
Something went wrong with Heimdall. After all, using Odin I was able to boot into recovery mode and flash the ROMs, but when I tried to reboot in "normal mode" I got a "kernel panic upload mode rst_stat=0x200000000" screen.
I did a little research and it appears to be mandatory to flash a stock ROM and begin again with all the process.
I tried it, with the latest stock ROM for my country and company, but Odin return an extrange error when I press in "Start" button. The popup Windows puts the filename and a lot of "squares" (character with a different encoding, like chinese).
EDITED: I was able to flash the stock ROM, but the phone still doesn't boot. The yellow triangle disappeared but it cannot but
What can I try next?

Categories

Resources