Community / Guides / Build a kernel
Guide

Build a kernel

Compile the GKI kernel with your device's sources and modules, and flash it safely.

What this covers
  1. Get the right kernel source and toolchain
  2. Configure for your platform
  3. Build the kernel and the modules
  4. Package and flash the boot image
  5. Recover if the kernel doesn't boot
The full guide, with the exact commands and the fixes for common failures, is in the community. Join to read it →