# PREEMPT\_RT kernel for Xavier NX

**URL:** <https://forums.developer.nvidia.com/t/preempt-rt-kernel-for-xavier-nx/257176>\
**Category:** Jetson Xavier NX\
**Tags:** preempt\_rt\
**Created:** [June 19, 2023, 6:42pm UTC](https://forums.developer.nvidia.com/t/preempt-rt-kernel-for-xavier-nx/257176 "2023-06-19T18:42:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lynxlynx](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@lynxlynx](https://forums.developer.nvidia.com/u/lynxlynx)\
**Post date:** [June 19, 2023, 6:42pm UTC](https://forums.developer.nvidia.com/t/preempt-rt-kernel-for-xavier-nx/257176/1 "2023-06-19T18:42:06Z")

</div>

I have now manually downloaded and extracted the kernel sources (kernel\_src.tbz2), applied RT patches (./kernel-5.10/scripts/rt-patch.sh apply-patches) and built the kernel (./nvbuild.sh -o $PWD/kernel\_out). I donot use a host machine.

[https://docs.nvidia.com/jetson/archives/r35.3.1/DeveloperGuide/text/SD/Kernel/KernelCustomization.html#to-build-the-real-time-kernel](https://docs.nvidia.com/jetson/archives/r35.3.1/DeveloperGuide/text/SD/Kernel/KernelCustomization.html#to-build-the-real-time-kernel)

I am a bit confused about the next step. For example, the instruction below is quite ambigous, as it does not state at which point I should run apply\_binaries.sh, or whether this optional also?

> Optionally, archive the installed kernel modules:
> 
> $ cd \<modules\_install\_path\> $ tar --owner root --group root -cjf kernel\_supplements.tbz2 lib/modules
> 
> You can use the installed modules to provide the contents of `/lib/modules/<kernel_version>/` on the target system. Before you run `apply_binaries.sh`, make a copy of this archive to replace the one at this location on the target device:
> 
> Linux\_for\_Tegra/kernel/kernel\_supplements.tbz2

Would there exist a good tutorial for this, so I don’t have to second guess what I should do?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [June 20, 2023, 1:42am UTC](https://forums.developer.nvidia.com/t/preempt-rt-kernel-for-xavier-nx/257176/4 "2023-06-20T01:42:06Z")

</div>

Hi,  
A user has shared steps in  
[JetPack 5.1 RT patch not working - #4 by shir1](https://forums.developer.nvidia.com/t/jetpack-5-1-rt-patch-not-working/247771/4)

Please refer to it.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [July 12, 2023, 6:25am UTC](https://forums.developer.nvidia.com/t/preempt-rt-kernel-for-xavier-nx/257176/6 "2023-07-12T06:25:55Z")

</div>

Closed on July 12, 2023, 6:25am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
