[Q] How to Create a zImage tar? - Galaxy S I9000 Q&A, Help & Troubleshooting

I am running a 2.3.3 branded rom from my provider on a GT-I9000 device (based on JHJV9).
Using odin I flashed speedmod k15-t24 kernel to get root permissions.
I am done with all the backups and I no longer need root, so i want to flash back the original kernel of this rom. I have the original zImage file of this kernel, and I tried to flash it back using SGS kernel flasher, but the procedure fails.
I want to try flashing it back using odin, but the zImage file is not packed in tar.
My question is -
Using winrar, can I remove the zImage file from the speedmod tar, and then paste the original rom zImage file instead? Will I be able to flash it using odin then?
If the answer is no, how do I create a proper tar file for odin with the desired zImage file?

You just need to tar the zimage - you can name it anything- see Fugu mod root thread. The tar creation seems very sensitive. I tried 7zip and peazip and both did not work. The last one suggested in fugu mod did. The other programs created tars that all looked ok as files but would not flash in odin. No status bar on the phone and progress stopped on odin. The good news is that you aren't bricked if you pull the battery and start again.
You can also use fugu mod root and then keep your stock kernel.
Sent from my GT-I9000M using XDA Premium App

another Alternative is to use Heimdall to flash yr prefer modem or kernel...
a little bit difficult to understand heimdall use, but not difficult to use. Only catch that u need to watch out is yr need to be in the same directory of the file that u want to flash..
u can know more about heimdall by search thru Google.. for heimdall for galaxy s. hope this help
Sent from my GT-I9000 using XDA App

Thanks for the answers,
Perhaps the Heimdall method will be easier. I'll start doing my homework on this platform.

hello,
use cygwin + cygwin packages.
Works great for me for releasing my own custom rom with odin.
i tried 7-zip but did not work.
good luck.

To make your .tar, try Izarc.
Working for me.

need help with original kernel file...
hey dangol, i have JHJV9 too, (JHJVB after kies update) and i was trying to root my phone but last time i did i messed up the signal strength, internet, etc. and had to take it back to orange. so this time im taking a backup of everything including the original kernel, which i cant do because you need root access to backup a kernel which entitles flashing a different kernel anyway, so i looked on the internet for an original; samfirmware.com and israeli forums and know one has it, so i was wondering if you could send me the original kernel in a file i could use with odin, and the CSC files if you have it. I'd really appreciate any help you give, iv'e been stuck for weeks.

Related

[Q] Custom Kernel flashes via Odin but doesn't download on the phone

[Q] Custom Kernel flashes via Odin but doesn't download on the phone
Hello.
I have a Samsung Galaxy S I9000 running CM7 nightly build 04282011, I followed the posted guides and flashed both the Speedmod and CM7 kernel without issue using Odin.
I downloaded the Glitch Kernel V6B, wiped the data cache and davlik cache. I put the phone into download mode, opened Odin and connected the phone via USB. Odin reported the phone as connected.
I place the Zimage.tar which I extracted from the zip into PDA with auto-reboot and reset time ticked. I start Odin, the process is 'successful' but I notice the blue download bar doesn't appear on the phone, anyway I'm just happy I haven't bricked the phone! It reboots, loads CM7. I check in 'about' and the kernel has not changed!
I'm at a loss, as to what I'm doing wrong. I suspect it must be the way I'm extracting the Zimage file from the Glitch V6B zip, because when I extract it (Windows 7) using 7-zip it is just a plain Zimage file. I rename it Zimage.tar and Odin recognizes it. Hopefully I'm being a complete noob, as I want to overclock!
Many Thanks
Turbotab
If Odin does not install it is usually file wrong format /wrong file .
Choosing a very advanced rom to start with .
jje
I think you're right about the wrong format. Unlike the other 2 kernels I mentioned which were just Zimage.tar, the Glitch kernel came in a zip file with lots of other files. Do I have to compile / extract this in a certain way, or better yet is there a guide?, I had a look but couldn't see one.
Cheers
Anybody?, sorry if it's a noob question.
tk-glitch's kernel does not need flashing thru odin.
you simply place the zip file on the root of your sd card and boot into recovery and flash it that way.
extracting it and flashing through odin.... your lucky that you didnt brick your phone.
azzledazzle said:
tk-glitch's kernel does not need flashing thru odin.
you simply place the zip file on the root of your sd card and boot into recovery and flash it that way.
extracting it and flashing through odin.... your lucky that you didnt brick your phone.
Click to expand...
Click to collapse
Thanks pal, worked a treat. Note to self to learn about bootloaders, don't want a Samsung paperweight!

[Q] Flashing Back to stock firmware on my tab

Sorry guys for being a noob.
Story is my tab is rooted and flashed with the OVERCOME RC 2.0 GOLD rom from following alterbridge's thread procedures. Beautiful rom, no complaints.
However the screen has been acting up lately with the finger held down and screen shaking issue.
Ive searched and searched and have concluded its a hardware problem.
I need to flash back to stock for warranty.
For being the noob I am, I've downloaded the stock files....but I don't know how to flash it back.
Attached is a picture of a .zip file of the files inside the zip. Do I use ODIN to flash back? What are the procedures? What file is associated with which box in ODIN? Sorry I just don't have a clue. Or do just throw this into my tab's SD memory and update from CWM recovery mode?...
Do I use superoneclick to unrooted after back to stock rom?
I just don't want to brick my tab...Thanks for any help...
The stock ROM should be a 2.2 FROYO, and the ROM I'm on right now is on Gingerbread...if this makes any difference...
Use this guide first flash with odin it tells you how to flash with odin at the bottom http://forum.xda-developers.com/showthread.php?t=894763
and after flash whatever froyo rom you want make sure you got the one that shipped with your device if its going back for warrenty again flash with odin and your done.
Edit dont forget the thanks button if this hellped you .
Thanks for the link.
So i have the .pit file for the PIT section.
No need for phone and csc section i assume.
But for PDA section i dont have any files available? From my attached picture. i only have a data.tar.gz file. Im not sure what that file is? do i just rename it to .tar??? please help
Sorry not sure on them files i think you can use heidmal with those files do a search on here for that
Anyone???
What do I use? ODIN? HEIMDALL? I need help please.
From overcome gold you will have to re-stock to froyo. Which means a repartiton with pit file + phone + modem files. You will need odin for this.
I would suggest flash back to a safe froyo rom first - as per jutleys link above. Then flash back to your original firmware version.
From the pic above looks like you have unzipped the full.zip. For Odin You need the full zip in the pda section, modem zip in the modem and the pit file in the pit section. Download full zips from roto's link above.
Then check out roto backup thread (shows how to restore using heimdall / odin). As i havent flashed back to my original firmware yet, someone else could advise better. I am assuming for stock purposes you need to put the original stock firmware zip into pda section of odin and leave everything blank and then flash away.
Cheers
ezynow said:
From overcome gold you will have to re-stock to froyo. Which means a repartiton with pit file + phone + modem files. You will need odin for this.
I would suggest flash back to a safe froyo rom first - as per jutleys link above. Then flash back to your original firmware version.
From the pic above looks like you have unzipped the full.zip. For Odin You need the full zip in the pda section, modem zip in the modem and the pit file in the pit section. Download full zips from link above.
Then check out roto backup thread (shows how to restore using heimdall / odin). As i havent flashed back to my original firmware yet, someone else could advise better. I am assuming for stock purposes you need to put the full firmware zip into pda section of odin and leave everything blank and then flash away.
Cheers
Click to expand...
Click to collapse
Thank you for your response. I'll work on getting back safely to a froyo rom.
As for the picture, it is a pic of the content inside the full zip already. Should i unzip and enter modem and pit according? But what goes into the pda section?
chris28j said:
Thank you for your response. I'll work on getting back safely to a froyo rom.
As for the picture, it is a pic of the content inside the full zip already. Should i unzip and enter modem and pit according? But what goes into the pda section?
Click to expand...
Click to collapse
That pic is from a firmware from samfirmware? It has the bootloaders in it so be very careful as flashing bootloaders can cause bricks or be protected ones. As i said before, i think you flash the full zip in the pda section and leave the rest blank i.e no need to unzip.
But do so only after flashing using roto safe froyo rom.
As for the files above, It might be wise to take out the bootloaders then rezip & flash but i would wait on someone with a bit more knowledge just to confirm this.
As long as they are the original files for your firmware, you should be ok.
Thanks for your help ezynow.
UPDATE: I've successfully downgraded from Overcome Gingerbread to Overcome Froyo now.
Now it's just a matter of getting my head wrapped around this stock ROM right. The order, and where the files should go.
Anyone else would like to share their insight? This is the file I downloaded, and this is how it is presented to me. I just need someone to help me sort out what is what.
Thanks.
UPDATE #2: Tried re-zipping and converting to tar file. ODIN failed. Re-zipped into tar again without the data.tar.gz file because I don't know what it is, and failed again.
I don't know what to do anymore. How do I get this to work?
bump
anyone?
UPDATE #3: Tried loading the whole .zip file from CWM. No luck.
Who's your service provider?
I sugest look for another stock rom here that is in the correct format i am sure i seen a post showing all stock roms somewhere use odin
Link deleted. It mentions to use pit file + full zip in pda section . Then says out of date.
Also did you check rotobbackup method thread - use heimdall and flash individual files from your extraced zip files. Assuming you can avoid flashing bootloaders you should only be a soft-brick if anything goes wrong and download mode still available.
Forget about using cwm for anything stock related.
Sum1 who has reverted back to stock surely can help out here!
p.s what was your original firmware version?
I have succesfuly downgraded from gb overcome gold to arabic froyo using the file from samfirmware. First try resulted in stuck at samsung logo but I was expecting that due to the ext4 partition. A cache wipe and factory reset in recovery solved that problem. Also I observed when going to recovery that there were errors in red that are coming out complaining of access problem to certain files. Since I am able to boot I then proceded to format the internal sd. After that I again flashed using the same arabic fw. No problems so far even kies sees my fw as the latest.
Here is the procedure I followed-change the files according to your fw version
noxxious said:
Flash with Odin3 v1.7
1. Download P1000DXKM3 from here. P1000DXKM3
1. Backup your data.
2. Extract the firmware files from the P1000DXKM3.7z file.
3. select P1_add_hidden.pit for .pit file.
4. check repartition.
5. select AP_P1000DXKM3-REV03-ALL-CL874291.tar.md5 for PDA.
6. select CP_MODEM_P1000DXKM1_REV_00_CL873880.tar.md5 for PHONE.
7. select CSC_P1000OLBKM2-MULTI-CL878295.tar.md5 for CSC.
8. Flash your tab and wait for it to restart.
9. Welcome back to stock.
extra steps
10. Root by using SuperOneClick v1.9.1 by CLShortFuse.
11. Unsign Bootloaders by using this SGT-Bootloader-Patch by chainfire and rotohammer.
Click to expand...
Click to collapse
Sent from my GT-P1000 using Tapatalk
Thanks a lot for the help guys.
I will try going to another stock firmware later this afternoon.
However, the firmware I really need is P1000MUGJJ7 (Bell's stock firmware).
The files I have in hand are apparently the files for this firmware, but how to restore it, I have zero clue. These we're sent to me by a member on this forum.
I think the member said that these were created from roto backup.
I have looked everywhere else for this firmware version but it's NOWHERE. Neither does samfirmware.com
So to sum it up, pretty much these are my only sources to play with, and just gotta make it work...
Please help and thanks again.
anyone?
bump
What are the contents of this bell fw? have you tried opening the file?
bongski55 said:
What are the contents of this bell fw? have you tried opening the file?
Click to expand...
Click to collapse
Please refer to the attached picture.
It's a pic of the contents inside the .zip file I was given.
Now I just need a solution as to HOW to use them.
Only the pit.pit file can be used.extract it and in odin load it under pit. then under pda load the whole tar file. then check repartition ,reboot and time.....start...
bongski55 said:
Only the pit.pit file can be used.extract it and in odin load it under pit. then under pda load the whole tar file. then check repartition ,reboot and time.....start...
Click to expand...
Click to collapse
OK. So you are suggesting I take out pit file then CONVERT in someway the whole .zip file into .tar file for the PDA section, am I correct?
Now, I need a proper way to convert this file because I tried this using a converter I downloaded online. And after the conversion, the .tar files was double the size (over 400mb, original ~200mb). And flashing through ODIN using this new file didn't work. So what's the proper way to convert?

[Q] Creating .tar for CWM kernel install

Looking for a way to take the zImage file to put CWM on the CDMA Tabs and put it into a tar file that will work to flash via Odin. For whatever reason Odin works, but I can't get Heimdal to work on either of the pc's i've used to flash all my phones previously. Just want to know if there's something specific that needs to be setup in the .tar so that Odin will flash the zImage file correctly. Or if someone already has a .tar for the CDMA Tabs with a working CWM I'd appreciate a link.

How can I revert to original kernel?

If I upload custom kernel on my Galaxy S with 2.3.4 JVQ, is it possible to revert to original JVQ kernel in order to check if same issue will appear on original kernel to detect if custom kernel has bug?
Thanks.
Flash as pda with odin.
Sent from my GT-I9000 using XDA Premium App
To get just the stock kernel in a flashable state you need to extract the zImage file from stock ROM (either one file or PDA of 3-file), then put it in a tar file by itself. Then you flash that as PDA with Odin.
I'm just going to expand a bit.
Find a single file tar of the stock firmware that is meant to be flashed as a PDA. Use winrar to look inside the .tar file to get the zImage and put it in a tar by itself. You can then flash it as PDA in Odin.
Sent from my GT-I9000M using XDA App
I thought that it is proper way to extract zImage from original ROM but I wasn't sure that it is good way. Thanks, I will try in this way.
I created zImage.TAR with 7-zip but Odin cannot load it. It comes to step when zImage should be loaded but upload is not happening. Do I have to exec some certain parameters when zipping it in TAR with 7-zip or how can I do it?
EDIT: I managed to make proper (flashable) TAR with IZarc application. Nevertheless, I uploaded stock zImage but I still have root access although other mooded kernel specific applications are gone. So, basically, I didn't revert it to original state. Or I am wrong? Please, advise.
Thanks.
Rooting doesn't necessarily mean changing kernel. You can root a completely stock phone and still use stock kernel. You can also unroot the phone.
You can use the SGS kernel flasher free app to flash a zImage directly from the phone.
eLtOnI0 said:
Rooting doesn't necessarily mean changing kernel. You can root a completely stock phone and still use stock kernel. You can also unroot the phone.
You can use the SGS kernel flasher free app to flash a zImage directly from the phone.
Click to expand...
Click to collapse
He's right, root often stays behind. To get back to stock just do a factory reset.
Make sure you can get into download mode before flashing just in case.
Sent from my GT-I9000M using XDA App
eLtOnI0 said:
Rooting doesn't necessarily mean changing kernel. You can root a completely stock phone and still use stock kernel. You can also unroot the phone.
You can use the SGS kernel flasher free app to flash a zImage directly from the phone.
Click to expand...
Click to collapse
I've read through many threads, but in most they discribe to root a phone via flashing the kernel
like here.
and i also would like to have a backup of my stock kernel, if i would flash it, but i'm not sure from which version i should take it. i do have JVH, but i can't find a fitting csc (it's MOBJV2) on samfirmware or google.

Flashing zImage file using Mobile Odin? or other Kernel Flashing tool

I have recently been trying the Franco Kernel and the CF Kernel on ICS. I have had a Wifi issues with both of these, and I wanted to flash back my LQ2 stock kernel (zImage). I found this very difficult to do. I eventually used ChainFire's script, and replaced his kernel with the stock one, and flashed it from the PC.
My question is: I could have sworn that I have previously used mobile odin to flash a zImage, but now when I try it doesn't see any of the zip files, or zImages files on my card? is this correct, or should it be able to flash zImage files?
If I can't use Mobile Odin, is there an alternative for flashing zImage files that I can download from Google Play?
chriswilson_m3 said:
I have recently been trying the Franco Kernel and the CF Kernel on ICS. I have had a Wifi issues with both of these, and I wanted to flash back my LQ2 stock kernel (zImage). I found this very difficult to do. I eventually used ChainFire's script, and replaced his kernel with the stock one, and flashed it from the PC.
My question is: I could have sworn that I have previously used mobile odin to flash a zImage, but now when I try it doesn't see any of the zip files, or zImages files on my card? is this correct, or should it be able to flash zImage files?
If I can't use Mobile Odin, is there an alternative for flashing zImage files that I can download from Google Play?
Click to expand...
Click to collapse
Flash the LQ2 .tar file instead of the zImage with Mobile Odin. So extract the downloaded .rar file once and it becomes a .tar file and put it on your sd card. mobile Odin doesn`t flash zImage, cwm manager does flash it.
If I do that won't it overwrite the whole rom. I only want the kernel. I would have to reinstall all my apps and settings. It takes me hours to get everything back the way it was.
chriswilson_m3 said:
If I do that won't it overwrite the whole rom. I only want the kernel. I would have to reinstall all my apps and settings. It takes me hours to get everything back the way it was.
Click to expand...
Click to collapse
It will flash only the kernel, also choose wipe cache when flashing. You will loose nothing.
If you want to flash stock kernel only then you can use PC Odin too.(you shud have kernel in .tar), you need to place kernel .tar file for selecting PDA in Odin.
Mobile odin can flash zImage file.
none of above said erase data.
dr.ketan said:
If you want to flash stock kernel only then you can use PC Odin too.(you shud have kernel in .tar)
Mobile odin can flash zImage file.
Click to expand...
Click to collapse
Didn`t know that of the zImage and Mobile Odin, thanks. We learn every day
Absolutely, N nowhere else better thn on XDA to learn.
dr.ketan said:
Absolutely, N nowhere else better thn on XDA to learn.
Click to expand...
Click to collapse
Can we flash a rooted kernel in PC Odin in a non rooted device? Is there a rooted kernel in tar format?
it will raise flash counter. look to speedmod kernel for ics, having tar. counter you can reset with triangleaway
i hav never used any time, read properly before flashing.
Sent from my GT-N7000 using xda premium
Serpentinefire76 said:
Can we flash a rooted kernel in PC Odin in a non rooted device? Is there a rooted kernel in tar format?
Click to expand...
Click to collapse
Yes you can, i would take CF Root wich has root, busybox and cwm recovery. But it will increase the flash counter and shows a yellow triangle. With this method however no flash counter/triangle http://forum.xda-developers.com/showthread.php?t=1329360.
---------- Post added at 12:43 PM ---------- Previous post was at 12:41 PM ----------
dr.ketan said:
it will raise flash counter. look to speedmod kernel for ics, having tar. counter you can reset with triangleaway
i hav never used any time, read properly before flashing.
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
As far as i know Triangle Away only works properly on CM9, correct me if i`am wrong.
gee2012 said:
Yes you can, i would take CF Root wich has root, busybox and cwm recovery. But it will increase the flash counter and shows a yellow triangle. With this method however no flash counter/triangle http://forum.xda-developers.com/showthread.php?t=1329360.
---------- Post added at 12:43 PM ---------- Previous post was at 12:41 PM ----------
As far as i know Triangle Away only works properly on CM9, correct me if i`am wrong.
Click to expand...
Click to collapse
So, that's the catch-the triangle. I would supposed Dr. Ketan's procedure is also applicable to rooting GB?
I've been using initial CF root flasher
gee2012 said:
As far as i know Triangle Away only works properly on CM9, correct me if i`am wrong.
Click to expand...
Click to collapse
new version of TriangleAway released, works on ics stocks too.
Sent from my GT-N7000 using xda premium
dr.ketan said:
If you want to flash stock kernel only then you can use PC Odin too.(you shud have kernel in .tar), you need to place kernel .tar file for selecting PDA in Odin.
Mobile odin can flash zImage file.
none of above said erase data.
Click to expand...
Click to collapse
Dr Ketan, I have a couple of questions about what you have said which I would be really grateful if you would clarify:
In the stock rom, when I drill into the .tar file I have a number of files e.g. cache.img, factoryfs.img, hidden.img, modem.bin, and the zImage. Both Odin and Mobile Odin can only see the .tar file (which contains everything). If I extract the zImage, Odin and Mobile Odin cannot see it as an individual file, it has to be bundled up with the others in the .tar file.
If I use Odin to flash that file, it is the whole Rom, so won't it wipe my phone like a factory re-set?
When I try to use mobile Odin, you say I can flash a zImage file, but even though I have one on the SD card, it cannot see them. Mobile Odin just shows me all folders, and I cannot select an individual zImage file, or any zip files? I guess it can only see whole .tar files and not individual files?
Can you please advise me?
ok
now pc odin
here you can flash with tar only.
pc odin gives you option to flash separate modem and csc but not kernel if you select full Rom file.
but if you have kerenl file in tar file then you can flash it using pda in odin to flash kernel separately.
now in mobile odin.
you can flash kernel modem or csc individually with raw file or tar or zip.
dont know why you are getting error, otherwise it gives you option to glash zimage too.
just to add, in mobile odin you have not to select open file option but you hav to select kernel tab
then point it to zimage file.
Sent from my GT-N7000 using xda premium
dr.ketan said:
ok
now pc odin
here you can flash with tar only.
pc odin gives you option to flash separate modem and csc but not kernel if you select full Rom file.
but if you have kerenl file in tar file then you can flash it using pda in odin to flash kernel separately.
now in mobile odin.
you can flash kernel modem or csc individually with raw file or tar or zip.
dont know why you are getting error, otherwise it gives you option to glash zimage too.
just to add, in mobile odin you have not to select open file option but you hav to select kernel tab
then point it to zimage file.
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Thank you my friend. your advice has really helped me. My issue in Mobile Odin was caused because I had renamed the zImage file to StockzImage (because I had some custom ones there with different names in the same directory. Mobile Odin was specifically looking for a file with the name zImage
dr.ketan said:
ok
now pc odin
here you can flash with tar only.
pc odin gives you option to flash separate modem and csc but not kernel if you select full Rom file.
but if you have kerenl file in tar file then you can flash it using pda in odin to flash kernel separately.
now in mobile odin.
you can flash kernel modem or csc individually with raw file or tar or zip.
dont know why you are getting error, otherwise it gives you option to glash zimage too.
just to add, in mobile odin you have not to select open file option but you hav to select kernel tab
then point it to zimage file.
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Dr ketan, any idea if Mobile odin supported on S2-LTE I9210?
Here is list of supported device
http://forum.xda-developers.com/showthread.php?t=1347899

Categories

Resources