Post Reply

[TUTORIAL] How to repack a kernel with offline tool

28th January 2014, 09:49 PM   |  #1  
lukes91's Avatar
OP Senior Member
Flag Somewhere Over The Rainbow
Thanks Meter: 1,052
 
1,829 posts
Join Date:Joined: Aug 2013
Donate to Me
More
GUIDE
how to repack a kernel using Thunder07's Toolkit



Hi guys!
This is simply a guide to repack a kernel using Thunder’s Flasher tool
I will not write down how to flash a kernel on our HTC one X because if you are reading this you already know how to do that

CREDITS
Quote:

First of all, all the credits and thanks go to @Thunder07 and to the kernels and roms developers…
In this tutorial I’ll use XMkernel #13 for sense rom and ViperX 4.0.6, so thanks to @Xmister, @RichmondoUK, @Mr Hofs, @Brds7t7, @DroidIt!, @E, @Patrics83, @Snah001, @Alex-V and all the others who helped me to learn how to customize my HOX


REQUIREMENTS

Quote:

kernel provided with rom
custom kernel you want to repack
Thunder's toolkit


DISCLAIMER

Quote:

i'm not responsible for bricked devices, bad repacks, failures in your personal life or the end of humanity
if you use my guide and follow my instructions, then you accept the disclaimer


LET'S START!

First of all, download the kernel zip you want to repack and place it in a folder you can easily find; do the same with the rom zip. Extract the boot.img from both zips and rename them so you can easily recognise them (every filename is good if it has .img extension; i usually rename the final repacked image as "boot.img" before flashing it).

In this guide I’ll rename stock ViperX boot.img “boot_406_stock.img” and XMkernel #13 boot.img “sense_boot_13.img” and I’ll refer to them this way from now on.

After you download the toolkit, unpack it where you want… DO NOT CHANGE FOLDERS INSIDE MAIN FOLDER!!! You should find something like that:



The next step is to copy kernel images into kernels folder, you should find something like that:



Now… let’s launch the toolkit!
With the toolkit you can even flash kernel after repacking, but I prefer to repack it first and flash it via fastboot later, so I won’t plug the phone in the computer…
Now choose “Kernel Repack”:



You should see something like that:



Now, in Kernel list choose the kernel you want to repack, in this tutorial sense_boot_13.img, and in RamDisk list choose the boot.img provided with the rom you are using, so now boot_406_stock.img
Modules are the zip file (you already know it) but they must be flashed via recovery as they are downloaded...

Then click repack and you’ll see this in the top left corner:



After about 15 seconds, in the same place it will appear the following:



As we’ve never connected the phone, we’ll not unplug it, but this means that kernel is repacked and ready to be flashed…
So now look inside “Repacked” folder near kernels one and you'll find repacked image:



Rename the repacked image in "boot.img" and then do as usual: flash it via fastboot and then flash modules via recovery


Hit Thanks if you think this guide is useful
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	1593
Size:	47.7 KB
ID:	2545238   Click image for larger version

Name:	2.png
Views:	1578
Size:	17.3 KB
ID:	2545248   Click image for larger version

Name:	3.png
Views:	1578
Size:	32.1 KB
ID:	2545252   Click image for larger version

Name:	4.png
Views:	1578
Size:	51.2 KB
ID:	2545253   Click image for larger version

Name:	5.png
Views:	1579
Size:	8.5 KB
ID:	2545254  

Click image for larger version

Name:	6.png
Views:	1576
Size:	8.1 KB
ID:	2545255   Click image for larger version

Name:	7.png
Views:	1564
Size:	15.7 KB
ID:	2545281  
Last edited by lukes91; 26th March 2014 at 01:23 PM.
The Following 25 Users Say Thank You to lukes91 For This Useful Post: [ View ]
28th January 2014, 09:50 PM   |  #2  
lukes91's Avatar
OP Senior Member
Flag Somewhere Over The Rainbow
Thanks Meter: 1,052
 
1,829 posts
Join Date:Joined: Aug 2013
Donate to Me
More
reserved #1
The Following User Says Thank You to lukes91 For This Useful Post: [ View ]
28th January 2014, 09:50 PM   |  #3  
lukes91's Avatar
OP Senior Member
Flag Somewhere Over The Rainbow
Thanks Meter: 1,052
 
1,829 posts
Join Date:Joined: Aug 2013
Donate to Me
More
reserved #2
The Following User Says Thank You to lukes91 For This Useful Post: [ View ]
28th January 2014, 10:08 PM   |  #4  
E's Avatar
Senior Member
Flag Lancaster,UK
Thanks Meter: 1,281
 
2,292 posts
Join Date:Joined: Mar 2011
More
Great guide :thumbup:

Sent from my Nexus 7 using XDA Premium 4 mobile app
The Following User Says Thank You to E For This Useful Post: [ View ]
28th January 2014, 10:10 PM   |  #5  
lukes91's Avatar
OP Senior Member
Flag Somewhere Over The Rainbow
Thanks Meter: 1,052
 
1,829 posts
Join Date:Joined: Aug 2013
Donate to Me
More
Quote:
Originally Posted by E

Great guide :thumbup:

Sent from my Nexus 7 using XDA Premium 4 mobile app

thank you man
28th January 2014, 10:11 PM   |  #6  
Mr Hofs's Avatar
Recognized Contributor / Themer
Thanks Meter: 8,503
 
13,948 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Nice job ! it's clean and clear.
The Following 2 Users Say Thank You to Mr Hofs For This Useful Post: [ View ]
28th January 2014, 10:13 PM   |  #7  
lukes91's Avatar
OP Senior Member
Flag Somewhere Over The Rainbow
Thanks Meter: 1,052
 
1,829 posts
Join Date:Joined: Aug 2013
Donate to Me
More
Quote:
Originally Posted by Mr Hofs

Nice job ! it's clean and clear.

thanks Mr Hofs
28th January 2014, 10:40 PM   |  #8  
eyosen's Avatar
Senior Member
Istanbul
Thanks Meter: 2,060
 
2,714 posts
Join Date:Joined: Apr 2007
Donate to Me
More
Clean and concise. Thank you.
The Following User Says Thank You to eyosen For This Useful Post: [ View ]
28th January 2014, 10:42 PM   |  #9  
lukes91's Avatar
OP Senior Member
Flag Somewhere Over The Rainbow
Thanks Meter: 1,052
 
1,829 posts
Join Date:Joined: Aug 2013
Donate to Me
More
Quote:
Originally Posted by eyosen

Clean and concise. Thank you.

you're welcome
28th January 2014, 10:48 PM   |  #10  
Senior Member
Thanks Meter: 30
 
324 posts
Join Date:Joined: Dec 2008
More
After repacking you can use the same tool for flashing the kernel

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes