【ARM-Linux开发】【CUDA开发】【深度学习与神经网络】Jetson Tx2安装相关之一

178 篇文章 37 订阅 ¥39.90 ¥99.00
113 篇文章 52 订阅 ¥39.90 ¥99.00
I am trying to install libraries on to Jetson Tx2 using Jetpack 3.0.

The host computer has Ubuntu 16.04 installed. I tried following the instructions given in the JetPack documentation which also flashes the OS. It has successfully flashed the OS, but when it comes to installing the libraries, it is unable to determine the IP address. I have connected both the host computer and the TX2 to a router which is connected to the Internet. I am able to ssh in the TX2 via terminal, but the Jetpack cannot determine the IP address on its own. The error I get is address is already in use.

I have also attempted to put the address manually, which takes about hours to connect but the Jetpack is unable to copy and install the libraries.

Please help.

#1
Posted 05/15/2017 11:01 PM   

   
JetPack requires Ubuntu 14.04. Some people have figured out how to make it work on 16.04, but I don't know the details. I suspect there may be some change in how networking is set up between 14.04 and 16.04, but that's only conjecture. There are ways to get to the packages being installed via JetPack, but then you're back to doing things on the command line. Can you use Ubuntu 14.04?

#2
Posted 05/15/2017 11:58 PM   
Unfortunately no. I am setting up for my work. The standard here is to have Ubuntu 16.04 on all computers.

#3
Posted 05/16/2017 12:02 AM   
Someone else may be able to comment on what might be done to fool JetPack into working on 16.04. Meanwhile, if you are interested, you can manually extract parts of JetPack, and then copy over to the Jetson (such as through scp).

If you run this on the host, JetPack will unpack files...because you were able to run this already (just not doing what you wanted), then this first step may not even be needed (it's to unpack files):
     
     
  1. bash ./JetPack-L4T-2.3.1-linux-x64.run --noexec
  2. ./Chooser
  3. # You can now exit Chooser...previous runs may have already done what this would achieve.


There should now be file "repository.json". This file contains the URLs which can be downloaded (I use wget) and copied over to the Jetson. Notice that this is a human-readable file, and that because Jetson can install packages to a TK1, a TX1, a TX2, or even an x86_64 host, that you need to pay attention to get only the TX2 files. One file in particular would be the starting point...that's the  CUDA repo info applicable to arm64 architecture and Ubuntu 16.04 (current L4T for both TX1 and TX2 are Ubuntu 16.04...this does not refer to the host). With this CUDA can be installed (which is a requirement for most other things) and the local repo will become available on the Jetson (I think TX1 and TX2 use the same CUDA though). For example, this is what I used to get CUDA on TX2:
     
     
  1. wget http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/006/linux-x64/nv-gie-repo-ubuntu1604-6-rc-cuda8.0_1.0.2-1_arm64.deb


Copy this over to the Jetson (scp for example), and install using sudo dpkg. Run "sudp apt update". Now you can search for and install anything from the local CUDA repo, including CUDA. Other packages should correctly resolve dependencies since you have a repo and not just an individual file.

#4
Posted 05/16/2017 12:30 AM   
Thank you for the suggestion. I had done that earlier, let Jetpack download deb files for CUDA, CUDNN and opencv. However, that only installs cuda, but not CUDNN. OpenCV was also not installed properly as I wasn't able to import cv2 libraries. I also need to install TensorRT. Hence I wanted to get the Jetpack to work.

#5
Posted 05/16/2017 01:04 AM   
For what it's worth:
I installed Jetpack 3.0 on Ubuntu 16.04.2 stock (a brand new install on bare hardware with enough free disk space and simple Intel Integrated graphics.)

It seemed to install and flashed fine. (Note: I had the "press return to continue" not continuing bug, which seems to be there no matter what the OS version.)

Note that I didn't babysit the entire process, because it took a long time, so if some error was displayed but then timed out, I might have missed it. But it seems to work fine for me.
sha1sum -c /etc/nv_tegra_release on the board is all OK.

#6
Posted 05/16/2017 01:54 AM   
I noticed that in "repository.json" there is:
     
     
  1. "url": "http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/006/linux-x64/cuDNN-v5.1.zip",


This is the problem of being terribly "manual" and requiring experimentation when using extracted packages, but you might try wget on "http://developer.download.nvidia.com/devzone/devcenter/mobile/jetpack_l4t/006/linux-x64/cuDNN-v5.1.zip", followed by seeing if you can unpack and install with dpkg. Obviously JetPack saves a lot of experimentation, but if you must use an Ubuntu 16.04 host, then this is a way around the issue. There are many URLs in that repository file which can be downloaded with wget, then you must experiment with the resulting download.

#7
Posted 05/16/2017 04:57 PM   
 Answer Accepted by Original Poster
Hi linuxdev,

I followed your previous advice again about downloading the deb files and installing them manually. Having tried multiple times, Jetpack had already downloaded the files and also there were two scripts cuda-lt4.sh and ocv.sh. I copied the deb files along with the scripts onto TX2. I installed CUDA libraries using the cuda-lt4.sh script. Then attempted to install OpenCV4Tegra using ocv.sh, but I still wasn't able import opencv. Hence, I followed the following link to install OpenCV:  http://www.jetsonhacks.com/2017/04/05/build-opencv-nvidia-jetson-tx2/
which  worked!

Then I used the TensorRT deb file downloaded by Jetpack to install it using following instructions:
(Source:  https://developer.nvidia.com/nvidia-tensorrt-download)
Quick Start Instructions

Verify that you have the CUDA toolkit installed, release 7.5 or 8.0 .
Download the TensorRT debian package (below)
Install GIE from the debian package:
sudo dpkg -i nv-gie-repo-ubuntu1404-ga-cuda8.0-gie1.0-20170116_6-1_amd64.deb
sudo apt-get update
sudo apt-get install libgie1
sudo apt-get install libgie-dev
Verify your installation:
dpkg -l | grep libgie
and you should see:
ii libgie-dev 1.0.0-1+cuda8.0 arm64 GIE development libraries and headers
ii libgie1 1.0.0-1+cuda8.0 arm64 GIE runtime libraries

Finally, I installed Tensorflow 1.0.1 using the following wheel file:
https://www.dropbox.com/s/m6bgd3sq8kggul7/tensorflow-1.0.1-cp27-cp27mu-linux_aarch64.whl?dl=0
(Source:  http://www.yuthon.com/2017/03/10/TensorFlow-r1-0-on-TX1/)

And for people trying to install ROS:  http://www.jetsonhacks.com/2017/03/27/robot-operating-system-ros-nvidia-jetson-tx2/

So basically, follow a manual experimentation as you suggested. Thank you for your help!
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值