Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.11 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.11 KB

How to build:

  1. Establish Android build environment and install repo.

  2. Initialize repo:

repo init -u https://android.googlesource.com/kernel/manifest -b common-android14-6.1-lts
curl -o .repo/local_manifests/manifest_brcm_rpi.xml -L https://raw.githubusercontent.com/raspberry-android/android_kernel_manifest/android-14.0/manifest_brcm_rpi.xml --create-dirs
  1. Sync source code:
repo sync
  1. Compile:

Raspberry Pi 4:

tools/bazel build --config=fast --config=stamp //common:rpi4

Raspberry Pi 5:

tools/bazel build --config=fast --config=stamp //common:rpi5

Compiled kernel Image, dtbs, and overlays can be found in bazel-bin/common/rpi4/arch/arm64/boot or bazel-bin/common/rpi5/arch/arm64/boot directory.

Replace existing files in device/brcm/rpi4-kernel or device/brcm/rpi5-kernel directory of the Android source tree to include them in Android 14 build. You can also replace existing files in the boot partition of Raspberry Pi 4 or Raspberry Pi 5 Android 14 image.