Thanks go to COOLYA, PABLOPL, AND UNFORGIVEN512, I used your sources to learn how to fix our broken source code, and used some of your files
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
1. Download hpkf.tar.gz File
hpkf.tar.gz
2. Extract file to your home/user folder, you should now have a /home/user/hpkf folder
3. Open Terminal
4a. MAKE YOUR zImage (factory config)
$ cd hpkf/kernel
$ make clean
$ make mrproper
$ cp prevailconfig .config
$ make
Compile will take a little while, when it is done the zImage will be in
/home/user/hpkf/kernel/arch/arm/boot/
OR
4b. MAKE a MODIFIED zImage (custome config)
$ cd hpkf/kernel
$ make clean
$ make mrproper
$ cp prevailconfig .config
$ make menuconfig
You will now have a Menu that you can select a lot of different options.
Highlight Load an Alternate Configuration File an hit enter
Highlight OK and hit enter (it should say .config)
Go threw the Menus and make your changes
When you are done go back to the main screen and Highlight Save an Alternate Configuration File and hit enter
Highlight OK and hit enter (it should say .config)
Highlight Exit and hit enter
Backup your new config you made
$ cp .config myconfig
Compile the new zImage with your config
$ make
Compile will take a little while, when it is done the zImage will be in
/home/user/hpkf/kernel/arch/arm/boot/
5. PACK zImage with a RamDisk (BOOT or RECOVERY)
Make CM7 Beta 5 Kernel (BOOT) Flashable with ClockWorkMOD
$ cd ../pack
$ ./cwmboot.pl cmbeta5
Make Kouma 1.3 Kernel (BOOT) Flashable with Odin One Package
$ cd ../pack
$ ./odinboot.pl kouma13
Make ClockWorkMOD 5.0.2.7 (RECOVERY) Flashable with ClockWorkMOD
$ cd ../pack
$ ./cwmrecov.pl CWM5027
Make ClockWorkMOD 5.0.2.7 (RECOVERY) Flashable with Odin One Package
$ cd ../pack
$ ./odinrecov.pl CWM5027
Either a ZIP or a TAR file will be located in the /home/user/hpkf/pack folder depending on what you chose to make
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/hpkf/pack folder
Open Terminal
$ cd hpkf/pack
$ ./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 (see step 5 above)
Just remember that the packing process will pull the zImage from /home/user/hpkf/kernel/arch/arm/boot/ so if you have not compiled the kernel or if you want to use a different zImage you will need to copy one to that location and it has to be named zImage
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)
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
1. Download hpkf.tar.gz File
hpkf.tar.gz
2. Extract file to your home/user folder, you should now have a /home/user/hpkf folder
3. Open Terminal
4a. MAKE YOUR zImage (factory config)
$ cd hpkf/kernel
$ make clean
$ make mrproper
$ cp prevailconfig .config
$ make
Compile will take a little while, when it is done the zImage will be in
/home/user/hpkf/kernel/arch/arm/boot/
OR
4b. MAKE a MODIFIED zImage (custome config)
$ cd hpkf/kernel
$ make clean
$ make mrproper
$ cp prevailconfig .config
$ make menuconfig
You will now have a Menu that you can select a lot of different options.
Highlight Load an Alternate Configuration File an hit enter
Highlight OK and hit enter (it should say .config)
Go threw the Menus and make your changes
When you are done go back to the main screen and Highlight Save an Alternate Configuration File and hit enter
Highlight OK and hit enter (it should say .config)
Highlight Exit and hit enter
Backup your new config you made
$ cp .config myconfig
Compile the new zImage with your config
$ make
Compile will take a little while, when it is done the zImage will be in
/home/user/hpkf/kernel/arch/arm/boot/
5. PACK zImage with a RamDisk (BOOT or RECOVERY)
Make CM7 Beta 5 Kernel (BOOT) Flashable with ClockWorkMOD
$ cd ../pack
$ ./cwmboot.pl cmbeta5
Make Kouma 1.3 Kernel (BOOT) Flashable with Odin One Package
$ cd ../pack
$ ./odinboot.pl kouma13
Make ClockWorkMOD 5.0.2.7 (RECOVERY) Flashable with ClockWorkMOD
$ cd ../pack
$ ./cwmrecov.pl CWM5027
Make ClockWorkMOD 5.0.2.7 (RECOVERY) Flashable with Odin One Package
$ cd ../pack
$ ./odinrecov.pl CWM5027
Either a ZIP or a TAR file will be located in the /home/user/hpkf/pack folder depending on what you chose to make
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/hpkf/pack folder
Open Terminal
$ cd hpkf/pack
$ ./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 (see step 5 above)
Just remember that the packing process will pull the zImage from /home/user/hpkf/kernel/arch/arm/boot/ so if you have not compiled the kernel or if you want to use a different zImage you will need to copy one to that location and it has to be named zImage
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)