jetson-nano环境查询
1.查看jetson的原始环境,当前环境组件版本和使用状态。
答应我,NVIDIA Jetson这个小工具一定要装上! (qq.com)
使用该命令需要下载 jetson-stats。
pip install jetson-stats
jetson_release
该命令是一个脚本文件。
如果没有可以自行添加,文件说明中有说是jetson_stats包的一部分。因为我使用的是亚博配置好 的镜像。并没有验证下载这个包后是否可以使用。
创建脚本文件
#创建文件,添加权限
touch jetson_release
chmod +x jetson_release
添加下面的脚本
gedit jetson_release
在当前文件夹执行
./jetson_release
添加到系统命令环境中即/usr/local/bin/下面,权限不够的话使用sudo命令。
cp ./jetson_release /usr/local/bin/jetson_release
可以在任何地方调用
脚本文件:
#!/bin/bash
# This file is part of the jetson_stats package (https://github.com/rbonghi/jetson_stats or http://rnext.it).
# Copyright (c) 2019 Raffaello Bonghi.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.bold=`tput bold`
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`jetson_release()
{local VERBOSE=$1# Load JETSON environment variablesJTOP_VARIABLE=""JTOP_PYTHON=""if type -P python3 >/dev/null 2>&1 ; thenJTOP_VARIABLE=$(python3 -c "import jtop; print(jtop.__path__[0])" 2> /dev/null)JTOP_PYTHON="$(python3 -V 2>&1)"fiif type -P python >/dev/null 2>&1 && [ -z $JTOP_VARIABLE ] ; thenJTOP_VARIABLE=$(python -c "import jtop; print(jtop.__path__[0])" 2> /dev/null)JTOP_PYTHON="$(python -V 2>&1)"fiif [ -z $JTOP_VARIABLE ] ; thenecho "${red}I cannot locate jetson_variables${reset}"exit 1fisource $JTOP_VARIABLE/jetson_variablessource $JTOP_VARIABLE/jetson_libraries# Load NVP model statusif hash nvpmodel 2>/dev/null; thenNVPModel="$(nvpmodel -q 2>/dev/null)"NVPModel=$(echo $NVPModel | sed 's/.*Mode://')# Extract model and typeNVPModel_type=$(echo $NVPModel | cut -d' ' -f 2)NVPModel=$(echo $NVPModel | cut -d' ' -f 1)fi# Read status jetson_performance serviceJETSON_STATS_SERVICE_STATUS="$(systemctl is-active jetson_stats.service)"# Extract jetson-stats versionJETSON_STATS_VERSION="$(jtop -v 2>&1 | cut -d " " -f2)"# Print Jetson versionecho "${bold} - $JETSON_MACHINE${reset}"# Print Jetpack and kernelecho " * Jetpack $JETSON_JETPACK [L4T $JETSON_L4T]"# Print status NVPModelif [ ! -z ${NVPModel+x} ] ; thenecho " * NV Power Mode: ${green}$NVPModel${reset} - Type: ${green}$NVPModel_type${reset}"fi# Print status Jetson Performance serviceif [ $JETSON_STATS_SERVICE_STATUS = "active" ] ; thenecho " * jetson_stats.service: ${green}$JETSON_STATS_SERVICE_STATUS${reset}"elseecho " * jetson_stats.service: ${red}$JETSON_STATS_SERVICE_STATUS${reset}"fiif $VERBOSE ; then# Board informationecho "${bold} - Board info:${reset}"echo " * Type: $JETSON_TYPE"echo " * SOC Family: $JETSON_SOC - ID:$JETSON_CHIP_ID"echo " * Module: $JETSON_MODULE - Board: $JETSON_BOARD"echo " * Code Name: $JETSON_CODENAME"# If available print the Board IDSif [ ! -z "$JETSON_BOARDIDS" ] ; thenecho " * Boardids: $JETSON_BOARDIDS"fi# Print CUDA GPU architectureecho " * CUDA GPU architecture (ARCH_BIN): $JETSON_CUDA_ARCH_BIN"# Print serial numberif [ ! -z $JETSON_SERIAL_NUMBER ] ; thenecho " * Serial Number: ${JETSON_SERIAL_NUMBER^^}" # Make string to upper casefifi# Librariesecho "${bold} - Libraries:${reset}"# Print Cuda versionecho " * CUDA: $JETSON_CUDA"# Print cuDNN versionecho " * cuDNN: $JETSON_CUDNN"# Print TensorRT versionecho " * TensorRT: $JETSON_TENSORRT"# Print VisionWorks versionecho " * Visionworks: $JETSON_VISIONWORKS"# Print OpenCv version and cuda compiledif [ $JETSON_OPENCV_CUDA = "YES" ] ; thenecho " * OpenCV: $JETSON_OPENCV compiled CUDA: ${green}$JETSON_OPENCV_CUDA${reset}"elseecho " * OpenCV: $JETSON_OPENCV compiled CUDA: ${red}$JETSON_OPENCV_CUDA${reset}"fi# Print VPI versionecho " * VPI: $JETSON_VPI"# Print Vulkan versionecho " * Vulkan: $JETSON_VULKAN_INFO"if $VERBOSE ; then# jetson-stats versionecho "${bold} - jetson-stats:${reset}"echo " * Version $JETSON_STATS_VERSION"echo " * Works on $JTOP_PYTHON"fi
}usage()
{if [ "$1" != "" ]; thenecho "${red}$1${reset}"fiecho "jetson_release. [-v | --verbose] | [-h]"echo " Show detailed information about this board. Machine, Jetpack, libraries and other."echo "Usage:"echo "$0 [options]"echo "options,"echo " -h|--help | This help"echo " -v|--verbose | Detailed information about this board"
}main()
{local VERBOSE=false# Decode all information from startupwhile [ -n "$1" ]; docase "$1" in-h|--help)usageexit 0;;-v | --verbose)VERBOSE=true;;*)usage "[ERROR] Unknown option: $1"exit 1;;esacshift 1done# Run jetson_releasejetson_release $VERBOSE
}main $@
exit 0
# EOF
2.生成简单的环境变量,了解硬件版本和已安装的jetpack
export | grep JETSON
3. 查看jetson的机器学习环境,检查已经安装的系统组件
Jetson-nano的OS镜像已经自带了JetPack,cuda,cudnn,opencv等都已经安装好,并有例子,这些例子安装路径如下所示
- TensorRT /usr/src/tensorrt/samples/
- CUDA /usr/local/cuda-10.2/samples/
- cuDNN /usr/src/cudnn_samples_v8/
- VisionWorks
- /usr/share/visionworks/sources/samples/
- /usr/share/visionworks-tracking/sources/samples/
- /usr/share/visionworks-sfm/sources/samples/
- OpenCV /usr/share/opencv4/samples/
参考下列(1条消息) Jetson Nano(二):检查已安装组件_热爱学习的栾宝宝的博客-CSDN博客
deepstream
文件位置
/opt/nvidia/deepstream/deepstream-5.0/
deepstream_sdk文件夹解析
deepstream配置文件解析
安装库的一些网站,很多开发者都需要再安装Tensorflow和Pytorch,可以收藏一下这个网站:https://www.elinux.org/Jetson_Zoo:
一.Linux常用命令
Linux下的命令有几千条,但真正在实际开发中运用的就只有那些。
在jetson开始的时候,root密码是没有设置的。在有的时候,传文件的过程中,需要在系统文件夹下传递,这时开机创建的用户没有权限。
使用命令,设置root密码。
sudo passwd
1.查看操作系统版本
cat /proc/version
2.查看主板版本
cat /proc/cpuinfo
3.查看SD存储卡剩余空间
df -h
4.查看ip地址
ifconfig
5.压缩:tar –zcvf filename.tar.gz dirname
解压:tar –zxvf filename.tar.gz
6.linux系统常用apt(Advanced Package Tool)高级软件工具来安装软件
sudo apt-get install xxx 安装软件。
sudo apt-get update 更新软件列表。
sudo apt-get upgrade 更新已安装软件。
sudo apt-get remove xxx 删除软件。
具体有关linux命令的教程:
Linux 命令大全 | 菜鸟教程
jetson-nano环境查询相关推荐
- 主控开发(一)Jetson nano环境搭建
镜像下载地址 1.基础设置 1.1.使用sudo免密码 1.打开终端,输入命令: sudo visudo 2.在文档最后一行添加如下内容: xxx ALL=(ALL) NOPASSWD:ALL jet ...
- 【Jetson nano开发笔记】jetson nano 环境搭建与常见软件安装
文章目录 开发板 看看他香不香 IO定义 设置一下root密码吧 更换源 赶紧配置VNC 已安装组件的使用 cuda OpenCV cuDNN jetson nano 安装 TensorFlow GP ...
- Win10和Jetson Nano环境下安装Mediapipe-python
最近因学习需要用到google的mediapipe包进行手部识别,效果不错便想将其移植到jetson nano的ubuntu系统上.坑不少,在这里记录一下过程. 步骤 一.Windows10的安装方法 ...
- jetson nano 环境配置(pytorch+ros+rartographer)
1. ,把系统烧录至SD卡后进入系统中依次完成:语言选择.键盘布局选择.WIFI连接.地区选择.用户设置.内存设置(0或者留空). 2. 进入系统设置完成语言的完整下载以及等待系统完成更新.设置系统休 ...
- jetson nano风扇控制、远程控制和远程桌面
风扇控制: 1.写风扇转速: sudo sh -c 'echo 255 > /sys/devices/pwm-fan/target_pwm' 2.创建/etc/rc.local(18.04没有r ...
- 解决Jetson nano上编译librealsense错误:Could NOT find Vulkan (missing: VULKAN_LIBRARY VULKAN_INCLUDE_DIR)
1 我的Jetson nano环境 zhihui@zhihui-desktop:~$ jetson_release -v- NVIDIA Jetson Nano (Developer Kit Vers ...
- Jetson Nano 从入门到实战(转载)(案例:Opencv配置、人脸检测、二维码检测)
目录 1. Jetson Nano简介 2. Jetson Nano环境配置 2.1 开箱配件介绍 2.2 烧录系统 2.3 开机和基本设置 2.4 开发环境配置 2.4.1 更新源和软件 2.4.2 ...
- Jetson nano (4GB B01) 系统安装,官方Demo测试 (目标检测、手势识别)
Jetson nano (4GB B01) 系统安装,官方Demo测试 (目标检测.手势识别) 此文确保你可以正确搭建jetson nano环境,并跑通官方"hello AI world&q ...
- Jetson Nano 从入门到实战(案例:Opencv配置、人脸检测、二维码检测)
目录 1. Jetson Nano简介 2. Jetson Nano环境配置 2.1 开箱配件介绍 2.2 烧录系统 2.3 开机和基本设置 2.4 开发环境配置 2.4.1 更新源和软件 2.4.2 ...
- 已阻止应用程序访问图形硬件_玩转智能硬件之Jetson Nano(三)深度学习环境搭建...
0.前言 iotboy:玩转智能硬件(一)Jetson Nano安装篇zhuanlan.zhihu.com iotboy:玩转智能硬件(二)Jetson Nano配置篇zhuanlan.zhihu ...
最新文章
- 【node】Sequelize常用操作、基本增删改查
- UART的16倍频过采样和3倍频过采样
- oracle坏块 戴明明,云和恩墨:基于PCIE 闪存卡的 Oracle 数据
- 武汉python培训哪一家好一些-武汉哪个Python培训机构比较好?
- python 一些方法的时间测试
- @propertysource 读不到properties_在加拿大读了6年还是大学一年级,会被赶出校吗?...
- pat天梯赛L1-054. 福到了
- 计算机信息系统安全保护条例最新,计算机信息系统安全保护条例.doc
- 银屑病需要的碱性食物
- IE低版本(6-9)CSS hack
- url散列算法原理_如何列出与网站相关的所有URL
- centos ip地址固定
- 软考中级,软件设计师考试那些内容,考试大纲什么的?
- 「 LaTex 」写论文,natbib宏的参考文献引用格式详解
- 高一计算机信息与技术知识点,高中信息技术必修知识点汇总
- Apollo之Canbus模块学习总结
- 2023苏州科技大学计算机考研信息汇总
- PBR 六 材质参数
- 在项目中发现哪些经典bug?什么原因导致的?
- 是香蕉还是芭蕉,芭蕉和香蕉的区别