HDMI not display and xrandr has no output

Hardware: Jetson Orin NX 8GB SOM + customized carried board
Software: JetPack 5.1.1 L4T 35.3.1

I download source and flash it :

sudo ./tools/kernel_flash/l4t_initrd_flash.sh \
  --external-device nvme0n1p1 \
  -c tools/kernel_flash/flash_l4t_external.xml \
  -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml" \
  --showlogs  \
  --network usb0 \
  p3509-a02+p3767-0000 nvme0n1p1

Everything is looks ok, and the HDMI display ok.

But after I update kernel ,my HDMI can’t display anymore.
I just replace the /boot/Image in the device and reboot.

This is the log in the debug serial port:
HDMI不显示调试串口日志.log (180.4 KB)

I run xrandr and found “Can’t open display”

root@tegra-ubuntu:~# xrandr
Can't open display 

And I use above command to flash all image again ,but HDMI is not diplay.

What’s more, I disconnect the external NVME and power on the board, HDMI display UEFI fine, so hardware is ok.

This is my build kernel procedure

OUTPATH=$PWD/source/public/kernel_out

cd source/public/kernel/kernel-5.10/
make ARCH=arm64 O=$OUTPATH tegra_defconfig
make ARCH=arm64 O=$OUTPATH -j8

cd Linux_for_Tegra
cp source/public/kernel_out/arch/arm64/boot/dts/nvidia/* kernel/dtb -rf
cp source/public/kernel_out/arch/arm64/boot/Image kernel/

After that, I copy Linux_for_Tegra/kernel/Image to the board /boot/Image

Could you please take a look at my steps to see if there are any issues? Thank you!

There is a bug in Orin NX 8GB + p3509 flash config file. Sku 0001 needs this patch to use correct dtb file.

Thank you for reply.
I have fix this bug, and dts is correct, but HDMI still can not display.

diff --git a/p3509-a02+p3767-0000.conf b/p3509-a02+p3767-0000.conf
index 78fd01c..e4928d0 100644
--- a/p3509-a02+p3767-0000.conf
+++ b/p3509-a02+p3767-0000.conf
@@ -55,7 +55,7 @@ update_flash_args_common()
                        BPFDTB_FILE="tegra234-bpmp-3767-0000-a00-3509-a02.dtb";
                fi
        elif [ "${board_sku}" = "0001" ]; then
-               DTB_FILE="tegra234-p3767-0000-p3509-a02.dtb";
+               DTB_FILE="tegra234-p3767-0001-p3509-a02.dtb";
                BPFDTB_FILE="tegra234-bpmp-3767-0001-3509-a02.dtb";
        elif [ "${board_sku}" = "0003" ] || [ "${board_sku}" = "0005" ]; then
                DTB_FILE="tegra234-p3767-0003-p3509-a02.dtb";


Please share the result of your lsmod.

This is my lsmod result.
lsmod.txt (2.3 KB)

The display drivers are gone. Please also build them.

There is separate code tarball in the public source. Please check it.

Thank you! I will try it,
Can you give me some reference?

Download the public source. Check the display driver tarball.

I found this tarball and build success:
Here are some ko file in the directory

this is my command

ROOT=$PWD
TOOLCHAIN_DIR=$ROOT/l4t-gcc

export CROSS_COMPILE_AARCH64_PATH=$TOOLCHAIN_DIR
export CROSS_COMPILE_AARCH64=$TOOLCHAIN_DIR/bin/aarch64-buildroot-linux-gnu-

cd source/public/NVIDIA-kernel-module-source-TempVersion/

export LOCALVERSION="-tegra"
export IGNORE_PREEMPT_RT_PRESENCE=1
make \
    modules -j4 \
    SYSSRC=$ROOT/source/public/kernel/kernel-5.10 \
    SYSOUT=$ROOT/source/public/kernel_out \
    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

#in source/public/NVIDIA-kernel-module-source-TempVersion/kernel-open/

And what should I do next?

Put your new ko files to the directory as the old files’ location…

Hi,WayneWWW,

I cannnot find same name file in the path :

Is there an error in my path?

你這個path就已經不是原本的狀態. 你要不要看一下原本預設bsp的內容?

Linux_for_Tegra/rootfs/lib/modules/5.10.104-tegra$ find -iname “nvidia*”
./kernel/drivers/nv-p2p/nvidia-p2p.ko
./extra/opensrc-disp/nvidia-modeset.ko
./extra/opensrc-disp/nvidia.ko
./extra/opensrc-disp/nvidia-drm.ko

Thank you for your help. After my careful inspection, I found that there was an exception in my SDK. Now I have downloaded and updated the SDK again, and everything is back to normal. Thank you for your support!

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