SOLVED JETSON NANO编译IMX307 driver和dts报错问题
-
NANO软件版本: r32.6.1
原生SDK环境编译正常
按照指导的以下步骤加入imx307的driver和dts后,编译报错
-
加载驱动
cp $RELEASE_PACK_DIR/drivers_source/cam_drv_src/* $NVIDIA_PATH/drivers/media/i2c/
cp $RELEASE_PACK_DIR/drivers_source/kernel_veyecam_config_<l4t_version> $L4T_DIR/sources/kernel/kernel-4.9/arch/arm64/configs/tegra_veyecam_defconfig -
加载dts
#for Nano
cp $RELEASE_PACK_DIR/Nano/JetPack_<ver>_Linux_JETSON_NANO_DEVKIT/dts\ dtb/common/t210/* -r $NANO_DTS_PATH/
cp $RELEASE_PACK_DIR/Nano/JetPack_<ver>_Linux_JETSON_NANO_DEVKIT/dts\ dtb/<camera model>/tegra210-porg-plugin-manager.dtsi -r $NANO_DTS_PATH/porg/kernel-dts/porg-plugin-manager
-
编译
-
错误信息如下
-
-
@jdx-jdx
你好,我们这边编译是没问题的。
根据你这个错误,感觉是少了什么东西。
上面几个命令里面的变量,你都正确替换了吗DTC arch/arm64/boot/dts/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/_ddot_/hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-a00.dtb ERROR (phandle_references): Reference to non-existent node or label "cam_module1" ERROR (phandle_references): Reference to non-existent node or label "csimx307_cam0" ERROR (phandle_references): Reference to non-existent node or label "csimx307_cam1" ERROR (phandle_references): Reference to non-existent node or label "cam_module1" ERROR (phandle_references): Reference to non-existent node or label "cam_module1_drivernode0"
-
替换过的
加载dts
cp $RELEASE_PACK_DIR/Nano/JetPack_4.6_Linux_JETSON_NANO_DEVKIT/dts\ dtb/common/t210/* -r $NANO_DTS_PATH/
cp $RELEASE_PACK_DIR/Nano/JetPack_4.6_Linux_JETSON_NANO_DEVKIT/dts\ dtb/CS-MIPI-IMX307/tegra210-porg-plugin-manager.dtsi -r $NANO_DTS_PATH/porg/kernel-dts/porg-plugin-manager
编译方法不太一样, 我是使用如下方法:
#将kernel_src压缩包解压到此目录下Linux_for_Tegra/source
export CROSS_COMPILE_AARCH64_PATH=/home/wen/workspace/project/gcc/gcc-linaro-6.4.1-2017.08-x86_64_aarch64-linux-gnu
编译
cd Linux_for_Tegra/source
source nvbuild.sh【这样方式,编译原生的sdk环境是正常的; 但是加载你们的dts后报错了】
-
-
@jdx-jdx 恭喜,没关系!