前文记述了如何使用下载好的deb包在Jetson tk1上安装CUDA和OpenCV的方法。但是目前NVIDIA官网已经不提供单独的CUDA和OpenCV4Tegra的下载包,所有的下载、安装工作都集成到了Jetpack安装文件中去。这就意味着如果你想安装最新的NVIDIA产品,就必须使用Jetpack安装方法。如果你拿到一块新的Jeston tk1或者tx1开发板,笔者建议直接使用Jetpack刷一遍系统并安装好全部程序;如果你已经使用了一段时间,那可以采用(二)中的安装方法,因为使用Jetpack安装稍不留神就会把你板子里原有的系统和数据统统抹去。

1. 准备工作

首先,你必须准备一台Ubuntu X64的计算机。切记Jetpack是在宿主机(Ubuntu X64)上运行的,在Jeston平台上无法运行。

在NVIDIA官网下载最新的Jetpack for L4T:
https://developer.nvidia.com/embedded/downloads
如果你觉得官网慢的话也可以选择我的百度网盘:
链接:http://pan.baidu.com/s/1o8tkp42 密码:yk4z

下载完成之后cd到你保存的路径下并保证你在超级用户模式:

<code class="hljs ruby has-numbering">root<span class="hljs-variable">@ZtyUbuntu</span><span class="hljs-symbol">:~</span><span class="hljs-comment"># chmod -x /home/zty/JetPack-L4T-2.1-linux-x64.run </span>
root<span class="hljs-variable">@ZtyUbuntu</span><span class="hljs-symbol">:~</span><span class="hljs-comment"># /home/zty/JetPack-L4T-2.1-linux-x64.run </span></code>

这时候它会提示你:

<code class="hljs lasso has-numbering">bash: /home/zty/JetPack<span class="hljs-attribute">-L4T</span><span class="hljs-subst">-</span><span class="hljs-number">2.1</span><span class="hljs-attribute">-linux</span><span class="hljs-attribute">-x64</span><span class="hljs-built_in">.</span>run: 权限不够</code>

很多人对此有困惑,第一步明明我已经赋予安装包权限了呀,为什么还是运行不了。其实是因为你没有给它作为运用程序运行的权限。右击选择属性,勾选允许作为程序执行文件就可以了。

2. 安装文件详解

安装程序开始之后选择TK1,进入如下界面:

其中Common为Jetson tk1和tx1共用文件,For Jetson TK1是其特有文件。下面为大家介绍一些安装文件的作用。

2.1 CUDA Toolkit for L4T

在移动平台上运行的CUDA,后期编译OpenCV需要,必须安装。

2.2 OpenCV4Tegra for Jetson TK1 Developer Kit

OpenCV优化包,必须安装。

2.3 NVIDIA VisionWorks Toolkit,NVIDIA VisionWorks Plus (SFM),NVIDIA(R) VisionWorks(TM) Object Tracker

NVIDIA自家的视觉库,基于OpenVX,包含了三维重建(SFM)和跟踪模块(Object Tracker)硬件加速能力甩OpenCV一条街,建议安装。

2.4 The NVIDIA CUDA Deep Neural Network library (cuDNN)

NVIDIA自家的深度神经网络库,GPU加速能力超强,建议研究神经网络和机器学习的用户安装(其实TX1还有一个定位就是深度学习机,NVIDIA这点良心啊~)

2.5 CUDA Toolkit on Host for Cross Compiling

安装在宿主机上的CUDA,用于交叉编译。希望使用交叉编译的用户可以选择安装。

2.6 OS and File System

注意,如果你选择了这几项,就意味着你将重装Jetson TK1上的系统并且抹去所有文件,所有这一项慎选!

3. 开始安装

选择好要安装的内容之后,就可以点击下一步了。比起Ubuntu的源,NVIDIA的服务器速度还是比较良心的,除了CUDA和File System比较大之外,其余的应该10分钟左右就能下载好。

之后输入用户名和密码,默认都是Ubuntu。IP的话如果不填,之后程序会自动计算出,请确保此时你有一根网线和你的宿主机相连,或者他们两者连接在同一个路由器上。推荐使用网线直连法。(但实际我在直连法没有成功,不知道什么原因,大家可以试一下,最后在笔记本和开发板都连接在路由器上组成局域网实现远程访问,并且都可以上网。)

如果你是直接用网线连接的Jetson,那么选择第二个选项。这一步只有在需要刷系统的时候才会出现。

这里系统会自动帮你计算出Jetson的IP地址,但是可能时间比较长。
接下来会有提示将Tk1接入Recovery模式,首先对TK1上电,之后按住Recovery按键三秒以上,这时按一下Reset按键,再松开Recovery,Jetson就自动进入了Recovery模式。为了判断是否成功进入Recovery模式,可以使用lsusb命令查看是否有“NVIDIA Corpration”的设备。

接下来的安装都是自动完成的,用户只需要按照提示操作即可。

安装完成之后进入Jetson的系统,按照(二)中所述编译OpenCV源码,这样OpenCV在Jetson上就可以使用了。

Download and Install JetPack L4T


This document is intended to help you get familiar with installing JetPack, using the tools, and running sample code.

Download the Latest JetPack Version

The latest version of JetPack is available in the NVIDIA Embedded Developer Zone at:

https://developer.nvidia.com/jetson-development-pack

All available JetPack downloads can be found at:

https://developer.nvidia.com/jetpack-archive

Downloading JetPack L4T

  • On the host machine running Ubuntu, create a new directory to store installation packages.
  • Download JetPack-${VERSION}.run into the new directory on the host Ubuntu machine.

Installing JetPack L4T

JetPack L4T runs on the host Ubuntu x86_64 machine and sets up your development environment and Jetson Development Kit target via remote access. Please refer to the System Requirements section for supported hardware configurations.

The following instructions assume you have downloaded the latest JetPack version, JetPack-${VERSION}.run, where ${VERSION} refers to the version string for the installer you have.

  1. Add exec permission for the JetPack-${VERSION}.run

    chmod +x JetPack-${VERSION}.run
  2. Run JetPack-${VERSION}.run in terminal on your host Ubuntu machine.

  3. Next, the JetPack installer will indicate the installation directory.

  4. Select the development environment to setup.

  5. The JetPack installer will pop up a window to ask for permission to use during the installation process; you will need to enter your sudo password here.

  6. The Component Manager opens, which allows you to customize which components to install. Select the Jetson Developer Kit you would like to develop for to customize the installation components for each device. Jetson TK1 Developer Kit and Jetson TX1 Developer Kit support are available.

    NOTE: To run a standalone Ubuntu install, deselect Jetson target specific entries.
  7. Accept the license agreement for the selected components.

  8. The Component Manager will proceed with the installation. Once the host installation steps are completed, click the Next button to continue with the installation of target components.

    NOTE: JetPack will now proceed with setting up the Jetson Developer Kit target, if the corresponding components were selected (i.e., flashing the OS and pushing components to the Jetson Developer Kit target).
  9. If you de-selected Flash OS in the Component Manager, you will need to enter the IP address, user name, and password to set up an ssh connection to the target device.

    After you enter the required information and click Next, JetPack will begin installing components on the target device.

  10. If you selected Flash OS in the Component Manager, you will need to select the network layout for your specific environment.

  11. If you selected the Device access Internet via router/switch layout, you will be asked to select which interface to use for Internet access.

  12. If you selected the Device get IP assigned by DHCP server on host and access Internet via host machine layout, you must select which interface is to be used for Internet access, and which is to be used for the target interface.

  13. A pop-up window will instruct you to put your device into Force USB Recovery Mode, so you can flash the OS.

  14. Next, you will be prompted to install components on the specific target machine, and to compile samples.

  15. After the post installation tasks have been completed, the installation will be complete.

Compiling Samples

JetPack automatically compiles all samples, if Compile Samples has been checked during the component selection portion of the installation.

  • If you have selected CUDA components, the CUDA samples are located in the following directory:

    <JetPack_Install_Dir>/NVIDIA_CUDA-<version>_Samples

    You can recompile the CUDA 6.5 samples by running:

    OPENMPDIR=/usr/arm-linux-gnueabihf/lib EXTRA_LDFLAGS=--unresolved-symbols=ignore-in-shared-libs ARMv7=1 GCC=arm-linux-gnueabihf-g++ make

    You can recompile the CUDA 7.0 samples by running:

    SMS=53 EXTRA_LDFLAGS=--unresolved-symbols=ignore-in-shared-libs TARGET_ARCH=armv7l make
  • If you have selected GameWorks OpenGL samples, the sample files are located in the following directory:
    <JetPack_Install_Dir>/GameWorksOpenGLSamples

    You can cross-compile them by running the make command under the following subfolder:

    samples/build/linux-arm32

Run Sample Code

The CUDA samples directory will be copied to the home directory on your device by JetPack. The built binaries are in the following directory:

/home/ubuntu/NVIDIA_CUDA-<version>_Samples/bin/armv7l/linux/release/gnueabihf/

Run the samples at the command line or by double-clicking them in the file browser. For example, when you run the oceanFFT sample, the following screen will be displayed:

GameWorks OpenGL samples are copied to the home directory on the device. The built binaries are in the following directory:

/home/ubuntu/GameWorksOpenGLSamples/samples/bin/linux-arm32

Run the samples at the command line, or by double-clicking them in the file browser. For example, if you run the FeedbackParticlesApp sample, you will see smoke particles rising.

NVIDIA Jetson TK1学习与开发——JETPACK自动刷机相关推荐

  1. NVIDIA Jetson TK1学习与开发(十一):TK1新装ubuntu如何修改用户密码和root密码

    NVIDIA Jetson TK1学习与开发(十一):TK1新装ubuntu如何修改用户密码和root密码 1.修改用户密码 进入系统打开一个新终端 $passwd ubuntu $输入默认密码ubu ...

  2. NVIDIA Jetson TK1学习与开发(八):图文详解OpenGL在Jetson TK1上的安装和使用

    图文详解OpenGL在Jetson TK1上的安装和使用 1.入门介绍与资源推介 OpenGL(全写Open Graphics Library)是个定义了一个跨编程语言.跨平台的编程接口规格的专业的图 ...

  3. NVIDIA Jetson TK1学习与开发(七):图文详解OpenCV在Jetson TK1上的安装和使用

    图文详解OpenCV在Jetson TK1上的安装和使用 本文介绍如何在Jetson TK1上安装并且使用OpenCV,并给出了示例,供大家参考学习. 1.Jetson TK1平台的OpenCV优化包 ...

  4. NVIDIA Jetson TK1学习与开发:如何解决输入和输出音频问题

    若Jetson TK1的音频不能用,可以在终端输入以下命令,再次测试,就可以使用了.(注意:在Jetson TK1硬件上音频处,上面的是话筒,下面的是听筒). amixer cset name=&qu ...

  5. NVIDIA Jetson tx2 cuda和cudnn安装_刷机失败,手动离线安装

    问题描述: 在用官方刷机包安装cuda和cudnn是老是出错,故采取以下方式进行安装,能够完美解决该问题. 由于在进行刷机时已经在host(用来刷机的主机)上下载了有关的安装包,故采用离线拷贝安装. ...

  6. NVIDIA Jetson TK1开发板

    板载资源 新板配置 通过vncserver远程登陆 通过samba进行文件传输 软件更新 或者 刷机 官方资源 板载资源 Component Tech Specs Tegra K1 SOC Keple ...

  7. ROS:Nvidia Jetson TK1开发平台

    原文链接: http://wiki.ros.org/NvidiaJetsonTK1 1. Nvidia Jetson TK1 Jetson TK1 comes pre-installed with L ...

  8. NVIDIA Jetson TK1 rosrun rviz segmentation fault的解决方法

    NVIDIA Jetson TK1 rosrun rviz segmentation fault的解决方法 在NVIDIA Jetson TK1开发版上运行rosrun rviz rviz出现segm ...

  9. ROS:Nvidia Jetson TK1平台安装使用ROS

    原文连接: http://wiki.ros.org/indigo/Installation/UbuntuARM Ubuntu ARM install of ROS Indigo There are c ...

最新文章

  1. 原 史上最简单的SpringCloud教程 | 第八篇: 消息总线(Spring Cloud Bus)(Finchley版本)
  2. 替换文件中的某个内容
  3. 基于numpy实现线性回归问题分析
  4. maven简单了解,没有Maven和使用Maven的区别
  5. 双击jar包 运行SpringBoot项目
  6. 中国知名it软件开发外包公司有哪些呢
  7. 应用时间序列分析——有季节效应的非平稳序列分析-ARIMA加法模型-R语言
  8. jq遍历子元素_jQuery 遍历子元素 遍历所有子元素
  9. springboot毕设项目自驾旅游网站的设计与实现gah85(java+VUE+Mybatis+Maven+Mysql)
  10. lonlife oj 1029 - Bob and Alice are playing factors
  11. docker pull 流程
  12. 《我叫MT》手游源码和资源下载
  13. 微信公众号开发之流式数据读取
  14. 【线性代数04】投影矩阵P和标准正交矩阵Q
  15. 腾讯企业邮箱单点登录无需帐号密码
  16. 安卓 Bitmap 高效加载
  17. Maven工程错误 之 Failure to transfer org.codehaus.plexus:plexus-archiver:pom:1.0
  18. 幸运盒子幸运砸金蛋微信盲盒游戏源码
  19. XMPP协议简介[转载]
  20. uniapp实现抽奖功能

热门文章

  1. app如何添加广告位 uni_新手APP运营如何做广告位投放
  2. Ubuntu安装Nvida显卡驱动
  3. C#使用MongoDB
  4. 解决:关于Fiddler启动,浏览器无法上网的问题,
  5. 使用MATLAB将txt文件导入Excel中
  6. cadsofttools CAD.NET 14.1.X
  7. DWCC2018基本网页设计注意要点、使用技巧
  8. numpy高级索引(二维矩阵的索引是二维矩阵)
  9. 建设工程暂估价项目的定价及招标流程
  10. 用proxyee-down快速下载百度网盘大文件