Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,680 Members 45,144 Now Online
XDA Developers Android and Mobile Development Forum

[TUTORIAL] How to repack a kernel with offline tool

Tip us?
 
lukes91
Old
(Last edited by lukes91; 26th March 2014 at 01:23 PM.)
#1  
lukes91's Avatar
Senior Member - OP
Thanks Meter 1015
Posts: 1,774
Join Date: Aug 2013
Location: Somewhere Over The Rainbow

 
DONATE TO ME
Default [TUTORIAL] How to repack a kernel with offline tool

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:	1516
Size:	47.7 KB
ID:	2545238   Click image for larger version

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

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

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

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

Click image for larger version

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

Name:	7.png
Views:	1487
Size:	15.7 KB
ID:	2545281  
HTC One M8 - HBOOT 3.18 S-OFF - TWRP 2.7.1.0 - ViperOneM8 - ElementalX - H/K - V4A
HTC One X - HBoot 1.39 - Philz 5.15.9 - ViperX 4.1.1

Did I help you? Hit THANKS
The Following 24 Users Say Thank You to lukes91 For This Useful Post: [ Click to Expand ]
 
lukes91
Old
#2  
lukes91's Avatar
Senior Member - OP
Thanks Meter 1015
Posts: 1,774
Join Date: Aug 2013
Location: Somewhere Over The Rainbow

 
DONATE TO ME
reserved #1
HTC One M8 - HBOOT 3.18 S-OFF - TWRP 2.7.1.0 - ViperOneM8 - ElementalX - H/K - V4A
HTC One X - HBoot 1.39 - Philz 5.15.9 - ViperX 4.1.1

Did I help you? Hit THANKS
The Following User Says Thank You to lukes91 For This Useful Post: [ Click to Expand ]
 
lukes91
Old
#3  
lukes91's Avatar
Senior Member - OP
Thanks Meter 1015
Posts: 1,774
Join Date: Aug 2013
Location: Somewhere Over The Rainbow

 
DONATE TO ME
reserved #2
HTC One M8 - HBOOT 3.18 S-OFF - TWRP 2.7.1.0 - ViperOneM8 - ElementalX - H/K - V4A
HTC One X - HBoot 1.39 - Philz 5.15.9 - ViperX 4.1.1

Did I help you? Hit THANKS
The Following User Says Thank You to lukes91 For This Useful Post: [ Click to Expand ]
 
E
Old
#4  
E's Avatar
Senior Member
Thanks Meter 1249
Posts: 2,255
Join Date: Mar 2011
Location: Lancaster,UK
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: [ Click to Expand ]
 
lukes91
Old
#5  
lukes91's Avatar
Senior Member - OP
Thanks Meter 1015
Posts: 1,774
Join Date: Aug 2013
Location: Somewhere Over The Rainbow

 
DONATE TO ME
Quote:
Originally Posted by E View Post
Great guide :thumbup:

Sent from my Nexus 7 using XDA Premium 4 mobile app
thank you man
HTC One M8 - HBOOT 3.18 S-OFF - TWRP 2.7.1.0 - ViperOneM8 - ElementalX - H/K - V4A
HTC One X - HBoot 1.39 - Philz 5.15.9 - ViperX 4.1.1

Did I help you? Hit THANKS
 
Mr Hofs
Old
#6  
Mr Hofs's Avatar
Recognized Contributor / Themer
Thanks Meter 8297
Posts: 13,584
Join Date: Sep 2011

 
DONATE TO ME
Nice job ! it's clean and clear.
The Following 2 Users Say Thank You to Mr Hofs For This Useful Post: [ Click to Expand ]
 
lukes91
Old
#7  
lukes91's Avatar
Senior Member - OP
Thanks Meter 1015
Posts: 1,774
Join Date: Aug 2013
Location: Somewhere Over The Rainbow

 
DONATE TO ME
Quote:
Originally Posted by Mr Hofs View Post
Nice job ! it's clean and clear.
thanks Mr Hofs
HTC One M8 - HBOOT 3.18 S-OFF - TWRP 2.7.1.0 - ViperOneM8 - ElementalX - H/K - V4A
HTC One X - HBoot 1.39 - Philz 5.15.9 - ViperX 4.1.1

Did I help you? Hit THANKS
 
eyosen
Old
#8  
eyosen's Avatar
Senior Member
Thanks Meter 2029
Posts: 2,683
Join Date: Apr 2007
Location: Istanbul

 
DONATE TO ME
Clean and concise. Thank you.
______________________________________________
"Life’s greatest gift is the opportunity to work hard at work worth doing." Teddy Roosevelt
The Following User Says Thank You to eyosen For This Useful Post: [ Click to Expand ]
 
lukes91
Old
#9  
lukes91's Avatar
Senior Member - OP
Thanks Meter 1015
Posts: 1,774
Join Date: Aug 2013
Location: Somewhere Over The Rainbow

 
DONATE TO ME
Quote:
Originally Posted by eyosen View Post
Clean and concise. Thank you.
you're welcome
HTC One M8 - HBOOT 3.18 S-OFF - TWRP 2.7.1.0 - ViperOneM8 - ElementalX - H/K - V4A
HTC One X - HBoot 1.39 - Philz 5.15.9 - ViperX 4.1.1

Did I help you? Hit THANKS
 
danct2005
Old
#10  
Senior Member
Thanks Meter 29
Posts: 319
Join Date: Dec 2008
After repacking you can use the same tool for flashing the kernel
Viper X Rom 4.0.6

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes