Real-Time Kernel HDMI无法显示

agx orin jp5.1.1 客户自定义板子

Real-Time Kernel HDMI无法显示,非Real-Time Kernel 能正常显示,编译操作步骤如下,请问如何能在Real-Time Kernel能正常显示

export CROSS_COMPILE=/home/lcfc/l4t-gcc/aarch64--glibc--stable-final/bin/aarch64-buildroot-linux-gnu-
export CROSS_COMPILE_AARCH64=/home/lcfc/l4t-gcc/aarch64--glibc--stable-final/bin/aarch64-buildroot-linux-gnu-
export CROSS_COMPILE_AARCH64_PATH=/home/lcfc/l4t-gcc/aarch64--glibc--stable-final/

home=$(pwd)

export TEGRA_KERNEL_OUT=${home}/out_dir




cd ${home}/source/kernel/
./kernel-5.10/scripts/rt-patch.sh apply-patches

#cd /home/neil/nvidia-b600/nvidia_sdk/JetPack_5.1.1_Linux_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/source/kernel/kernel-5.10
cd ${home}/source/
./nvbuild.sh -o ${home}/out_dir

cd ${home}
sudo ./apply_binaries.sh

export LOCALVERSION="-tegra"
export IGNORE_PREEMPT_RT_PRESENCE=1

make \
      modules \
      SYSSRC=${home}/source/kernel/kernel-5.10 \
      SYSOUT=${home}/out_dir \
      CC=${CROSS_COMPILE_AARCH64}gcc \
      LD=${CROSS_COMPILE_AARCH64}ld.bfd \
      AR=${CROSS_COMPILE_AARCH64}ar \
      CXX=${CROSS_COMPILE_AARCH64}g++ \
      OBJCOPY=${CROSS_COMPILE_AARCH64}objcopy \
      TARGET_ARCH=aarch64 \
      ARCH=arm64

参考链接:Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation

*** Please note that this reply is generated by LLM automatically ***

Based on the provided context, I will provide a comprehensive answer to the question.

The question seems to be asking about the Real-Time Kernel and Kernel Customization on the Jetson AGX Orin platform, specifically with regards to the NVIDIA Jetson Linux Developer Guide.

Real-Time Kernel:

The Real-Time Kernel is not explicitly mentioned in the provided context. However, it is mentioned that the Jetson Linux 36.4.3 release includes Linux Kernel 5.15, which is a standard Linux kernel and not a real-time kernel by default. However, it is possible to configure and customize the kernel to achieve real-time capabilities.

Kernel Customization:

Kernel Customization is mentioned in the context as a feature of the Jetson Linux Developer Guide. The guide provides documentation and implementation details for customizing the kernel on the Jetson AGX Orin platform. This includes information on how to configure and build the kernel, as well as how to customize the kernel to achieve specific requirements.

HDMI Real-Time Kernel:

There is no mention of an “HDMI Real-Time Kernel” in the provided context. It is possible that this is a specific configuration or customization of the kernel for HDMI-related applications, but without further information, it is difficult to provide a more detailed answer.

Comparison:

In comparison to other Jetson platforms, the Jetson AGX Orin platform has a similar software architecture and boot architecture, but with some differences in terms of specific features and configurations. For example, the Jetson AGX Orin platform has a UEFI-based bootloader, whereas other platforms may have a different bootloader.

NVIDIA Jetson Linux Developer Guide:

The NVIDIA Jetson Linux Developer Guide is a comprehensive resource that provides documentation and implementation details for developing and customizing the Jetson Linux operating system on various Jetson platforms, including the Jetson AGX Orin. The guide covers a wide range of topics, including kernel customization, device tree customization, and system configuration.

In summary, while the provided context does not explicitly mention the Real-Time Kernel, it does provide information on kernel customization and the Jetson Linux Developer Guide, which can be used to customize and configure the kernel on the Jetson AGX Orin platform.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi,
The steps in developer guide is validated on AGX Orin developer kit:

Kernel Customization — NVIDIA Jetson Linux Developer Guide 1 documentation

Would suggest you test on developer kit to ensure it works. And suggest use latest Jetpack 5.1.5 or 6.2.1

在jp5.1.5上开发板上验证Real-Time Kernel HDMI无法显示,通过typeC能ssh远程登录操作,但是无法显示。

操作步骤如下:

1.编译kernel

export CROSS_COMPILE=/home/lcfc/l4t-gcc/aarch64--glibc--stable-final/bin/aarch64-buildroot-linux-gnu-
export CROSS_COMPILE_AARCH64=/home/lcfc/l4t-gcc/aarch64--glibc--stable-final/bin/aarch64-buildroot-linux-gnu-
export CROSS_COMPILE_AARCH64_PATH=/home/lcfc/l4t-gcc/aarch64--glibc--stable-final/

home=$(pwd)

export TEGRA_KERNEL_OUT=${home}/out_dir

mkdir -p ${home}/out_dir


cd ${home}/source/
./nvbuild.sh -o ${home}/out_dir

sudo cp -rf ${home}/out_dir/drivers/gpu/nvgpu/nvgpu.ko ${home}/rootfs/usr/lib/modules/5.10.216-rt108-tegra/kernel/drivers/gpu/nvgpu/nvgpu.ko
sudo cp -rf ${home}/out_dir/arch/arm64/boot/dts/nvidia/*  ${home}/kernel/dtb/
sudo cp -rf ${home}/out_dir/arch/arm64/boot/Image ${home}/kernel/

cd ${home}
sudo ./apply_binaries.sh

cd ${home}/rootfs
sudo tar --owner root --group root -cjf ${home}/kernel/kernel_supplements.tbz2 lib/modules
#sudo tar --owner root --group root -cjf ../kernel/kernel_supplements.tbz2 lib/modules

2.To Build the Real-Time Kernel

解压

cd ${home}/source/kernel/
./kernel-5.10/scripts/rt-patch.sh apply-patches

cd ${home}/source/kernel/kernel-5.10      
sudo make ARCH=arm64 O=$TEGRA_KERNEL_OUT modules_install INSTALL_MOD_PATH=${home}/rootfs



cd ${home}/tools/
sudo ./l4t_create_default_user.sh -u ubuntu -p ubuntu

3. To Build Display Kernel Modules

解压nvidia_kernel_display_driver_source.tbz2,进入nvdisplay目录

export LOCALVERSION="-tegra"
export IGNORE_PREEMPT_RT_PRESENCE=1


cd $(pwd)/nvdisplay/
make \
      modules \
      SYSSRC=${home}/source/kernel/kernel-5.10 \
      SYSOUT=${home}/out_dir \
      CC=${CROSS_COMPILE_AARCH64}gcc \
      LD=${CROSS_COMPILE_AARCH64}ld.bfd \
      AR=${CROSS_COMPILE_AARCH64}ar \
      CXX=${CROSS_COMPILE_AARCH64}g++ \
      OBJCOPY=${CROSS_COMPILE_AARCH64}objcopy \
      TARGET_ARCH=aarch64 \
      ARCH=arm64

4. 拷贝nvidia-drm.ko, nvidia.ko, and nvidia-modeset.ko


sudo depmod -a

按照如上操作显示器无法显示,但是ssh能登录系统

Hi,
Please try the steps:
Nvidia_kernel_display_driver_source.tbz2 not support real-time kernels - #19 by carolyuu

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