Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,395 Members 47,956 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
aniketroxx
Old
(Last edited by aniketroxx; 7th April 2014 at 05:14 PM.)
#1  
aniketroxx's Avatar
Senior Member - OP
Thanks Meter 301
Posts: 225
Join Date: Jul 2013
Prompt [TOOL] CIVICX KERNEL PACKING TOOL-2.0 [TOOL-kernel]

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
The Following 7 Users Say Thank You to aniketroxx For This Useful Post: [ Click to Expand ]
 
aniketroxx
Old
(Last edited by aniketroxx; 7th April 2014 at 05:07 PM.)
#2  
aniketroxx's Avatar
Senior Member - OP
Thanks Meter 301
Posts: 225
Join Date: Jul 2013
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
The Following 3 Users Say Thank You to aniketroxx For This Useful Post: [ Click to Expand ]
 
FantasticalX
Old
#3  
Senior Member
Thanks Meter 339
Posts: 426
Join Date: Jan 2013
Location: here

 
DONATE TO ME
Nice work!
 
Raj joshi
Old
#4  
Raj joshi's Avatar
Senior Member
Thanks Meter 310
Posts: 729
Join Date: Jul 2012
Location: Mumbai
Nice work buddy


Press thanks if i helped you

PREVIOUS DEVICES:

SAMSUNG GALAXY FIT(SOLD)
NOKIA N70(SOLD)
NOKIA XPRESS MUSIC 5310(IN USE)
SAMSUNG GALAXY NOTE 2(IN USE)

CURRENT DEVICE: SONY XPERIA L
ROM: OFFICIAL STOCK
KERNEL: 3.4.0
RECOVERY: CWM


My works:-

STOCK ROOTED ROMS (DEODEXED/ODEXED) FOR GALAXY FIT

EVILUTION ROM for GALAXY FIT..
The Following User Says Thank You to Raj joshi For This Useful Post: [ Click to Expand ]
 
FantasticalX
Old
#5  
Senior Member
Thanks Meter 339
Posts: 426
Join Date: Jan 2013
Location: here

 
DONATE TO ME
Quote:
Originally Posted by aniketroxx View Post
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 ";;")
 
aniketroxx
Old
(Last edited by aniketroxx; 6th April 2014 at 12:08 PM.)
#6  
aniketroxx's Avatar
Senior Member - OP
Thanks Meter 301
Posts: 225
Join Date: Jul 2013
Quote:
Originally Posted by FantasticalX View Post
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
The Following User Says Thank You to aniketroxx For This Useful Post: [ Click to Expand ]
 
FantasticalX
Old
#7  
Senior Member
Thanks Meter 339
Posts: 426
Join Date: Jan 2013
Location: here

 
DONATE TO ME
Quote:
Originally Posted by aniketroxx View Post
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?
 
aniketroxx
Old
#8  
aniketroxx's Avatar
Senior Member - OP
Thanks Meter 301
Posts: 225
Join Date: Jul 2013
Quote:
Originally Posted by FantasticalX View Post
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
 
aniketroxx
Old
#9  
aniketroxx's Avatar
Senior Member - OP
Thanks Meter 301
Posts: 225
Join Date: Jul 2013
Ability to extract boot.img has been added to the tool @FantasticalX
 
FantasticalX
Old
#10  
Senior Member
Thanks Meter 339
Posts: 426
Join Date: Jan 2013
Location: here

 
DONATE TO ME
Quote:
Originally Posted by aniketroxx View Post
Ability to extract boot.img has been added to the tool @FantasticalX
Great! Glad to hear that! Thank you so much for your work

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes