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

Search This thread

aniketroxx

Senior Member
Jul 26, 2013
235
341
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:
[COLOR="Red"]NOTE:THIS TOOL IS ADAPTED FOR XPERIA L ONLY , YOU WILL HAVE TO EDIT IT IN ORDER TO WORK WITH NEW DEVICE [/COLOR]

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
Insert the Ramdisk from Stock Kernel

Now in RECOVERY_RAMDISK
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 :


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 :



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 :
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:
Suppose you are implementing some cwm/twrp then then you can put it here for further xz compression

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

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

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

Z_IMAGE
Your extracted zImage will contain in this folder

EXTRACTED_RAMDISK
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:

aniketroxx

Senior Member
Jul 26, 2013
235
341
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:

FantasticalX

Senior Member
Jan 20, 2013
514
398
Yogyakarta
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

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

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    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:
    [COLOR="Red"]NOTE:THIS TOOL IS ADAPTED FOR XPERIA L ONLY , YOU WILL HAVE TO EDIT IT IN ORDER TO WORK WITH NEW DEVICE [/COLOR]

    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
    Insert the Ramdisk from Stock Kernel

    Now in RECOVERY_RAMDISK
    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 :


    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 :



    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 :
    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:
    Suppose you are implementing some cwm/twrp then then you can put it here for further xz compression

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

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

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

    Z_IMAGE
    Your extracted zImage will contain in this folder

    EXTRACTED_RAMDISK
    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
    3
    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
    1
    Nice work buddy
    1
    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