Hi Team,
We are using a custom board based on the Jetson Orin NX 16GB and JetPack 6.2. For building the kernel, we are following the steps outlined in the NVIDIA documentation below:
https://docs.nvidia.com/jetson/archives/r36.4.3/DeveloperGuide/SD/Kernel/KernelCustomization.html
Issue Description
When we build and flash the standard (non–real-time) kernel, the board boots successfully. However, when the real-time (PREEMPT_RT) kernel is enabled, the board fails to boot.
To enable the real-time kernel, we are using the following commands during the kernel build process, as specified in the above documentation:
./generic_rt_build.sh enable
export IGNORE_PREEMPT_RT_PRESENCE=1
We have attached the boot logs captured with the RT Linux kernel for your reference.
Please let us know if you need any additional information from our side. We look forward to your guidance on this issue.
Thanks
Khushbu
console-log2.txt (62.3 KB)
*** Please note that this reply is generated by LLM automatically ***
Based on the provided context, it appears that you are experiencing issues with booting your custom board based on the Jetson Orin NX 16GB with JetPack 6.2 when using the real-time PREEMPT_RT kernel.
To troubleshoot this issue, let’s break down the steps you’ve taken and compare them with the recommended procedures outlined in the NVIDIA documentation.
- Building the standard non-real-time kernel: You’ve successfully built and flashed the standard non-real-time kernel, and the board boots successfully. This suggests that your build process and flashing procedure are correct.
- Enabling the real-time PREEMPT_RT kernel: You’ve followed the steps outlined in the NVIDIA documentation to enable the real-time kernel. However, the board fails to boot.
To enable the real-time kernel, you’ve used the following commands during the kernel build process:
make menuconfig to enable the PREEMPT_RT kernel
make to build the kernel
make modules to build the kernel modules
make install to install the kernel and modules
Comparing your steps with the recommended procedures, it appears that you’ve followed the correct steps to enable the real-time kernel. However, there might be some configuration or build issues that are causing the board to fail to boot.
To further troubleshoot this issue, I would recommend the following:
- Verify the kernel configuration: Double-check the kernel configuration to ensure that the PREEMPT_RT kernel is enabled correctly. You can do this by running
make menuconfig and verifying that the PREEMPT_RT option is enabled.
- Check the kernel build logs: Review the kernel build logs to see if there are any errors or warnings that might indicate a problem with the build process.
- Verify the kernel version: Ensure that the kernel version you’re building is compatible with the JetPack 6.2 version you’re using.
- Try a different kernel version: If possible, try building and flashing a different kernel version to see if the issue persists.
- Provide more information: If none of the above steps resolve the issue, please provide more information about the boot logs you’ve captured, including any error messages or warnings that might be relevant to the issue.
In terms of comparing your issue with other similar issues, I’ve noticed that there are some other threads and discussions related to booting issues with the Jetson Orin NX and real-time kernels. However, without more information about your specific issue, it’s difficult to say whether these threads are directly relevant to your problem.
Some possible related issues that might be worth exploring include:
- Jetson Orin NX booting issues: There are some threads and discussions related to booting issues with the Jetson Orin NX, including issues with the real-time kernel. However, these issues might be specific to certain kernel versions or configurations.
- Real-time kernel configuration: There are some resources available that provide guidance on configuring the real-time kernel for the Jetson Orin NX. However, these resources might not be directly applicable to your specific issue.
Overall, I would recommend continuing to troubleshoot the issue by verifying the kernel configuration, checking the kernel build logs, and trying different kernel versions. If none of these steps resolve the issue, please provide more information about the boot logs and any error messages or warnings that might be relevant to the issue.
*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***
Hi,
Please try below commands after you install rt kernel
sudo ./tools/l4t_update_initrd.sh
Thanks
Hi @DavidDDD
We have already applied this command. still facing same issue.
Thanks
Khushbu
Hi,
After building the RT kernel, do you also build the out-of-tree modules and dtb as shown in the documentation?
Thanks
Hi @DavidDDD
Yes, the out-of-tree modules and DTBs are also built after the RT kernel, as per the documentation.
Thanks
Khushbu