Skip to main content
The Qualcomm® Linux RT kernel is built using the same Yocto toolchain as the standard kernel. The meta-qcom layer provides a dedicated Bitbake recipe that fetches the LTS RT kernel sources, applies the PREEMPT_RT patch set, and enables the required Kconfig options automatically.

Choose the correct RT recipe

Two RT recipes are available depending on the target branch: Both recipes are in meta-qcom/recipes-kernel/linux/. The LTS recipe is used for all examples on this page.

Build the RT kernel image

1. Sync the workspace

Clone meta-qcom at a release tag and sync all Qualcomm Linux meta layers before building. For workspace setup instructions, see Build the kernel with Yocto.

2. Open the kas shell for the RT kernel

Replace qcs6490-rb3gen2-core-kit.yml with the kas machine file for your target board.

3. Build the image

Build output is in:

4. Flash to the device

Customise the RT kernel

Add a patch

  1. Place the patch file in recipes-kernel/linux/linux-qcom-6.18/:
  2. Append it to SRC_URI in linux-qcom-rt_6.18.bb:

Add a Kconfig configuration fragment

  1. Create a .cfg file with the required CONFIG_* symbols:
    Example contents:
  2. Append it to SRC_URI in linux-qcom-rt_6.18.bb:

Modify the kernel command line

Add or override command-line parameters in meta-qcom/ci/base.yml using the KERNEL_CMDLINE_EXTRA variable:
For platform-specific command-line tuning variables, set them in meta-qcom/conf/machine/<machine-name>.conf:
These variables configure the RT core isolation, IRQ affinity, and RCU callback exclusion on the platform kernel command line.

Verify the RT kernel is installed

After flashing and rebooting, confirm the RT kernel is active:
For latency validation after installation, see RT validation and known limitations.