VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    JETSON NANO编译IMX307 driver和dts报错问题

    Scheduled Pinned Locked Moved CS MIPI camera
    5 Posts 2 Posters 1.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jdx-jdx
      last edited by

      NANO软件版本: r32.6.1

      原生SDK环境编译正常

      按照指导的以下步骤加入imx307的driver和dts后,编译报错

      1. 加载驱动
        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

      2. 加载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

      1. 编译

      2. 错误信息如下

      nano编译imx307 dts报错.txt

      1 Reply Last reply Reply Quote 0
      • veye_xummV Offline
        veye_xumm
        last edited by veye_xumm

        @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"
        
        

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jdx-jdx @veye_xumm
          last edited by

          @veye_xumm

          替换过的

          加载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后报错了】

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jdx-jdx @jdx-jdx
            last edited by

            @jdx-jdx

            已经解决了

            不好意思

            veye_xummV 1 Reply Last reply Reply Quote 0
            • veye_xummV Offline
              veye_xumm @jdx-jdx
              last edited by

              @jdx-jdx 恭喜,没关系!

              Questions will be answered as soon as possible, please be patient.
              如果你使用中文,请直接用中文提问。
              May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post