Archive for June 28th, 2010

How to compile kernel — part 2

In the part 1 I explained how to compile a new kernel, and here’s the explanation how to upload the newly compiled kernel to your device.

  1. make sure you really have arch/arm/boot/zImage file (about 2MB in case of HTC Desire/Eclair) present after your kernel compilation was over.
  2. download AnyKernel template by koush and unpack it somewhere
  3. copy your zImage file to the template /kernel directory, there supposed to be another zImage file there — just replace it
  4. go back to the template directory, you will see three subdirectories: META-INF, kernel & system
  5. zip them all (zip -r ../update.zip *)
  6. sign the update.zip and flash it to your device
  7. scripts included in the template will unpack your current boot.img, keep ramdisk, but replace the kermel
  8. enjoy!

Big thanks to Bartosz Ponurkiewicz, who gave me nice advices and warned about common problems on the way!

, ,

No Comments