Skip to content

Commit

Permalink
Update to JetPack 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jetsonhacks committed Jan 8, 2020
1 parent eb679e4 commit 0250361
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 149 deletions.
9 changes: 7 additions & 2 deletions README.md
Expand Up @@ -2,7 +2,7 @@
This repository holds utilities for working with NVIDIA Jetson Development Kit

# jetsonInfo
Get information about the NVIDIA Jetson OS environment on NVIDIA Jetson Development Kits (TK1, TX1, TX2, AGX Xavier)
Get information about the NVIDIA Jetson OS environment on NVIDIA Jetson Development Kits (TK1, TX1, TX2, AGX Xavier, Jetson Nano)

The information about the NVIDIA Jetson Development Kit operating system is spread over a few files. This is a handy tool to use for reference.

Expand All @@ -23,6 +23,11 @@ The Ubuntu version is derived from the file: '/etc/os-release'
The Linux kernel version is derived from the file: '/proc/version'

Release Notes:

January, 2020
* v2.0
* Add support for JetPack 4.3

November, 2018
* v1.1.2
* Add support for JetPack 4.1.1 (L4T 31.1.0)
Expand All @@ -43,7 +48,7 @@ July, 2018

The shell script jetson_variables is derived from jetson_easy: https://github.com/rbonghi/jetson_easy

Copyright (c) 2015-2018 Raffaello Bonghi
Copyright (c) 2015-2020 Raffaello Bonghi

See license for jetson_easy in scripts folder

23 changes: 1 addition & 22 deletions jetsonInfo.py
Expand Up @@ -30,28 +30,7 @@ class terminalColors:
print(" NVIDIA Jetson " + os.environ["JETSON_BOARD"].strip())

#L4T Version
if os.path.exists('/etc/nv_tegra_release'):
with open('/etc/nv_tegra_release','r') as l4tVersionFile:
l4tVersionFileText=l4tVersionFile.read()
textLines=l4tVersionFileText.splitlines()
l4tVersionInfo=textLines[0].split(',')
for entry in l4tVersionInfo:
if 'release' in entry:
# Example: '# R24 (release)'
l4tRelease=entry.split(' ')[1]
l4tRelease=filter(str.isdigit,l4tRelease)
elif 'REVISION' in entry:
# Example: 'REVISION: 2.1'
l4tRevision=entry.split(' ')[2]
elif 'BOARD' in entry:
# Example: 'BOARD: t210ref'
board=entry.split(' ')[2]
print(' L4T ' + l4tRelease + '.' + l4tRevision + ' [ JetPack ' +os.environ['JETSON_JETPACK'].strip()+' ]')
print(' Board: ' + board)
else:
print(terminalColors.FAIL + 'Error: Unable to find L4T Version' + terminalColors.ENDC)
print('Reason: Unable to find file /etc/nv_tegra_release')

print(' L4T ' + os.environ['JETSON_L4T'].strip() + ' [ JetPack ' +os.environ['JETSON_JETPACK'].strip()+' ]')
# Ubuntu version
if os.path.exists('/etc/os-release'):
with open('/etc/os-release', 'r') as ubuntuVersionFile:
Expand Down

0 comments on commit 0250361

Please sign in to comment.