How Do I Create a Custom Linux Kernel?

How Do I Create a Custom Linux Kernel?
Contents

How do I create a custom kernel?

Booting The Compiled Kernel:

  1. Browse to /out/arch/arm64/boot and find the Image-dtb file (compiled zImage) and copy the file.
  2. Download Android Image Kitchen and decompile your stock boot image. Once you decompile it you’ll find the stock zImage in the decompiled folder. …
  3. Flash via fastboot using the following command:

How do I create a kernel image?

Compiling the Kernel

After configuring the kernel, do a “make zImage” to create a compressed kernel image. If you want to make a boot disk (without root filesystem or LILO), insert a floppy in your A: drive, and do a “make zdisk”. If your kernel is too large for “make zImage”, use “make bzImage” instead.

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.