-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing D435 on Jetson Tx2 #1424
Comments
@eleboss i did the modifications but this guide should be updated as the referenced lines are not correct anymore. EDIT: EDIT2: It does not work anymore for Jetsons flashed with JetPack 3.2 as JacksonHacks github repo (https://github.com/jetsonhacks/buildJetsonTX2Kernel) which is used here did change. I tried to do it manually but it failed and it took all my left 3GB disk space, now the whole disk space is full, i cant even autocomplete anymore. nothing works! Has anybody an idea where all these files are that dumped my disk? |
Gustav, I did compile the latest librealsense2 (2.10.2) from git repo on TX2 a few days ago and it did compile cleanly. I'm using L4T 28.1 kernel sources, here's the librealsense2 patches I did apply to my kernel tree: root@tx2:/usr/src/kernel-28.1/kernel-4.4# patch -p1 < realsense-camera-formats_ubuntu-xenial-master.patch I used the following options to compile librealsense2: #!/bin/bash cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_OPENMP=OFF -DBUILD_EXAMPLES=ON -DBUILD_GRAPHICAL_EXAMPLES=ON -DBUILD_PYTHON_BINDINGS=ON -DBUILD_CV_EXAMPLES=ON #-DBUILD_WITH_STATIC_CRT=OFF -DENABLE_ZERO_COPY=ON -DBUILD_EASYLOGGINGPP=OFF make clean && make -j4 -albertr |
[Realsense Customer Engineering Team Comment] You can refer to below patch for Jetson TX2 and the latest BSP (L4T 28.2) used. It should be ok for SR300 and D415/D435 camera. |
@RealSense-Customer-Engineering That looks great! I will check that immediately. |
Thank you! And do have an idea where my 3Gb of disk space could have gone? Where could be the data junks? |
@gustavz the buildJetsonTX2kernel will build a kernel under /usr/src maybe that is your 3GB space |
Is this using CUDA? I've seen videos like this: https://www.youtube.com/watch?v=t9nOUVw2VzA and the performance of the D435 is pretty awful on a TX2. It was the same for the SR300 I found as well, but had hoped it improved. Thoughts on improving performance? |
@RealSense-Customer-Engineering ubuntu@tegra-ubuntu:~/catkin_ws$ roslaunch realsense2_camera rs_camera.launch started roslaunch server http://tegra-ubuntu:43313/ SUMMARYPARAMETERS
NODES auto-starting new master setting /run_id to ab1a2a38-3090-11e8-b3fd-00044ba7d970 |
I wouldn't even bother with all of this @eleboss . I used this to install a D435 on a clean install of Jetpack 3.2. Worked perfectly and I was up in 20 minutes. You may want to edit the shell script to check out the 2.10.2 version. Currently, it's on 2.10.1 https://github.com/syedharoonalam/installLibrealsenseTX2 |
@eleboss looks like USB3 super-speed was not properly negotiated between D435 and J120/TX2... [ INFO] [1522025854.978657746]: Device Name: Intel RealSense USB2 You can check kernel messages or run -albertr |
@arybalkin This my devices information. Seems the usb 3.0 works, but just like you said USB3 super-speed was not properly negotiated between D435 and J120/TX2, I am trying to reflash the TX2 and use the jetpack3.1 to try. Hi, What kind of cmake setting you are using?@lesreaper
|
My Jetson won't boot due to the full disk. I am able to do ctrl+alt+f1 and deleted some files, but still it is not able to boot. |
@gustavz just put it into recovery mode and push new os through the microusb on your host. It should all be in the jetpack "suite" installed on your host pc. guide if needed |
@TheMikeyR alright, i am reflashing it. But thats a shame, will be a whole day's work to have everything up and running again.... Do you successfully use the D435 on your Jetson Tx2 with JetPack 3.2? |
@gustavz I've only tested D415 and it works fine. My D435 is in backorder, and will be shipped soon I guess. |
@arybalkin Thank you for pointing the USB problem!!! It's my USB cable problem, I change a new USB 3.1 cable and it work very well! @RealSense-Customer-Engineering My procedure as follow:
|
@eleboss why are you not cloning librealsense from the original repo? EDIT1:
but thats a rm not a cp command, the cp command is in line 130: EDIT2: EDIT3:
Also building the sdk (https://software.intel.com/sites/products/realsense/sdk/getting_started.html) failes with (or is this deprecated when using librealsense with D400 cameras?):
EDIT4: EDIT5:
|
[Realsense Customer Engineering Team Comment] |
@gustavz |
@gustavz |
@eleboss I will reflash and do the librealsense installation as the first action, lets see... rs-enumerate-devices gives me:
|
It is very clear that your USB3.0 is not being used.
I think it is the USB2 hub problem. Maybe it is time to buy a USB3.0 HUB. |
@gustavz my temporarily fix until I received my usb3 hub was to use desktop share and then remote desktop into the jetson with only the camera plugged in to the one usb port on the jetson. A fine work around while you wait for the hub to arrive. The remote desktop sharing does cost some resources of the jetson though. |
@eleboss @TheMikeyR thanks guys, i will try it and tell you how it went afterwards. one more thing @eleboss in your routine you are talking about installing openCV, but OpenCV 3.3.1 comes with JetPack 3.2 if im right ? EDIT:
But when i start realsense-viewer it shows me the first frame and then the whole jetson hangs and ich have to unplug the power cable and restart it. What is your exact routine to get librealsense working after new fresh flashing with jetpack 3.2? @RealSense-Customer-Engineering yes i still need help |
[Realsense Customer Engineering Team Comment] Please refer to the attached picture "D415_USB3_Connection.png". D415 is connected to type-A USB3 port and one USB mouse/keyboard dongle is connected to the white OTG adaptor from Jetson TX2 Development Kit. Make sure to connect to the correct USB3 port. As I know, JetPack 3.2 includes OpenCV. |
@RealSense-Customer-Engineering i already posted the rs-enumerate-devices output exactly the comment before your answer, but here is everything again: (the d435 is connected like in th epicture)
here is lsusb:
here is lsusb -t
i can also post again my installing routine:
what also could be interesting, after the installation:
why is this directory inside home and not inside librealsense? Thats all that can be said, the installation runs without errors but realsense-viewer always hangs teh whole system right after the start. |
what's strange is: after reflashing several times now i cant even build librealsense anymore it breaks at this point:
|
[Realsense Customer Engineering Team Comment] To make sure you can run the librealsense apps, just summarize the installation&build steps based on the latest TX2 BSP 28.2 (JetPack 3.2):
git clone https://github.com/IntelRealSense/librealsense.git cd librealsense git branch v2.9.1 git checkout -b v2.9.1 sudo apt-get update sudo apt-get install git cmake sudo apt-get install libssl-dev sudo apt-get install libusb-1.0-0-dev pkg-config libgtk-3-dev sudo apt-get install libglfw3-dev sudo apt-get install libudev-dev sudo apt-get install cmake-curses-gui sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/ sudo udevadm control --reload-rules && udevadm trigger reboot
mkdir build && mkdir install Modify CMakeLists.txt: (if you have the issue: undefined reference to symbol 'pthread_create@@GLIBC_2.17') set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread") cd build cmake ../ -DBUILD_EXAMPLES=true -DCMAKE_BUILD_TYPE=release -DBUILD_UNIT_TESTS=false make -j4 sudo make install
Hope this is clear to resolve your issue.If you like to support SR300 or other realsense camera formats, you can download the below patch and run the patch: |
[Realsense Customer Engineering Team Comment]
And, you can also upgrade your D435 FW to 5.9.2 (5.9.2.0 +) instead of 5.8.15. |
@RealSense-Customer-Engineering
Thank you in advance! |
[Realsense Customer Engineering Team Comment] |
@RealSense-Customer-Engineering when running your routine i run into this new error (i left out the kernel patch):
EDIT1: EDIT2: |
[Realsense Customer Engineering Team Comment] Did you try the librealsense 2.10.3 which fixes ARM build issue? Still need any help? |
@RealSense-Customer-Engineering does this mean it is now possible to install the dsk with |
[Realsense Customer Engineering Team Comment] Did you build form librealsense source and apply the proper script to resolve this issue? |
[Realsense Customer Engineering Team Comment] |
[Realsense Customer Engineering Team Comment] I will close this first. If you still have any issue, you can re-open it or create another ticket. |
I am trying to install librealsense for the D435 on the nvidia jetson tx2 with ubuntu 16.04
Therefore i am following the ubuntu 16.04 installation guide. https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md
At one point it is said for arch architectures to do the following:
You need to install the
base-develpackage group.
But if you click on the link for base-devel there are plenty of different files and none of them is for aarch64.
So what is needed here?
when i skip this step, then
./patch-arch.sh
fails with this message:and ofcourse after that cmake fails with:
The text was updated successfully, but these errors were encountered: