当前位置:   article > 正文

Nvidia Jetson Orin 开发板配置开发环境_英伟达 cuda 开发板

英伟达 cuda 开发板

参考文档:(官方)https://developer.nvidia.com/embedded/learn/get-started-jetson-agx-orin-devkit

  1. Check your L4T version first to see if you have a unit flashed with older version of the BSP.
cat /etc/nv_tegra_release
  • 1

You may get something like this, # R34 (release), REVISION: 1.0, GCID: 30102743, BOARD: t186ref, EABI: aarch64, DATE: Wed Apr 6 19:11:41 UTC 2022, and this shows that you have L4T for JetPack 5.0 Developer Preview.

  • 我的版本号是R35.1,和官网给出的不一样
  1. If you have an earlier version of L4T, issue the following command to manually put the apt repository entries using commands below.
sudo bash -c 'echo "deb https://repo.download.nvidia.com/jetson/common r34.1 main" >> /etc/apt/sources.list.d/nvidia-l4t-apt-source.list'
sudo bash -c 'echo "deb https://repo.download.nvidia.com/jetson/t234 r34.1 main" >> /etc/apt/sources.list.d/nvidia-l4t-apt-source.list' 
  • 1
  • 2

If you see R34 (release), REVISION: 1.0 or newer, then your apt sources lists are already up to date and you can proceed

  1. Issue the following commands to install JetPack components.
sudo apt update 
sudo apt dist-upgrade 
sudo reboot 
sudo apt install nvidia-jetpack
  • 1
  • 2
  • 3
  • 4
  • 如果指定第一个遇到下面的情况,需要执行以下内容:
swift@ubuntu:~/Desktop$ sudo apt update
[sudo] password for swift: 
Reading package lists... Done
E: Could not get lock /var/lib/apt/lists/lock. It is held by process 10336 (apt-get)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/lib/apt/lists/
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 解决方案:sudo rm /var/lib/apt/lists/* -vf
  • 开始安装,一定要注意重启,并且由于没有更换镜像,安装非常慢。我可能花费了6个多小时,完成73%的下载任务。如果网速比较好的话,一个小时就行(2M的网络),建议不要用电脑共享网络(以2M的网速为例,可能实际在50kb->600kb之间。),网速不稳定,wifi也不一定稳定,但是下载这个绰绰有余。最好用网线。
  1. 安装好以后执行。

(1)CUDA:执行以下指令

nvcc -V
  • 1

如果出现以下信息则表示正确。

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_May__4_00:02:26_PDT_2022
Cuda compilation tools, release 11.4, V11.4.239
Build cuda_11.4.r11.4/compiler.31294910_0
  • 1
  • 2
  • 3
  • 4
  • 5
vim .bashrc
export PATH=/usr/local/cuda/bin:$PATH
source .bashrc
  • 1
  • 2
  • 3
  • nvcc -V有显示了,可以查看到CUDA的版本信息了

(2)cuDNN:执行以下指令

dpkg -l libcudnn8
  • 1

如果出现以下信息则表示正确。

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version             Architecture Description
+++-==============-===================-============-===========================>
ii  libcudnn8      8.4.1.50-1+cuda11.4 arm64        cuDNN runtime libraries
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

(3)TensorRT:

dpkg -l tensorrt
  • 1

如果出现以下信息则表示正确。

| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version            Architecture Description
+++-==============-==================-============-============================>
ii  tensorrt       8.4.1.5-1+cuda11.4 arm64        Meta package for TensorRT
  • 1
  • 2
  • 3
  • 4
  • 5

(4)OpenCV:

dpkg -l libopencv
  • 1

如果出现以下信息则表示正确。

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version             Architecture Description
+++-==============-===================-============-===========================>
ii  libopencv      4.5.4-8-g3e4c170df4 arm64        Open Computer Vision Library
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

4、安装 jtop 系统监控工具
这是 Jetson 系列非常著名的监控工具,请执行以下指令进行安装:

sudo apt install python3-pip
sudo -H pip3 install -U pip
sudo -H pip install jetson-stats==4.0.0rc1
  • 1
  • 2
  • 3

然后执行下面启动指令就能开启这个监控工具:

jtop
  • 1

如果启动出现错误的话,请重启一下 Jetson Orin 让这个服务完整启动。

sudo reboot
  • 1

image.png

5. 中文输入法踩坑

如果之后安装中文输入发,一定要安装arm架构的,而且注意,镜像源不能乱选。
一个安装中文输入法的教程。(百度和搜狗都装不了)
https://blog.csdn.net/weixin_39589455/article/details/122328395

sudo apt-get install fcitx fcitx-googlepinyin -y
  • 1

image.pngimage.png

  • 设置fcitx,然后重启
sudo reboot
  • 1
  • 选择输入配置,选择Google pinyin

image.png
image.png

  • 然后就可以使用Google拼音了,虽然不是很好用,但是总比没有好。
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小桥流水78/article/detail/743587
推荐阅读
相关标签
  

闽ICP备14008679号