ND7 Boot loop - Verizon Samsung Galaxy Note II

odin'd ND7 for the correct model i605 from a site other than sammobile (download was really slow), everything went through fine when it went to reboot it does a quick boot loop
cannot go to recovery mode, but can go to odin.
cannot flash full tar back to it, it fails on sboot
So I downloaded the file from sammobile and extracted it
thinking maybe I have to make a flash file without the bootloader if possible?
extracted the tar
boot.img
cache.img
hidden.img
modem.bin
recovery.img
sboot.bin
system.img
tz.img

edit. used pit file with odin (read in other threads after the fact) and all seems clear, very noob of me -.-
normally don't have to use it...
anyways still want to know if possible to make without bootloader and/or make something like this:
http://forum.xda-developers.com/showpost.php?p=24278264&postcount=9

Related

[Q] Files in Firmware <-> Odin/Heimdall fields

Hello,
I'm quite new to Android, so please forgive me if my question has been already asked a lot of times (I've searched with no luck btw).
If i unpack a stock FW I see the files listed below. It's unclear to me what some of these are; I'll make my questions inline, please also correct me if I state something wrong. One thing before the questions: I know I don't need to flash most of these files most of the times, I just want to learn what they are I'm familiar with tar archives, unix and so on, I just don't know android.
boot.bin -> Bootloader, listed as "BOOTLOADER" in Odin and "Primary Bootloader" in Heimdall. Heimdall takes the file directly, should I put it alone in a .tar to flash it in Odin?
cache.img -> What is that? Is it flashed with "CSC" (inside a .tar) in Odin? Heimdall has the "cache" field for this one.
factoryfs.img -> User software, flashed in a .tar through the "PDA" field in Odin, heimdall has a field for this one.
hidden.img -> What is that? Which field flashes it?
modem.bin -> Phone firmware/baseband etc. "Phone" field in Odin (inside .tar), "Modem" in heimdall
param.lfs -> what is that? I think it's flashed with PDA (inside .tar) in odin, heimdall has the field
Sbl.bin -> What is that? Which field flashes it?
zImage -> Kernel, i know that one and how to flash it.
Other heimdall fields : secondary bootloader, database data: what are these?
Finally, if I'm not wrong, PIT is the partition scheme (usually it doesn't change) and Recovery is the recovery software (i.e. separate boot partition where you do hard reset)
I know it's a lot of questions the most of you already know well, links to sites describing the firmware structure could do too. I'm a developer at work, so I shouldn't have problems with technical documentation.
Many thanks and sorry for my poor english.
edit: of course I have a galaxy S2 and I'm referring to the files in its firmware. I have a mac and no space to install windows so I really need to understand heimdall
All files are packed in a tarball. If I am not wrong the .img files and the kernel are packed for PDA. PDA is the firmware/rom.
I don't know param.lfs but it looks like it just contains some pictures used for boot etc. (See here)
I would not touch the bootloader, if you screw something up, the device is bricked. Looks like Sbl.bin is familiar with the bootloader (Maybe Heimdall Seconday Bootloader?)
zxz0O0 said:
All files are packed in a tarball. If I am not wrong the .img files and the kernel are packed for PDA. PDA is the firmware/rom.
I don't know param.lfs but it looks like it just contains some pictures used for boot etc. )
I would not touch the bootloader, if you screw something up, the device is bricked. Looks like Sbl.bin is familiar with the bootloader (Maybe Heimdall Seconday Bootloader?)
Click to expand...
Click to collapse
Sbl is an acronym for Secondary Boot Loader! I was blind
I'm looking now for an architectural view of the software, I don't know why there are 2 boot loaders.
Thanks

[Q] Clarification req'd for flashing rom using Heimdall

I'd like to flash to this rom GT-I9100_CPW_I9100XWKI4_I9100CPWKH1_I9100XXKI1.tar which I got from Intratech's thread as I want the older bootloader. I cannot use Odin as I run Linux and don't have access to a MS machine so want to use Heimdall.
Heimdall is installed and I've got as far as extracting the files from the above tar and have the following files.
Sbl.bin
boot.bin
cache.img
factoryfs.img
hidden.img
modem.bin
param.lfs
zImage
My questions are:
Whether I need to flash all the files in that list? I assume yes.
Heimdall offer the option of flashing primary and secondary boot loaders spl1 and spl2). Is Spl.bin above the primary or secondary bootloader?
Heimdall also requires a PIT file. I assume I should use the PIT file that I saved off my device?
I did do a search on here and google but found nothing that really answered all my questions so would appreciate a more knowledgeable person offering their advice.

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

[Q] after modify cache.img odin can't flash

i trying to flash stock rom on my sgs2. but without the sec_csc.zip which in cache.img.
i tried to del the image - failed.
i created empty cache.img with "./make_ext4fs -s -l 256M -a cache cache.img cache_new/".
i put the files (boot.bin, cache.img, factoryfs.img, hidden.img modem.bin param.lfs sbl.bin zimage) in a tar file.
and odin failed.
what should i do?
i dont want to root!
of course it will fail.. the md5 sum already chNged..
lawong said:
of course it will fail.. the md5 sum already chNged..
Click to expand...
Click to collapse
no its not the reason.
the MD5 Check finished Sucessfully.
thanks guys. u figure it out.
the problem was the tar format file.
odin support just "ustar" tar format.
thanks again!

Categories

Resources