Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[TOOL] CIVICX KERNEL PACKING TOOL-2.0 [TOOL-kernel]

OP aniketroxx

4th March 2014, 03:33 PM   |  #1  
aniketroxx's Avatar
OP Senior Member
Thanks Meter: 336
 
231 posts
Join Date:Joined: Jul 2013
More
CIVICX KERNEL PACKING TOOL
Well i made this simple kernel packing tool for new users out there who want to enter into this kernel developement. I am using this tool of myself from many days and now i will like to share . Some names of bashcripts are **** given so dont look over those !

Code:
NOTE:THIS TOOL IS ADAPTED FOR XPERIA L ONLY , YOU WILL HAVE TO EDIT IT IN ORDER TO WORK WITH NEW DEVICE 
Ok so i consider all of you may be using Git and if you are not simply click on Download as zip

For Cloning Type this Command :

Code:
 git clone https://github.com/aniketroxx/Aniket_Packer.git
Now in AOSP_RAMDISK
Quote:

Insert the Ramdisk from Stock Kernel

Now in RECOVERY_RAMDISK
Quote:

Insert or Create your own Recovery ramdisk folder Structure with ****ing init script and bootrec ,busybox and all

Go into cloned folder or downloaded folder and Simply type :

Quote:

sh menu.sh

Rest of things are self explainatory !

Currently this is adopted for Packing of Kitkat Kernel which is having Page Size of 2048 ,

if you want to change it then simple open the pack.sh in any text editor [Provided that you are root directory of Packer]

Type command :

Quote:

cd Z_PACKER

Quote:

gedit pack.sh

At almost the end of line you will see page size , you can change it whatever you like

If you got any error then simple reply the thread


FAQ

AOSP_RAMDISK :
Quote:

This will contain the ramdisk that you get from stock sony kernel , like as sony updated from 4.1 to 4.2 their ramdisk changed so here you can place that ramdisk in extracted form for further compression

RECOVERY:
Quote:

Suppose you are implementing some cwm/twrp then then you can put it here for further xz compression

RECOVERY_RAMDISK:
Quote:

This will contain the Recovery ramdisk structure with all of your bootrec and init.sh script and all

ZPACKER/OUT:
Quote:

This will contain your output boot.img
You can flash the kernel directly through the option present in the menu

INPUT
Quote:

Here you can put the boot.img of the kernel you want to extract

Z_IMAGE
Quote:

Your extracted zImage will contain in this folder

EXTRACTED_RAMDISK
Quote:

This will contain the ramdisk extracted from the boot.img , if you want to use it for packing then you will have to copy it to RECOVERY_RAMDISK

Last edited by aniketroxx; 7th April 2014 at 06:14 PM.
The Following 7 Users Say Thank You to aniketroxx For This Useful Post: [ View ]
28th March 2014, 03:29 PM   |  #2  
aniketroxx's Avatar
OP Senior Member
Thanks Meter: 336
 
231 posts
Join Date:Joined: Jul 2013
More
Changelog:

Version 1.0
Initial Release includes Packing Stock Ramdisk Packing Recovery Ramdisk Creating boot.img

Version 1.1
Added option for packing CWM/TWRP in XZ compression

Version 1.2
Added option for flashing kernel that you packed Fastboot must be installed

Version 1.3
Fix the normal bugs , syntax error in menu and remove device specific path

Version 1.4
Added the missing directory and changed SE-Linux to permissive

Version 1.5
Added automated fastboot and adb installer for linux thanks @HeadFox

Version 2.0
Added the ability to extract the kernel having ramdisk with xz compression
Last edited by aniketroxx; 7th April 2014 at 06:07 PM.
The Following 3 Users Say Thank You to aniketroxx For This Useful Post: [ View ]
29th March 2014, 08:04 AM   |  #3  
FantasticalX's Avatar
Senior Member
Flag here
Thanks Meter: 364
 
472 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Info 2
Nice work!
29th March 2014, 08:25 PM   |  #4  
Raj joshi's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 315
 
745 posts
Join Date:Joined: Jul 2012
More
Nice work buddy
The Following User Says Thank You to Raj joshi For This Useful Post: [ View ]
6th April 2014, 12:07 PM   |  #5  
FantasticalX's Avatar
Senior Member
Flag here
Thanks Meter: 364
 
472 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Quote:
Originally Posted by aniketroxx

Changelog:

Version 1.0
Initial Release includes Packing Stock Ramdisk Packing Recovery Ramdisk Creating boot.img

Version 1.1
Added option for packing CWM/TWRP in XZ compression

Version 1.2
Added option for flashing kernel that you packed Fastboot must be installed

Version 1.3
Fix the normal bugs , syntax error in menu and remove device specific path

Version 1.4
Added the missing directory and changed SE-Linux to permissive

Version 1.5
Added automated fastboot and adb installer for linux thanks @HeadFox

Can you fix this? I am on Ubuntu 14.04 LTS

Quote:

menu.sh: 38: menu.sh: Syntax error: ")" unexpected (expecting ";;")

6th April 2014, 01:05 PM   |  #6  
aniketroxx's Avatar
OP Senior Member
Thanks Meter: 336
 
231 posts
Join Date:Joined: Jul 2013
More
Quote:
Originally Posted by FantasticalX

Can you fix this? I am on Ubuntu 14.04 LTS

Its fixed , sorry i forgot to push one commit ! Now just type in packer directory
Code:
 git pull
or
Code:
git clone url
if you want to clone it somewhere else
Last edited by aniketroxx; 6th April 2014 at 01:08 PM.
The Following User Says Thank You to aniketroxx For This Useful Post: [ View ]
6th April 2014, 01:26 PM   |  #7  
FantasticalX's Avatar
Senior Member
Flag here
Thanks Meter: 364
 
472 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Question
Quote:
Originally Posted by aniketroxx

Its fixed , sorry i forgot to push one commit ! Now just type in packer directory

Code:
 git pull
or
Code:
git clone url
if you want to clone it somewhere else

Thanks for fixed it! Btw can i unpack zImage with this tool?
6th April 2014, 01:28 PM   |  #8  
aniketroxx's Avatar
OP Senior Member
Thanks Meter: 336
 
231 posts
Join Date:Joined: Jul 2013
More
Quote:
Originally Posted by FantasticalX

Thanks for fixed it! Btw can i unpack zImage with this tool?

no not yet , i will add it soon ! you can use kernel kitchen for unpacking
7th April 2014, 06:12 PM   |  #9  
aniketroxx's Avatar
OP Senior Member
Thanks Meter: 336
 
231 posts
Join Date:Joined: Jul 2013
More
Ability to extract boot.img has been added to the tool @FantasticalX
16th April 2014, 10:52 AM   |  #10  
FantasticalX's Avatar
Senior Member
Flag here
Thanks Meter: 364
 
472 posts
Join Date:Joined: Jan 2013
Donate to Me
More
Thumbs up
Quote:
Originally Posted by aniketroxx

Ability to extract boot.img has been added to the tool @FantasticalX

Great! Glad to hear that! Thank you so much for your work

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

Advanced Search
Display Modes