Appendix A: Real-Time Linux Defconfig

  1. 5.15-rt17 patch: 0001-patch-5.15-rt17.patch
  2. rt-for-dvk patch: 0002-rt-for-dvk
Note: You can contact your technical support to get the patches. Please apply the patches in the above order.
To apply the patches, execute the following command:
  • With git repository:
    git am (patch)
    For example, execute the following command under Linux source code directory:
    git am 0001-patch-5.15-rt17.patch
    Example output:
    Figure 1. Example Output
  • Without git repository:
    patch -p1 < (patch)

Verification

To verify the configuration, please follow the steps below:
  1. Execute the following command under SDK source code path:
    make linux-menuconfig
  2. Open Fully Preempt Kernel under Preemption Model.
    Figure 2. Fully Preempt Kernel
  3. Confirm the CPU Frequency scaling policy has changed under Device Drivers.
    Figure 3. CPU Frequency scaling
  4. After compiling and burning the image, execute the following command to check if it is an RT kernel:
    cat /proc/version
    Result:
    Figure 4. Example Result
    cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    Result:
    Figure 5. Example Result
  5. Execute the following command to check if the corresponding configuration is opened properly:
    • zcat /proc/config.gz | grep PREEMPT
      Result:
      Figure 6. Example Result
    • zcat /proc/config.gz | grep HZ
      Result:
      Figure 7. Example Result
    • zcat /proc/config.gz | grep GOV
      Result:
      Figure 8. Example Result