Hey all,
I was wondering what the pit file does exactly. I know you need it for Odin, and use it with tar or md5 files, just not sure what it does.
The Tar & Md5 files are all the roms and modems in one file so I know what those are.
Thanks
Force
forcelite said:
Hey all,
I was wondering what the pit file does exactly. I know you need it for Odin, and use it with tar or md5 files, just not sure what it does.
The Tar & Md5 files are all the roms and modems in one file so I know what those are.
Thanks
Force
Click to expand...
Click to collapse
Im pretty sure it shows where to put things.
Sent from my SPH-D700 using XDA App
The pit file tells Odin how to divide the partitions (for formating) and also where certain components go when flashing them individually.
Sent from my SPH-D700 using Tapatalk
mattallica76 said:
The pit file tells Odin how to divide the partitions (for formating) and also where certain components go when flashing them individually.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
This - it's like a map for Odin.
i dont use the pit file, do i need to use it when i odin???
VeNoM vZ said:
i dont use the pit file, do i need to use it when i odin???
Click to expand...
Click to collapse
Yes.
10char
VeNoM vZ said:
i dont use the pit file, do i need to use it when i odin???
Click to expand...
Click to collapse
Depends what you are using for a file. The .tar files already have the PIT as part of the file and ODIN automatically recognizes it. I guess it wouldn't hurt anything to put the PIT in with all the files (some do it this way).
VeNoM vZ said:
i dont use the pit file, do i need to use it when i odin???
Click to expand...
Click to collapse
Only if you are flashing a modem, etc. Generally not needed for a full system image but it couldn't hurt. Only 3-4 extra clicks to save yourself having to reflash.
Sent from my SPH-D700 using Tapatalk
Can someone skilled please explain in detail how to create a non-wipe version of a given stock rom?
I know that the data.img has to be removed from the according .tar.md5 file (see picture), in order to do that you have to open the file with a zip program (remove the .md5 or open it with "open with").
The problem is, after removing the data.img the .tar.md5 file want flash proper with odin. I guess this is due to a wrong md5 sum which was not changed during this process, and therefore is no longer valid!
I remember that I read once that you have to use a specific packer for that (winrar for example is not able to do this), but I cant find this source again!
Can someone please illuminate us in regard to that?
Thank you very much in advance!
ps.:
I posted this in development section because I think this is more development related as Q/A! If this violates the forum rules any mod should feel free to move this thread into Q/A...
You don't have to keep the .md5 extension to flash via odin, and thus skip the md5 checksum check.
But I don't know if it will flash properly after you removed the data.img
I have never tried that. Maybe you still have to modify a script or something...
I thought of using Mobile Odin and not selecting the Code.tar.md5 through the open file dialog, but rather selecting every part to flash individually and NOT selecting anything for data.
Too scared to try...
thanks latoc!
can someone with experience confirm that is it enough to remove the data file from the tar, repack it and don't add .md5?
I tried the mobile odin method and it wiped my phone even though nothing was selected in the data part.
There must be a script somewhere that tells the phone to wipe...
I made a backup before so no problem for me
Sent from my GT-N7000 using XDA App
Use peazip, it can create working tar images that can be flashed. Winrar corrupts tar. Some say 7z also does a good job. I haven't tried it as I was happy with peazip. You can even use gzip. Hope it helps.
You can even extract all the contents, remove add files, then use paezip or gzip to make a tar. Works perfectly. MD5 is not a necessity. If you want, you can create a MD5 hash for the new tar that you have created. Google it. Its easy.
ragin said:
Use peazip, it can create working tar images that can be flashed. Winrar corrupts tar. Some say 7z also does a good job. I haven't tried it as I was happy with peazip. You can even use gzip. Hope it helps.
You can even extract all the contents, remove add files, then use paezip or gzip to make a tar. Works perfectly. MD5 is not a necessity. If you want, you can create a MD5 hash for the new tar that you have created. Google it. Its easy.
Click to expand...
Click to collapse
thanks for the answer!
peazip uses 7zip via console, so its the same!
anyway, the tar from peazip wont flash! odin (1.83 and 1.85) stops with an error (could not write) with the boot.bin (from my modified tar), after that the phone wont boot and give the message: firmware update failed, use kies recovery mode blabla
only way to get it back to life without kies is to flash a proper boot.bin (sbl.tar), which is the software boot loader.
did you experience anything like that before?
No one with an idea?
There must be enough people with this knowledge around here...
Sent from my GT-N7000 using xda premium
I didn't try it myself but someone else post this link to this thread in the SGSII forums about what you're asking about, I want to try when I get home and get the latest LA3 firmware but here it is:
http://forum.xda-developers.com/showthread.php?t=1132724
matius44 said:
I didn't try it myself but someone else post this link to this thread in the SGSII forums about what you're asking about, I want to try when I get home and get the latest LA3 firmware but here it is:
http://forum.xda-developers.com/showthread.php?t=1132724
Click to expand...
Click to collapse
And this supercomplicated procedure achieves what exactly?
A non-wiping rom update?
I think he just wanted to delete the data image, repack and flash with odin.
Just needed the correct packer. Right?
legion1911 said:
And this supercomplicated procedure achieves what exactly?
A non-wiping rom update?
I think he just wanted to delete the data image, repack and flash with odin.
Just needed the correct packer. Right?
Click to expand...
Click to collapse
right, it should be enough to delete the data.img!
it looks like the problem is the packer, although i'm in contact with intratech (who is a xda-mod who did this a few times @sgs2 forums, besides he's really great in what he is doing!) and he meant that there could also be a wipe instruction inside the cache.img!
when i know more i will post it here!
TML1504 said:
right, it should be enough to delete the data.img!
it looks like the problem is the packer, although i'm in contact with intratech (who is a xda-mod who did this a few times @sgs2 forums, besides he's really great in what he is doing!) and he meant that there could also be a wipe instruction inside the cache.img!
when i know more i will post it here!
Click to expand...
Click to collapse
Great! Will be waiting for you're simpler procedure as I found that way hard myself!
Sent from my GT-N7000
TML1504 said:
thanks for the answer!
peazip uses 7zip via console, so its the same!
anyway, the tar from peazip wont flash! odin (1.83 and 1.85) stops with an error (could not write) with the boot.bin (from my modified tar), after that the phone wont boot and give the message: firmware update failed, use kies recovery mode blabla
only way to get it back to life without kies is to flash a proper boot.bin (sbl.tar), which is the software boot loader.
did you experience anything like that before?
Click to expand...
Click to collapse
I think you can safely remove boot.bin from the tar file. You should verify this before trying.
PS : If the bootloaders havent changed, why do you want to flash them? They are already there.
That packer could be used to easily install anything.
So if you find that packer, please let us know.
ragin said:
I think you can safely remove boot.bin from the tar file. You should verify this before trying.
PS : If the bootloaders havent changed, why do you want to flash them? They are already there.
Click to expand...
Click to collapse
it would be ok to remove the boot.bin as well, but then the flash would fail on the next (first) file odin tries to flash!
in case of not deleting boot.bin, this would be the first and therefore damage the boot partition, a reboot is not possible. that's the reason i hat to reflash sbl.bin!
the reason for this is again the packer, if the .tar would be ok, so would be the flash procedure!
intratech suggests to use linux and the following command to create a odin flashable tar:
Code:
tar -c boot.bin cache.img factoryfs.img hidden.img modem.bin param.lfs Sbl.bin zImage >> [Name of the desired file].tar
i will look far a tar executable for win32 and report!
done!!!
found a working packer: tar for win32
this was a little bit tricky, because the download from http://gnuwin32.sourceforge.net/packages/gtar.htm did not work, i always get the error message "The procedure entry point libiconv_close could not ..."
searching in google about that i discovered the following:
in the download from sourceforge is an old dll, the "libiconv-2.dll" which causes this error! you have to download a newer version from diffutils 2.8.7-1, which can be found here!
then, simple rename the inside libiconv2.dll to libiconv-2.dll and overwrite the one in the \bin dir from the C:\Program Files\GnuWin32\bin!
then add "C:\Program Files\GnuWin32\bin" to the path variables of your system, then you can use the tar command from the whole shell!
lol, until now this was all to get the tar program running! all people running linux won't need this steps, as tar should be fully functional for them!
then simple extract the rom files with whatever packer you like, you should see a file named "CODE_N7000XXLA3_CL880036_REV02_user_low_ship.tar.md5" or whatever your original rom is. remove the .md5 and extract again, then you should end up with some more files:
boot.bin
cache.img
data.img
factoryfs.img
hidden.img
param.lfs
sbl.bin
zimage
now, tar the files you want to flash into one file with the shell command from intratech, for example:
tar -c boot.bin factoryfs.img hidden.img param.lfs sbl.bin >> filename.tar
you can also add whatever kernel you wish, add a zimage then!
DO NOT ADD CACHE.IMG, AS IT CONTAINS THE WIPE COMMAND!!!
now flash this file (and perhaps the proper modem.tar.md5) with odin as PDA (modem as phone) and you are done!
upgraded with this method from KL7 to LA3 without wipe and without any problems. once you have tar for win32 up and running it's really simple!
big thanks to intratech for aiding me about the cache.img and the tar syntax!!
ps.: i don't care about the yellow triangle nor the flash counter, as it is very easy to reset: use the sbl.bin from the sgs2, flash it, remove battery, use usb-jig, remove battery, flash sbl.bin from note, remove battery, done! no triangle, counter at 0
TML1504 said:
done!!!
found a working packer: tar for win32
this was a little bit tricky, because the download from http://gnuwin32.sourceforge.net/packages/gtar.htm did not work, i always get the error message "The procedure entry point libiconv_close could not ..."
searching in google about that i discovered the following:
in the download from sourceforge is an old dll, the "libiconv-2.dll" which causes this error! you have to download a newer version from diffutils 2.8.7-1, which can be found here!
then, simple rename the inside libiconv2.dll to libiconv-2.dll and overwrite the one in the \bin dir from the C:\Program Files\GnuWin32\bin!
then add "C:\Program Files\GnuWin32\bin" to the path variables of your system, then you can use the tar command from the whole shell!
lol, until now this was all to get the tar program running! all people running linux won't need this steps, as tar should be fully functional for them!
then simple extract the rom files with whatever packer you like, you should see a file named "CODE_N7000XXLA3_CL880036_REV02_user_low_ship.tar.md5" or whatever your original rom is. remove the .md5 and extract again, then you should end up with some more files:
boot.bin
cache.img
data.img
factoryfs.img
hidden.img
param.lfs
sbl.bin
zimage
now, tar the files you want to flash into one file with the shell command from intratech, for example:
tar -c boot.bin factoryfs.img hidden.img param.lfs sbl.bin >> filename.tar
you can also add whatever kernel you wish, add a zimage then!
DO NOT ADD CACHE.IMG, AS IT CONTAINS THE WIPE COMMAND!!!
now flash this file (and perhaps the proper modem.tar.md5) with odin as PDA (modem as phone) and you are done!
upgraded with this method from KL7 to LA3 without wipe and without any problems. once you have tar for win32 up and running it's really simple!
big thanks to intratech for aiding me about the cache.img and the tar syntax!!
ps.: i don't care about the yellow triangle nor the flash counter, as it is very easy to reset: use the sbl.bin from the sgs2, flash it, remove battery, use usb-jig, remove battery, flash sbl.bin from note, remove battery, done! no triangle, counter at 0
Click to expand...
Click to collapse
Bravo, Wiener, Bravo!
Btw I found another way and just did it.
I used dsixda kitchen to deodex, root, zipalign and make a non-wipe version and it was easy!
Thought I might share it with you guys
Sent from my GT-N7000
thx for the info, but i personally dislike most deodexed roms!
besides it could cause unknown troubles (remember tha smali baksmali issue) it generally runs less smooth! the reason? simply speaking odexed is optimized (the o in odex), deodex trades this optimizations for the advantage of being simpler to skin, modify etc.
this means deodexed may be acceptable for people who want to skin and modify a lot, therefore almost all custom roms are deodexed. it makes it simpler for the cook!
you as an enduser would almost always prefer odexed roms. also lots of quality mods are available for odexed too...
just my opinion, and i used to use custom roms a lot!
Sent from my GT-N7000 using xda premium
Ok I just upgraded from KKA to LA3 without wiping using nothing but the stock files and mobile odin:
Launch mobile odin, and fill each line one by one, selecting the correct firmware file, except data and cache.
Select ever root if you didn't select a rooted kernel, and flash that baby! !!
Sent from my GT-N7000 using XDA App
Latoc said:
Ok I just upgraded from KKA to LA3 without wiping using nothing but the stock files and mobile odin:
Launch mobile odin, and fill each line one by one, selecting the correct firmware file, except data and cache.
Select ever root if you didn't select a rooted kernel, and flash that baby! !!
Sent from my GT-N7000 using XDA App
Click to expand...
Click to collapse
also thx, for me this didn't work from KL7 to LA1, got bootloops! but generally fine if this was only my fault, and the odin method works fine!
I downloaded the EC09 debinged, but I get "MD5 hash value is invalid
<OSM> ec09debinged.tar.md5 is invalid." I'm doing it through ODIN, through PDA like the directions said, and it's the same file type as the other EC09, no I'm not sure what's going on. Any help would be appreciated.
Masoria said:
I downloaded the EC09 debinged, but I get "MD5 hash value is invalid
<OSM> ec09debinged.tar.md5 is invalid." I'm doing it through ODIN, through PDA like the directions said, and it's the same file type as the other EC09, no I'm not sure what's going on. Any help would be appreciated.
Click to expand...
Click to collapse
probably a corrupted download, if you didn't alter the file in anyway. The only reason you should get an invalidhash, us if the file was changed in some way, after the hash was made. Which thread were you following for this?
Dished out by my dumb digits
The actual thread for it. I haven't messed with the file at all, just downloaded it to my desktop.
Masoria said:
The actual thread for it. I haven't messed with the file at all, just downloaded it to my desktop.
Click to expand...
Click to collapse
So more than likely a bad download job. Like txwolf said,Redownload and try again.
Also correct me anyone. But don't you have to unzip for. Tar to flash in Odin? Its been awhile lol
Sent from my SCH-I400 using xda premium
The links are down now I didn't have to unzip them to install the stock EC09, so idk. I might just stick with stock for a while then. Thanks!
Masoria said:
The links are down now I didn't have to unzip them to install the stock EC09, so idk. I might just stick with stock for a while then. Thanks!
Click to expand...
Click to collapse
Ok that is pat's thread. I think he's putting up alternative links. And, ciscogee, if the file is uploaded as a md5.7z, our some other extra compression, you'd have to unzip it to tar.md5. But, the hash would be made before the extra compression was applied, so that still wouldn't cause an invalid hash, unless Masoria was trying to flash it with the extra layer of compression intact.
Dished out by my dumb digits
Ok so i was trying to root my SGS and got stuck in the first step.
It says after u download the zip u unzip and there is supposed to be a .tar file.
But after i unzipped mine was another zip so i unzipped that and there was some weird file called : zImage
Its not a tar file so says my computer. Is it supposed to be like that? Any help will be thanked.
So i tried rooting my phone and it didn't work, i am on gingerbread and have no experience about SGS but have some experience about android.
So after i failed my root i tried turning on the phone but this weird picture of a phone/yellow triangle/computer
And it won't let me turn on the phone fully, i can only go to download mode and nothing else. i have tried hard reset but not working.
Please help!
Simliar problem as this http://forum.xda-developers.com/showthread.php?t=805923.
just unzip it first one and its tar file just put it in pda in odin and flash it. don't
Sent from my GT-I9100 using Tapatalk 2
yahyoh said:
just unzip it first one and its tar file just put it in pda in odin and flash it. don't
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
From properties it said that the zImage file is a tar file so should i flash using that?
Edited description
cuz u have to flash the kernel and the phone will boot. as i said before just unzip the downloaded file the put the unziped file in pda in odin
don't extract the zimage file from the tar file
Sent from my GT-I9100 using Tapatalk 2
androidboss7 said:
From properties it said that the zImage file is a tar file so should i flash using that?
Click to expand...
Click to collapse
the zimage is inside the tar file don't extract it just flash the tar file
Sent from my GT-I9100 using Tapatalk 2
You have to flash a complete stock rom to get the phone to work
Gesendet von meinem GT-I9000 mit Tapatalk
Start with settings in Windows file manager = show file extensions (like .tar .zip .txt .exe)
Depending on what program used to unzip, .zip and .tar might have same icons. Show file extension to see difference.
Sent from my GT-I9000
yahyoh said:
the zimage is inside the tar file don't extract it just flash the tar file
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
thats what i did and this is what happened.
do i have to flash to stock rom again or can i just root again and it will
boot?
The zimage file is contained in the .tar, but still you need to flash the .tar file...
.Tar files seem like zip files and can be extracted, so to solve the windows showing the file as zipped do as O-T said:
O-T said:
Start with settings in Windows file manager = show file extensions (like .tar .zip .txt .exe)
Depending on what program used to unzip, .zip and .tar might have same icons. Show file extension to see difference.
Sent from my GT-I9000
Click to expand...
Click to collapse
Then start ODIN with administrator privileges and use the .tar file (ONLY TAR FILES) as PHONE, do not choose any other file and certainly dont tick re-partition, after all are ready (and your phone is in download mode and recognized by ODIN) press start.
If you failed and see the screen with "Phone/YellowTriangle/Computer" do not worry, just pull out the phone battery, leave it with battery off for 30 secs, put the battery back in, get your phone to download mode (guess you are putting your phone to download mode before flashing, right?) and try again using the instructions that you have read in all those posts!
Coolgreek said:
The zimage file is contained in the .tar, but still you need to flash the .tar file...
.Tar files seem like zip files and can be extracted, so to solve the windows showing the file as zipped do as O-T said:
Then start ODIN with administrator privileges and use the .tar file (ONLY TAR FILES) as PHONE, do not choose any other file and certainly dont tick re-partition, after all are ready (and your phone is in download mode and recognized by ODIN) press start.
If you failed and see the screen with "Phone/YellowTriangle/Computer" do not worry, just pull out the phone battery, leave it with battery off for 30 secs, put the battery back in, get your phone to download mode (guess you are putting your phone to download mode before flashing, right?) and try again using the instructions that you have read in all those posts!
Click to expand...
Click to collapse
Thanks mate!
After i read ur post i flashed again and it works again with root!
So final question. if i want to unroot do i just flash stock kernel and i am unrooted?
androidboss7 said:
Thanks mate!
After i read ur post i flashed again and it works again with root!
So final question. if i want to unroot do i just flash stock kernel and i am unrooted?
Click to expand...
Click to collapse
Glad to be of help!
About your question: Exactly. Flashing original kernel will remove root!
Coolgreek said:
Glad to be of help!
About your question: Exactly. Flashing original kernel will remove root!
Click to expand...
Click to collapse
thanks for ur help dude
Its only ZIP file with all the files; not an MD5 or TAR file; how do i convert it to MD5?
Slade8525 said:
Its only ZIP file with all the files; not an MD5 or TAR file; how do i convert it to MD5?
Click to expand...
Click to collapse
extract it
polish_pat said:
extract it
Click to expand...
Click to collapse
its all apk and odex files; gonna cwm flash it and see if that works. trying to go from stock UCUAMDB to UCUAMDL so i can then wipe/flash. getting 'unauthorized software detected on your phone' error. thanks ATT!
I think that's related to Knox. Got to rename or delete the Knox apk in System/app.
Sent from my SGH-M919 using xda premium
No! You have the wrong file if unzipping it doesn't give you an md5
No! You have the wrong file if unzipping it doesn't give you an md5.
Go get the right file. When you unzip it it will have the md5. Flash it through odin as a PDA.
Then you'll be all good.
-Wobbly
im ODIN-ing back to UCUAMDB for now, DL'ing on this connection is painfully slow, like 4 hrs per ROM.
thanks; figured it wasnt right.