DP port not work when flash orin agx use custom build kernel

I want to build the kernel from source ,and flash the orin agx with my built kernel

the difference from the original images is that I set the LOCALVERSION to a cutom string,not “-tegra”

here is this process

  1. modify the LOCALVERSION

  2. build kernel and modules

  3. replace kernel

    cp $KERNEL_OUT_DIR/arch/arm64/boot/Image $TOP_DIR/kernel/Image
    
  4. replace dtb
    cp $KERNEL_OUT_DIR/arch/arm64/boot/dts/nvidia/* $TOP_DIR/kernel/dtb/

  5. replace kernel_supplements.tbz2 file

            tar --owner root --group root -cjf kernel_supplements.tbz2 lib/modules
        cp kernel_supplements.tbz2 $TOP_DIR/kernel/kernel_supplements.tbz2
    
  6. apply_binaries.sh

    sudo ./apply_binries.sh --t
    

after all of above , I make a full flash

and dp can not display anything? only the uart can show init process, and dp port not work? any sugesstion?

Did you use the correct tool chain to build the kernel?

I think its right… as follow…

export ARCH=arm64
export CROSS_COMPILE=~/nvidia/nvidia_sdk/JetPack_5.0_DP_Linux_DP_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/source/aarch64--glibc--stable-final/bin/aarch64-buildroot-linux-gnu-

export KERNEL_OUT_DIR=~/nvidia/nvidia_sdk/JetPack_5.0_DP_Linux_DP_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra/kernel_out
export TOP_DIR=~/nvidia/nvidia_sdk/JetPack_5.0_DP_Linux_DP_JETSON_AGX_ORIN_TARGETS/Linux_for_Tegra

export LOCALVERSION="-senior-V0.1"

make O=${KERNEL_OUT_DIR} DEFCONFIG_PATH=arch/arm64/configs tegra_defconfig
make O=${KERNEL_OUT_DIR} -j14
make O=${KERNEL_OUT_DIR} modules_install INSTALL_MOD_PATH=${KERNEL_OUT_DIR}


sudo cp $KERNEL_OUT_DIR/drivers/gpu/nvgpu/nvgpu.ko $TOP_DIR/rootfs/usr/lib/modules/5.10.65-senior-V0.1/kernel/drivers/gpu/nvgpu/nvgpu.ko

cp $KERNEL_OUT_DIR/arch/arm64/boot/Image $TOP_DIR/kernel/Image


cp $KERNEL_OUT_DIR/arch/arm64/boot/dts/nvidia/* $TOP_DIR/kernel/dtb/


cd $KERNEL_OUT_DIR
tar --owner root --group root -cjf kernel_supplements.tbz2 lib/modules
cp kernel_supplements.tbz2 $TOP_DIR/kernel/kernel_supplements.tbz2

cd $TOP_DIR

sudo ./apply_binries.sh --t

final, flash all

sudo ./flash.sh jetson-agx-orin-devkit mmcblk0p1

in fact, I think the kernel boot successful, only the DP port drvier not load correctly. may because I change the “LOCALVERSION”, the DP driver is module ? the it not match with the kernel release number? I don’t know…

Copy all the modules. Not only nvgpu.

hi:
we load nvgpu.ko is successful,but the ubuntu-desktop start failed. the error information below:

I didn’t ask anything about nvgpu.ko… I mean other modules as well…