View my account

Realsense SDK can'work on the Nvidia Jetson Jetpack5.1.4 (linux kernel 5.10)

Comments

12 comments

  • MartyX Grover

    Hi Kevin Liao  The realsense-config.json file is primarily used by the realsense-viewer program to apply configuration settings.  If the file is absent then realsense-viewer applies its default settings instead.  I am not aware of a past case where a launch of rs-capture has failed due to realsense-config.json though.

     

    Does rs-capture still fail to launch if it is run in sudo admin permissions mode with sudo rs-capture

    0
    Comment actions Permalink
  • Kevin Liao

    I’ve tried running sudo ./rs-capture, but the issue still occurs. This issue only occurs in versions v2.56.5 and v2.56.4; it doesn't happen in earlier versions. I found that v2.56.5 and v2.56.4 were only released recently.


    I’m currently using v2.56.3, and rs-capture can successfully launch the RealSense D457, but I’m still encountering some issues.
    1. Sometimes running rs-capture fails with the error "Frame didn't arrive within 15000
    RealSense error calling rs2_pipeline_wait_for_frames(pipe:0xaaaaf972c5d0):",
    and I need to re-run rs-capture.

    2. 
    Even when using v2.56.3, my RealSense Viewer still fails to run. The rs-capture function works properly.


    The following are the build steps.
    $ sudo apt update
    $ sudo apt install -y \
    $ git cmake build-essential libusb-1.0-0-dev pkg-config \
    libglfw3-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
    $ sudo apt install libssl-dev

    $ git clone https://github.com/IntelRealSense/librealsense.git
    $ cd librealsense

    $ rm -rf build
    $ mkdir build && cd build

    $ cmake .. -DBUILD_EXAMPLES=true -DBUILD_CAPTURE=ON -DCMAKE_BUILD_TYPE=Release
    $ make -j$(nproc)


    0
    Comment actions Permalink
  • Kevin Liao

    I would like to know why, when I followed the same installation steps a month ago, the RealSense Viewer version was v2.55.1, but recently, using the same steps, the version became v2.56.5. Now both my RealSense Viewer and rs-capture are having issues.

    $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE

    $ sudo add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" -u

    $ sudo apt-get install librealsense2-utils
    $ sudo apt-get install librealsense2-dev

    0
    Comment actions Permalink
  • MartyX Grover

    When installing from packages, the librealsense version that is installed will be the current latest one unless a specific package version number is provided in the installation instruction.  For a while the latest was 2.55.1.  Last week the version updated to a new one.  

     

    You could try using the apt-cache showpkg librealsense2 command to find the exact package version number for 2.55.1 and then attempt to install 2.55.1 instead of 2.56.5 using instructions here:

    https://github.com/IntelRealSense/librealsense/issues/10526

    0
    Comment actions Permalink
  • Kevin Liao

    Do I only need to make the following changes? If I only want v2.55.1 .Because the newer version of the SDK has many issues on our Nvidia Jetson platform.


    "sudo apt-get install librealsense2-utils=2.55.1-0~realsense0.5307 librealsense2-dkms=2.55.1-0~realsense0.5307"

    0
    Comment actions Permalink
  • Kevin Liao

    I have successfully installed SDK version v2.55.1 using the following steps, but I’m still encountering some issues:

    1. When running rs-capture, the image appears, but an error is shown: xioctl(VIDIOC_S_EXT_CTRLS) failed: Invalid argument.

    2. When running realsense-viewer, no device is detected.


      sudo apt-get install \
      librealsense2=2.55.1-0~realsense.3291 \
      librealsense2-utils=2.55.1-0~realsense.3291 \
      librealsense2-gl=2.55.1-0~realsense.3291 \
      librealsense2-dev=2.55.1-0~realsense.3291
    =====================================================================================================
    Another device installed rs-capture and realsense-viewer using the following commands about a month ago, and both functions work properly:


    Both devices have exactly the same hardware, BSP, firmware, and SDK version. The only difference is the SDK installation method.

    0
    Comment actions Permalink
  • MartyX Grover

    Have you tested realsense-viewer and rs-capture with sudo launch since you installed 2.55.1 today, please?

    sudo realsense-viewer

    sudo rs-capture
    0
    Comment actions Permalink
  • Kevin Liao

    Yes, I have run them with sudo, and the result is still the same.

    The other machine, which installed version v2.55.1 a month ago, has both rs-capture and realsense-viewer working normally.

    0
    Comment actions Permalink
  • Kevin Liao

    Any updates?

    0
    Comment actions Permalink
  • MartyX Grover

    As you are using a GMSL connection instead of USB, I recommend creating a new ticket on the librealsense GitHub support site by visiting the link below and clicking the green New Issue button.  I can then refer your GitHub ticket to a GMSL expert on the RealSense team.

    https://github.com/IntelRealSense/librealsense/issues

     

    Please include a link back to this original ticket in your new GitHub message.

    0
    Comment actions Permalink
  • Kevin Liao

    I have fond root rause. I don't install udev package. Thanks your reply.

    0
    Comment actions Permalink
  • MartyX Grover

    It's great to hear that you achieved a solution.  Thanks very much for the update!

    0
    Comment actions Permalink

Please sign in to leave a comment.