Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,934 Members 52,374 Now Online
XDA Developers Android and Mobile Development Forum

[guide] compiling and decompining kernel on windows

Tip us?
 
dekefake
Old
(Last edited by dekefake; 11th January 2014 at 09:05 PM.) Reason: ADD DETAILS
#1  
Senior Member - OP
Thanks Meter 143
Posts: 140
Join Date: Oct 2013
Location: Orléans, Center Of Nowhere
Default [guide] compiling and decompining kernel on windows

Hi. It's my first thread so please be kind with me

I found a way to compile and decompile any SIN kernel on Windows..

First, you must open the FTF kernel who contains the SIN file with Winrar or 7zip. You'll see:
*META-INF
*kernel.sin
*loader.sin

Extract the kernel.sin ...
Open FlashTool; Tools; Sin Editor; open the Sin file and click Extract Data. You'll see a kernel.elf file.
You can delete the other files and the sin files to make your workstation clean.
Open now FlashTool again; Tools; Extractors; Elf. Browse to your kernel.elf and click unpack. You obtain now the ramdisk and the zImage.

It's time to download this : https://www.dropbox.com/s/kdikeyb9hi...el%20Tools.zip
Extract THE ENTIRE ZIP and enter to BOOTIMG-TOOLS folder. Create a "boot.img_source" folder and a "boot.img_output" folder inside the bootimg-tools folder. You must have
*bin
*boot.img_source
*boot.img_output
*[FR]RunMe.bat

Copy your zImage and your ramdisk into the boot.img_source folder and rename the ramdisk to "boot.img-ramdisk.gz" (IMPORTANT) and the zImage to "boot.img-kernel".

Enter on the "boot.img_output" folder and create a "ramdisk" folder.
If you did well all this, you must have it: "\BOOTIMG-TOOLS\boot.img_output\ramdisk".

Now go to "\BOOTIMG-TOOLS\boot.img_source" and open your ramdisk with Winrar or 7zip. Inside, you have an unknown file with the same name of your ramdisk. Just double clic on it. You have now many files:
*data
*dev
*engine
..... and much more..

Extract it to the ramdisk folder. ("\BOOTIMG-TOOLS\boot.img_output\ramdisk")..

Go on ramdisk folder and make the modif's of your kernel ( like change initlogo.rle )

Once edits finished, it's time to reach BOOTIMG-TOOLS folder. Run the [FR]RunMe.bat. To compile your kernel, make change typing "2" and press ENTER. A boot_new.img will be created.
Re-Run the bat and type "3" to delete the "boot.img_output" and "boot.img_source" folders.
Rename the "boot_new.img" created by the batch to "boot.img"
Re-run the batch a third time and type "1" to decompile the boot.img you created.

Now go into the new "boot.img_source" and copy the new ramdisk and zImage to the SECOND UTIL YOU EXTRACTED FROM THE ZIP: sin-creator.

Paste the zImage and the ramdisk into the sin-creator folder and rename tke ramdisk "ramdisk" ( without quotes ) and rename the zImage "image".
Run the BUILD-IT.bat and press any key two times. After pressing the second time, tou can see new files into the folder, and the important file is RESULT.ELF.SIN ..
Rename the "result.elf.sin" to "kernel.sin" and add it to remplace the original sin file into your FTF kernel.
To do it, open the original FTF with Winrar and click add files. add the new kernel.sin.

Once it's done, just flash your new kernel with flashTool. You can edit the manifest file on your new FTF to recognise it as edited kernel on FlashTool

Hope this help some of us
The Following 3 Users Say Thank You to dekefake For This Useful Post: [ Click to Expand ]
 
Buda1996
Old
#2  
Buda1996's Avatar
Senior Member
Thanks Meter 1,022
Posts: 573
Join Date: Jul 2012
Location: Serbia

 
DONATE TO ME
real good guide btw make it more proper it so messy most of the people cant follow
and make stepps like

1) do this
2)do that

all in everything is good i am trying it out now
The Following User Says Thank You to Buda1996 For This Useful Post: [ Click to Expand ]
 
Ronald G V A
Old
#3  
Account currently disabled
Thanks Meter 73
Posts: 161
Join Date: Feb 2013
Location: Lima
Nice Bro !! I will try !
 
Buda1996
Old
#4  
Buda1996's Avatar
Senior Member
Thanks Meter 1,022
Posts: 573
Join Date: Jul 2012
Location: Serbia

 
DONATE TO ME
ronald fera want hacked u can come to fb again he has been cleaning his pc
The Following 2 Users Say Thank You to Buda1996 For This Useful Post: [ Click to Expand ]
 
dekefake
Old
#5  
Senior Member - OP
Thanks Meter 143
Posts: 140
Join Date: Oct 2013
Location: Orléans, Center Of Nowhere
Quote:
Originally Posted by Buda1996 View Post
real good guide btw make it more proper it so messy most of the people cant follow
and make stepps like

1) do this
2)do that

all in everything is good i am trying it out now
Thanks for anwsers If somebody don't understand what I want to explain, say it, I can try to improve my explanation

cheers
 
Ronald G V A
Old
#6  
Account currently disabled
Thanks Meter 73
Posts: 161
Join Date: Feb 2013
Location: Lima
Quote:
Originally Posted by Buda1996 View Post
ronald fera want hacked u can come to fb again he has been cleaning his pc
JAJAJAJAAJAJAJA Really???? Oh My God !! ! ... What a Dirty Joke !! Thanks a lot Rados !!
 
dekefake
Old
#7  
Senior Member - OP
Thanks Meter 143
Posts: 140
Join Date: Oct 2013
Location: Orléans, Center Of Nowhere
Quote:
Originally Posted by Ronald G V A View Post
JAJAJAJAAJAJAJA Really???? Oh My God !! ! ... What a Dirty Joke !! Thanks a lot Rados !!
De nada You're welcome
The Following User Says Thank You to dekefake For This Useful Post: [ Click to Expand ]
 
Ronald G V A
Old
#8  
Account currently disabled
Thanks Meter 73
Posts: 161
Join Date: Feb 2013
Location: Lima
Quote:
Originally Posted by dekefake View Post
De nada You're welcome
jajaja You speak Spanish too? bro (Y)
 
dekefake
Old
#9  
Senior Member - OP
Thanks Meter 143
Posts: 140
Join Date: Oct 2013
Location: Orléans, Center Of Nowhere
Quote:
Originally Posted by Ronald G V A View Post
jajaja You speak Spanish too? bro (Y)
Hablo espanol un poco porque aprendelo en en instituto ( tengo 16 anos )

I speak spanish a little because i learn it at Scholl ( i'm 16 )
 
dekefake
Old
#10  
Senior Member - OP
Thanks Meter 143
Posts: 140
Join Date: Oct 2013
Location: Orléans, Center Of Nowhere
Quote:
Originally Posted by Ronald G V A View Post
Ahh jajaja bueno Yo hablo español porque soy de Latinoamérica y bueno también hablo ingles bastante porque estoy en mi instuto como 5 años Con todo y especialización jaja

Ahh jajaja Well I speak Spanish because I'm from SouthAmerica and I also speak english very well because I was in my institute like 5 years and I did specializations jaja
OK good ( web musn't forger that it's a development thread )

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes