内核与设备树一起编译,时间太久了,很浪费时间
还是单独编译设备树比较好,本文章提供JetPack_5.1.1单独编译设备树,在host pc下方案
//单独编译设备树,在host pc下
以下步骤假设SDK安装目录为<TOPDIR>,源代码在$L4T_DIR/sources目录。
export TOP_DIR=/home/lz/nvidia/nvidia_sdk/JetPack_5.1.1_Linux_JETSON_ORIN_NANO_TARGETS
-
通用部分
export L4T_DIR=$TOP_DIR/Linux_for_Tegra export LOCALVERSION=-tegra export LDK_ROOTFS_DIR=$TOP_DIR/Linux_for_Tegra/rootfs export ARCH=arm64 export TEGRA_KERNEL_OUT=$L4T_DIR/sources/kernel/out_kernel export KERNEL_PATH=$L4T_DIR/sources/kernel/out_kernel export NVIDIA_PATH=$L4T_DIR/sources/kernel/nvidia export NANO_DTS_PATH=$L4T_DIR/sources/hardware/nvidia/platform/t210/ export TX2_DTS_PATH=$L4T_DIR/sources/hardware/nvidia/platform/t18x export XAVIER_DTS_PATH=$L4T_DIR/sources/hardware/nvidia/platform/t19x export ORIN_DTS_PATH=$L4T_DIR/sources/hardware/nvidia/platform/t23x