Do not use this on other Phones
We can not compile a bootable kernel zImage yet, but we can mod the kernel ramdisk.
I created some tools for repacking a zImage and ramdisk, so that others can release Kernels, who knows, maybe some of you can come up with some creative mods.
My tool can create a ClockWorkMod flashable kernel.
You have to have Linux, the Android SDK and all packages required for the Android SDK
You also need Python 2.7, newer versions of Pyhton tend to have problems with the Android SDK
Download and unzip the zpack.zip file to your /home/"user" folder
http://www.mediafire.com/?97ud3ddbissci8y
Examples
To Create a Fastboot flashable stock boot.img
Open terminal
cd /home/"user"/zpack
./boot.pl stockboot
you will now have a boot.img file in the zpack folder that you could flash with Fastboot
To Create a CWM flashable stock boot.img
Open terminal
cd /home/"user"/zpack
./zcwmkrnl.pl stockboot
you will now have a zcwmkrnl.zip file in the zpack folder that you could copy to sd-card and flash with cwm
To Create a CWM flashable CM7 boot.img
Open terminal
cd /home/"user"/zpack
./zcwmkrnl.pl cm7
you will now have a zcwmkrnl.zip file in the zpack folder that you could copy to sd-card and flash with cwm
To Create a Fastboot flashable stock recovery.img
Open terminal
cd /home/"user"/zpack
./boot.pl stockrecovery
you will now have a recovery.img file in the zpack folder that you could flash with Fastboot
To Create a Fastboot flashable CWM recovery.img
Open terminal
cd /home/"user"/zpack
./boot.pl cwm5028
you will now have a recovery.img file in the zpack folder that you could flash with Fastboot
To Create a CWM flashable Stock recovery.img
Open terminal
cd /home/"user"/zpack
./zcwmrec.pl stockrecovery
you will now have a zcwmkrnl.zip file in the zpack folder that you could copy to sd-card and flash with cwm
To Create a CWM flashable CWM5028 recovery.img
Open terminal
cd /home/"user"/zpack
./zcwmrec.pl cwm5028
you will now have a zcwmkrnl.zip file in the zpack folder that you could copy to sd-card and flash with cwm
To Create your own version of a CWM flashabe Kernel zip file
Create a new folder called myramdisk and put the files in it that you want
Make your changes to the files or add modules or whatever the hell you want.
Remember that the ramdisk has a size limit, so you cannot add too many things
Open terminal
cd /home/"user"/zpack
./zcwmkrnl.pl myramdisk
you will now have a cwmkrnl.zip file in the zpack folder that you could copy to sdcard and flash with cwm
IF YOU WANT TO EXTRACT THE RAMDISK AND zImage from a different boot.img or recovery.img
Copy the boot.img or recovery.img to the /home/user/zpack folder
Open Terminal
cd /home/"user"/zpack
./split.pl boot.img
or
./split.pl recovery.img
This with make two files
boot.img-kernel or recovery.img-kernel (this is the zImage)
and
boot.img-ramdisk.gz or recovery.img-ramdisk.gz (this is the double compressed Ramdisk)
Right click on the gz file and choose extract here, you will now have a file
boot.img-ramdisk or recovery.img-ramdisk
This is a CPIO file which is the compressed Ramdisk
Right click on the CPIO file and choose extract here, you will now have a folder
boot.img-ramdisk_FILES or recovery.img-ramdisk_FILES
This is the uncompressed Ramdisk that you can now edit the files, like the the init.rc and stuff like that, I would re-name that folder to something meaningful like kouma14 or something like that.
When you are done re-pack it using steps above
If I have helped you, and you like my work, please click on the Thanks Button and give my thread a rating by clicking on the stars above.
If you would like to buy me a beer cofee, you can click on the PayPal button
![](http://loianegroner.com/wp-content/uploads/2011/01/Paypal_DonateButton.gif)
I created some tools for repacking a zImage and ramdisk, so that others can release Kernels, who knows, maybe some of you can come up with some creative mods.
My tool can create a ClockWorkMod flashable kernel.
You have to have Linux, the Android SDK and all packages required for the Android SDK
You also need Python 2.7, newer versions of Pyhton tend to have problems with the Android SDK
Download and unzip the zpack.zip file to your /home/"user" folder
http://www.mediafire.com/?97ud3ddbissci8y
Examples
To Create a Fastboot flashable stock boot.img
Open terminal
cd /home/"user"/zpack
./boot.pl stockboot
you will now have a boot.img file in the zpack folder that you could flash with Fastboot
To Create a CWM flashable stock boot.img
Open terminal
cd /home/"user"/zpack
./zcwmkrnl.pl stockboot
you will now have a zcwmkrnl.zip file in the zpack folder that you could copy to sd-card and flash with cwm
To Create a CWM flashable CM7 boot.img
Open terminal
cd /home/"user"/zpack
./zcwmkrnl.pl cm7
you will now have a zcwmkrnl.zip file in the zpack folder that you could copy to sd-card and flash with cwm
To Create a Fastboot flashable stock recovery.img
Open terminal
cd /home/"user"/zpack
./boot.pl stockrecovery
you will now have a recovery.img file in the zpack folder that you could flash with Fastboot
To Create a Fastboot flashable CWM recovery.img
Open terminal
cd /home/"user"/zpack
./boot.pl cwm5028
you will now have a recovery.img file in the zpack folder that you could flash with Fastboot
To Create a CWM flashable Stock recovery.img
Open terminal
cd /home/"user"/zpack
./zcwmrec.pl stockrecovery
you will now have a zcwmkrnl.zip file in the zpack folder that you could copy to sd-card and flash with cwm
To Create a CWM flashable CWM5028 recovery.img
Open terminal
cd /home/"user"/zpack
./zcwmrec.pl cwm5028
you will now have a zcwmkrnl.zip file in the zpack folder that you could copy to sd-card and flash with cwm
To Create your own version of a CWM flashabe Kernel zip file
Create a new folder called myramdisk and put the files in it that you want
Make your changes to the files or add modules or whatever the hell you want.
Remember that the ramdisk has a size limit, so you cannot add too many things
Open terminal
cd /home/"user"/zpack
./zcwmkrnl.pl myramdisk
you will now have a cwmkrnl.zip file in the zpack folder that you could copy to sdcard and flash with cwm
IF YOU WANT TO EXTRACT THE RAMDISK AND zImage from a different boot.img or recovery.img
Copy the boot.img or recovery.img to the /home/user/zpack folder
Open Terminal
cd /home/"user"/zpack
./split.pl boot.img
or
./split.pl recovery.img
This with make two files
boot.img-kernel or recovery.img-kernel (this is the zImage)
and
boot.img-ramdisk.gz or recovery.img-ramdisk.gz (this is the double compressed Ramdisk)
Right click on the gz file and choose extract here, you will now have a file
boot.img-ramdisk or recovery.img-ramdisk
This is a CPIO file which is the compressed Ramdisk
Right click on the CPIO file and choose extract here, you will now have a folder
boot.img-ramdisk_FILES or recovery.img-ramdisk_FILES
This is the uncompressed Ramdisk that you can now edit the files, like the the init.rc and stuff like that, I would re-name that folder to something meaningful like kouma14 or something like that.
When you are done re-pack it using steps above
If I have helped you, and you like my work, please click on the Thanks Button and give my thread a rating by clicking on the stars above.
If you would like to buy me a beer cofee, you can click on the PayPal button
![](http://loianegroner.com/wp-content/uploads/2011/01/Paypal_DonateButton.gif)