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…
hi. you may copy /lib/modules/5.10.65-tegra/extra/opensrc-disp/*.ko to /usr/lib/modules/5.10.65-senior-V0.1/extra/opensrc-disp/, and execute “sudo depmod -a”.
BTW, source code tarball of those opensrc-disp modules is nvidia_kernel_display_driver_source.tbz2 which is included in public_sources.tbz2.
i think it may be the right direction to solve the problem.
but recently i don’t have the condition to debug if it works for me
anyway, accroding to you suggestion,
just copy the /lib/modules/5.10.65-tegra/extra/opensrc-disp/*.ko will work? I mean that I modify the relase number. if just copy, when the kernel load the display module will the system report an error? because the different release number?
what the “sudo depmod -a”. do?
third, i’m confluse about how to build the source code ? any suggestion ?